Lines Matching refs:privateKey
46 private static void testSignature(String algorithm, PrivateKey privateKey, PublicKey publicKey) throws Exception {
49 s.initSign(privateKey);
60 private static void test(PrivateKey privateKey, PublicKey publicKey) throws Exception {
61 testSignature("MD2withRSA", privateKey, publicKey);
62 testSignature("MD5withRSA", privateKey, publicKey);
63 testSignature("SHA1withRSA", privateKey, publicKey);
64 testSignature("SHA256withRSA", privateKey, publicKey);
68 testSignature("SHA384withRSA", privateKey, publicKey);
69 testSignature("SHA512withRSA", privateKey, publicKey);
121 RSAPrivateCrtKey privateKey = (RSAPrivateCrtKey)kp.getPrivate();
122 if (publicKey.getModulus().equals(privateKey.getModulus()) == false) {
125 if (publicKey.getPublicExponent().equals(privateKey.getPublicExponent()) == false) {
137 test(privateKey, publicKey);