@Test public void testStaticKey() { BigInteger clientPrivateKey = new BigInteger("1234567891433", 10); BigInteger clientPublicKey = OakleyGroup1.generator.modPow(clientPrivateKey, OakleyGroup1.primeNumber); BigInteger serverPrivateKey = new BigInteger("3234567891283", 10); BigInteger serverPublicKey = DiffieHellman.generatePublicKey(serverPrivateKey); testDH(clientPrivateKey, clientPublicKey, serverPrivateKey, serverPublicKey); }
public static BigInteger generatePublicKey(BigInteger privateKey) { return baseNumber.modPow(privateKey, primeNumber); }
DiffieHellman { public static BigInteger generatePublicKey(BigInteger privateKey) { return baseNumber.modPow(privateKey, primeNumber); } }
DiffieHellman { public static BigInteger generatePublicKey(BigInteger privateKey) { return baseNumber.modPow(privateKey, primeNumber); }  }
DiffieHellman { public static BigInteger generatePublicKey(BigInteger privateKey) { return baseNumber.modPow(privateKey, primeNumber); }  static BigInteger generateSecretKey(BigInteger remotePublicKey, BigInteger privateKey); static BigInteger generatePublicKey(BigInteger privateKey); static BigInteger generatePrivateKey(int bitLength); }
DiffieHellman { public static BigInteger generatePublicKey(BigInteger privateKey) { return baseNumber.modPow(privateKey, primeNumber); }  static BigInteger generateSecretKey(BigInteger remotePublicKey, BigInteger privateKey); static BigInteger generatePublicKey(BigInteger privateKey); static BigInteger generatePrivateKey(int bitLength);  }