Home
last modified time | relevance | path

Searched refs:DECRYPT_MODE (Results 1 – 16 of 16) sorted by relevance

/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherInputStreamTest.java111 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testAvailable()
120 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testDecrypt_NullInput_Discarded()
157 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testDecrypt()
165 cipher.init(Cipher.DECRYPT_MODE, rc4Key); in testDecrypt_RC4()
173 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testSkip()
190 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testCipherInputStream_TruncatedInput_Failure()
198 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testCipherInputStream_NullInputStream_Failure()
223 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testCloseTwice()
281 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testCipherOutputSizeChange()
326 cipher.init(Cipher.DECRYPT_MODE, key, params); in testDecryptCorruptGCM()
DCipherTest.java377 c.init(Cipher.DECRYPT_MODE, new MockKey(), AlgorithmParameters.getInstance("AES")); in testCipher_init_CallsInitWithMode()
409 c.init(Cipher.DECRYPT_MODE, new MockKey()); in testCipher_init_DoesNotSupportKeyClass_throwsInvalidKeyException()
443 c.init(Cipher.DECRYPT_MODE, new MockKey()); in testCipher_init_tryAllCombinationsBeforeThrowingInvalidKey()
454 c.init(Cipher.DECRYPT_MODE, new MockKey()); in testCipher_init_tryAllCombinationsBeforeThrowingInvalidKey()
DCipherOutputStreamTest.java69 cipher.init(Cipher.DECRYPT_MODE, key, params); in testDecryptCorruptGCM()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java336 c.init(Cipher.DECRYPT_MODE, k, iv); in test_update$BII()
451 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_DES, ap); in test_doFinal()
536 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_DES, ap); in testDoFinalbyteArrayintintbyteArrayint()
655 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_DES, ap); in test_doFinalLjava_nio_ByteBufferLjava_nio_ByteBuffer()
697 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_DES, ap); in test_initWithKeyAlgorithmParameters()
701 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_3DES, ap); in test_initWithKeyAlgorithmParameters()
707 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_DES, (AlgorithmParameters)null); in test_initWithKeyAlgorithmParameters()
717 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParametersSecureRandom()
721 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParametersSecureRandom()
727 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_DES, (AlgorithmParameters)null, in test_initWithKeyAlgorithmParametersSecureRandom()
[all …]
DSealedObjectTest.java258 cipher.init(Cipher.DECRYPT_MODE, key, ips); in testGetObject2()
303 cipher.init(Cipher.DECRYPT_MODE, key); in testGetObject3()
DEncryptedPrivateKeyInfoTest.java1701 c.init(Cipher.DECRYPT_MODE, pubK == null ? k : pubK); in TestDataGenerator()
1703 c.init(Cipher.DECRYPT_MODE, pubK == null ? k : pubK, ap); in TestDataGenerator()
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
DCipherSymmetricKeyThread.java61 cip.init(Cipher.DECRYPT_MODE, key, ivspec); in crypt()
67 cip.init(Cipher.DECRYPT_MODE, key); in crypt()
DCipherRSAThread.java45 cip.init(Cipher.DECRYPT_MODE, kp.getPrivate()); in crypt()
DCipherPBEThread.java55 cip.init(Cipher.DECRYPT_MODE, key, parSpec); in crypt()
/libcore/luni/src/test/java/libcore/javax/crypto/spec/
DAlgorithmParametersTestPBES2.java217 c.init(Cipher.DECRYPT_MODE, key, ap); in test_encryptWithAlgorithmParameters()
246 c.init(Cipher.DECRYPT_MODE, key, new PBEParameterSpec(new byte[0], 1000)); in test_encryptWithNoSalt()
/libcore/ojluni/src/main/java/javax/crypto/
DSealedObject.java411 c.init(Cipher.DECRYPT_MODE, key, params); in unseal()
413 c.init(Cipher.DECRYPT_MODE, key); in unseal()
DEncryptedPrivateKeyInfo.java273 c.init(Cipher.DECRYPT_MODE, decryptKey, algid.getParameters()); in getKeySpecImpl()
DCipher.java288 public static final int DECRYPT_MODE = 2; field in Cipher
1020 case DECRYPT_MODE: in getOpmodeString()
1643 (opmode != Cipher.DECRYPT_MODE)) { in checkCipherState()
/libcore/benchmarks/src/benchmarks/regression/
DCipherBenchmark.java131 cipherDecrypt.init(Cipher.DECRYPT_MODE, key, spec); in setUp()
/libcore/ojluni/annotations/mmodule/javax/crypto/
DCipher.annotated.java122 public static final int DECRYPT_MODE = 2; // 0x2 field in Cipher
/libcore/ojluni/src/main/java/java/security/
DSignature.java1489 cipher.init(Cipher.DECRYPT_MODE, publicKey); in engineInitVerify()