Lines Matching refs:cipher
52 Cipher cipher = Cipher.getInstance("DES/ECB/NoPadding");
53 cipher.init(Cipher.ENCRYPT_MODE, key);
55 byte[] outBytes = cipher.doFinal(t);
77 crypt(cipher, i1, o1, outBytes, random);
78 crypt(cipher, i2, o1, outBytes, random);
79 crypt(cipher, i3, o1, outBytes, random);
80 crypt(cipher, i1, o2, outBytes, random);
81 crypt(cipher, i2, o2, outBytes, random);
82 crypt(cipher, i3, o2, outBytes, random);
87 private static void crypt(Cipher cipher, ByteBuffer in, ByteBuffer out, byte[] outBytes, Random random) throws Exception {
94 cipher.update(in, out);
99 cipher.doFinal(in, out);