super("XYZ");
int rotValue = random.nextInt() % 25; XYZKey pub = new XYZKey(); XYZKey priv = new XYZKey(); pub.rotValue = rotValue; priv.rotValue = -rotValue; KeyPair kp = new KeyPair(pub, priv); return kp;
random = sr;
Security.addProvider(new XYZProvider()); KeyPairGenerator kpg = KeyPairGenerator.getInstance("XYZ"); kpg.initialize(0, new SecureRandom()); KeyPair kp = kpg.generateKeyPair(); System.out.println("Got key pair " + kp);