Cryptography Reference
In-Depth Information
for (int index=0;index<modulus.length;index++) {
BigInteger MInv=M[index].modInverse(modulus[index]);
K0=K0.add(shadow[index].multiply(M[index].multiply(MInv))).mod(BigM);
}
//The master key is K0 - tp where t is multiplier, p is reconstructing prime
masterKey=K0.subtract(randomMultiplier.multiply(reconstructingPrime));
}
//Method to return the master key
public BigInteger getMasterKey() {
return masterKey;
}
}
Figure 16.1(a)-(d) shows an applet (called TestShadowApplet) to test the ShadowBuilder
and KeyRebuilder classes.
FIGURE 16.1
(a)
(b)
Search WWH ::




Custom Search