Lines Matching defs:c2
231 Cipher c1, c2;
242 c2 = Cipher.getInstance(algo, "SunJCE");
244 c2 = Cipher.getInstance(algo, prov);
249 testEncryption(c1, c2, kp, data);
261 Cipher c1, c2;
272 c2 = Cipher.getInstance(algo, "SunJCE");
274 c2 = Cipher.getInstance(algo, prov);
285 testEncryption(c1, c2, kp[h], data);
290 private static void testEncryption(Cipher c1, Cipher c2, KeyPair kp, byte[] data)
298 c2.init(Cipher.DECRYPT_MODE, kp.getPrivate());
299 recoveredText = c2.doFinal(out1);
311 c2.init(Cipher.ENCRYPT_MODE, kp.getPublic());
312 cipherText = c2.doFinal(data);