Lines Matching refs:cipher

92         Cipher cipher = Cipher.getInstance("DESede/CBC/PKCS5Padding");
93 assertNotNull("Received a null Cipher instance", cipher);
114 Cipher cipher = Cipher.getInstance("DES", providers[i].getName());
115 assertNotNull("Cipher.getInstance() returned a null value", cipher);
118 cipher = Cipher.getInstance("DoBeDoBeDo", providers[i]);
148 Cipher cipher = Cipher.getInstance("DES", providers[i]);
149 assertNotNull("Cipher.getInstance() returned a null value", cipher);
176 Cipher cipher = Cipher.getInstance("AES", provider.getName());
177 Provider cipherProvider = cipher.getProvider();
190 Cipher cipher = Cipher.getInstance(algorithm);
191 assertTrue("Cipher algorithm does not match", cipher.getAlgorithm()
201 Cipher cipher = Cipher.getInstance(algorithm);
202 assertEquals("Block size does not match", 8, cipher.getBlockSize());
210 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "/ECB/PKCS5Padding");
213 cipher.getOutputSize(25);
218 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, new SecureRandom());
221 int result = cipher.getOutputSize(25);
225 result = cipher.getOutputSize(8);
233 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "/ECB/PKCS5Padding");
234 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES);
237 cipher = Cipher.getInstance("DES/CBC/NoPadding");
239 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES);
250 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "/ECB/PKCS5Padding");
251 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, new SecureRandom());
253 cipher = Cipher.getInstance("DES/CBC/NoPadding");
255 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, new SecureRandom());
268 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "/CBC/PKCS5Padding");
269 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap);
270 byte[] cipherIV = cipher.getIV();
273 cipher = Cipher.getInstance("DES/CBC/NoPadding");
275 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap);
280 cipher = Cipher.getInstance("DES/CBC/NoPadding");
283 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_DES, ap);
297 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "/CBC/PKCS5Padding");
298 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom());
299 byte[] cipherIV = cipher.getIV();
302 cipher = Cipher.getInstance("DES/CBC/NoPadding");
304 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom());
309 cipher = Cipher.getInstance("DES/CBC/NoPadding");
313 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_DES, ap, new SecureRandom());
369 Cipher cipher = Cipher.getInstance("DESEDE/CBC/PKCS5Padding");
371 cipher.update(new byte[64], 0, 32);
1120 Cipher cipher = Cipher.getInstance("DESEDE/CBC/PKCS5Padding");
1122 cipher.update(new byte[64]);