Lines Matching defs:privateKey
45 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception {
48 s.initSign(privateKey);
59 private static void test(PrivateKey privateKey, PublicKey publicKey) throws Exception {
60 testSignature("MD2withRSA", privateKey, publicKey);
61 testSignature("MD5withRSA", privateKey, publicKey);
62 testSignature("SHA1withRSA", privateKey, publicKey);
63 testSignature("SHA256withRSA", privateKey, publicKey);
67 testSignature("SHA384withRSA", privateKey, publicKey);
68 testSignature("SHA512withRSA", privateKey, publicKey);
120 RSAPrivateCrtKey privateKey = (RSAPrivateCrtKey)kp.getPrivate();
121 if (publicKey.getModulus().equals(privateKey.getModulus()) == false) {
124 if (publicKey.getPublicExponent().equals(privateKey.getPublicExponent()) == false) {
136 test(privateKey, publicKey);