FileDocCategorySizeDatePackage
XYZKeyPairGenerator.javaAPI DocExample1834Sun Oct 25 18:13:36 GMT 1998None

XYZKeyPairGenerator

public class XYZKeyPairGenerator extends KeyPairGenerator

Fields Summary
SecureRandom
random
Constructors Summary
public XYZKeyPairGenerator()

		super("XYZ");
	
Methods Summary
public java.security.KeyPairgenerateKeyPair()

		int rotValue = random.nextInt() % 25;
		XYZPublicKey pub = new XYZPublicKey();
		XYZPrivateKey priv = new XYZPrivateKey();
		pub.rotValue = rotValue;
		priv.rotValue = -rotValue;
		KeyPair kp = new KeyPair(pub, priv);
		return kp;
	
public voidinitialize(int strength, java.security.SecureRandom sr)

		random = sr;