Home
last modified time | relevance | path

Searched refs:ENCRYPT_MODE (Results 1 – 21 of 21) sorted by relevance

/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java218 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, new SecureRandom()); in test_getOutputSizeI()
234 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES); in test_initWithKey()
239 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES); in test_initWithKey()
251 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, new SecureRandom()); in test_initWithSecureRandom()
255 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, new SecureRandom()); in test_initWithSecureRandom()
269 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap); in test_initWithAlgorithmParameterSpec()
275 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap); in test_initWithAlgorithmParameterSpec()
283 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_DES, ap); in test_initWithAlgorithmParameterSpec()
298 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParameterSpecSecureRandom()
304 cipher.init(Cipher.ENCRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParameterSpecSecureRandom()
[all …]
DSealedObjectTest.java110 cipher.init(Cipher.ENCRYPT_MODE, key, ips); in testSealedObject1()
115 cipher.init(Cipher.ENCRYPT_MODE, key, ips); in testSealedObject1()
161 cipher.init(Cipher.ENCRYPT_MODE, key); in testGetAlgorithm()
176 cipher.init(Cipher.ENCRYPT_MODE, key); in testGetAlgorithmAfterSerialization()
209 cipher.init(Cipher.ENCRYPT_MODE, key, ips); in testGetObject1()
253 cipher.init(Cipher.ENCRYPT_MODE, key, ips); in testGetObject2()
298 cipher.init(Cipher.ENCRYPT_MODE, key); in testGetObject3()
331 cipher.init(Cipher.ENCRYPT_MODE, key); in testDeserialization()
DNullCipherTest.java76 c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(new byte[1], "algorithm")); in testInitintKey()
84 c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(new byte[1], in testInitintKeySecureRandom()
93 c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(new byte[1], in testInitintKeyAlgorithmParameterSpec()
DCipherOutputStream1Test.java202 c.init(Cipher.ENCRYPT_MODE, key); in test_ConstructorLjava_io_OutputStreamLjavax_crypto_Cipher()
DCipherInputStream1Test.java260 c.init(Cipher.ENCRYPT_MODE, key); in test_ConstructorLjava_io_InputStreamLjavax_crypto_Cipher()
DEncryptedPrivateKeyInfoTest.java1656 c.init(Cipher.ENCRYPT_MODE, k); in TestDataGenerator()
1658 c.init(Cipher.ENCRYPT_MODE, k, pbeParamSpec); in TestDataGenerator()
/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherTest.java140 return Cipher.ENCRYPT_MODE; in getEncryptMode()
373 setExpectedBlockSize("RSA", Cipher.ENCRYPT_MODE, 256);
374 setExpectedBlockSize("RSA/ECB/NoPadding", Cipher.ENCRYPT_MODE, 256);
375 setExpectedBlockSize("RSA/ECB/PKCS1Padding", Cipher.ENCRYPT_MODE, 245);
378 setExpectedBlockSize("RSA", Cipher.ENCRYPT_MODE, "BC", 255);
379 setExpectedBlockSize("RSA/ECB/NoPadding", Cipher.ENCRYPT_MODE, "BC", 255);
453 setExpectedOutputSize("AES", Cipher.ENCRYPT_MODE, 16);
454 setExpectedOutputSize("AES/CBC/PKCS5PADDING", Cipher.ENCRYPT_MODE, 16);
455 setExpectedOutputSize("AES/CBC/PKCS7PADDING", Cipher.ENCRYPT_MODE, 16);
456 setExpectedOutputSize("AES/CFB/PKCS5PADDING", Cipher.ENCRYPT_MODE, 16);
[all …]
DMockCipherSpi.java166 if (opmode != Cipher.ENCRYPT_MODE) { in engineInit()
174 if (opmode != Cipher.ENCRYPT_MODE) { in engineInit()
182 if (opmode != Cipher.ENCRYPT_MODE) { in engineInit()
DCipherInputStreamTest.java120 cipher.init(Cipher.ENCRYPT_MODE, key, iv); in testEncrypt()
132 cipher.init(Cipher.ENCRYPT_MODE, rc4Key); in testEncrypt_RC4()
/libcore/benchmarks/src/benchmarks/regression/
DCipherInputStreamBenchmark.java66 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in setUp()
71 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in timeEncrypt()
DCipherBenchmark.java128 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in setUp()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherSymmetricKeyThread.java56 cip.init(Cipher.ENCRYPT_MODE, key, ivspec); in crypt()
64 cip.init(Cipher.ENCRYPT_MODE, key); in crypt()
DCipherRSAThread.java42 cip.init(Cipher.ENCRYPT_MODE, kp.getPublic()); in crypt()
DCipherPBEThread.java52 cip.init(Cipher.ENCRYPT_MODE, key, parSpec); in crypt()
/libcore/support/src/test/java/tests/security/
DCipherSymmetricCryptHelper.java27 super(algorithmName, plainData, Cipher.ENCRYPT_MODE, in CipherSymmetricCryptHelper()
DCipherAsymmetricCryptHelper.java27 super(algorithmName, plainData, Cipher.ENCRYPT_MODE, in CipherAsymmetricCryptHelper()
DAlgorithmParameterAsymmetricHelper.java48 cipher.init(Cipher.ENCRYPT_MODE, keyPair.getPublic(), parameters); in test()
DAlgorithmParameterSymmetricHelper.java62 cipher.init(Cipher.ENCRYPT_MODE, key, parameters); in test()
/libcore/ojluni/src/main/java/javax/crypto/
DCipher.java633 public static final int ENCRYPT_MODE = 1; field in Cipher
1088 if ((opmode < ENCRYPT_MODE) || (opmode > UNWRAP_MODE)) { in checkOpmode()
1608 (((opmode == Cipher.ENCRYPT_MODE) && in init()
1643 if ((opmode != Cipher.ENCRYPT_MODE) && in checkCipherState()
/libcore/ojluni/src/main/java/java/security/
DSignature.java1338 cipher.init(Cipher.ENCRYPT_MODE, privateKey); in engineInitSign()
1344 cipher.init(Cipher.ENCRYPT_MODE, privateKey, random); in engineInitSign()
/libcore/ojluni/src/main/java/sun/security/ssl/
DCipherBox.java151 int mode = encrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE; in CipherBox()