Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/javax/crypto/
DCipherTest.java147 return Cipher.DECRYPT_MODE; in getDecryptMode()
381 setExpectedBlockSize("RSA", Cipher.DECRYPT_MODE, 256);
382 setExpectedBlockSize("RSA/ECB/NoPadding", Cipher.DECRYPT_MODE, 256);
383 setExpectedBlockSize("RSA/ECB/PKCS1Padding", Cipher.DECRYPT_MODE, 256);
486 setExpectedOutputSize("AES", Cipher.DECRYPT_MODE, 0);
487 setExpectedOutputSize("AES/CBC/PKCS5PADDING", Cipher.DECRYPT_MODE, 0);
488 setExpectedOutputSize("AES/CBC/PKCS7PADDING", Cipher.DECRYPT_MODE, 0);
489 setExpectedOutputSize("AES/CFB/PKCS5PADDING", Cipher.DECRYPT_MODE, 0);
490 setExpectedOutputSize("AES/CFB/PKCS7PADDING", Cipher.DECRYPT_MODE, 0);
491 setExpectedOutputSize("AES/CTR/PKCS5PADDING", Cipher.DECRYPT_MODE, 0);
[all …]
DCipherInputStreamTest.java98 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testAvailable()
107 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testDecrypt_NullInput_Discarded()
144 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testDecrypt()
152 cipher.init(Cipher.DECRYPT_MODE, rc4Key); in testDecrypt_RC4()
160 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testSkip()
177 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testCipherInputStream_TruncatedInput_Failure()
185 cipher.init(Cipher.DECRYPT_MODE, key, iv); in testCipherInputStream_NullInputStream_Failure()
/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()
654 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_DES, ap); in test_doFinalLjava_nio_ByteBufferLjava_nio_ByteBuffer()
696 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_DES, ap); in test_initWithKeyAlgorithmParameters()
700 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_3DES, ap); in test_initWithKeyAlgorithmParameters()
706 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_DES, (AlgorithmParameters)null); in test_initWithKeyAlgorithmParameters()
716 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParametersSecureRandom()
720 c.init(Cipher.DECRYPT_MODE, CIPHER_KEY_3DES, ap, new SecureRandom()); in test_initWithKeyAlgorithmParametersSecureRandom()
726 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/support/src/test/java/tests/security/
DCipherSymmetricCryptHelper.java28 Cipher.DECRYPT_MODE); in CipherSymmetricCryptHelper()
DCipherAsymmetricCryptHelper.java28 Cipher.DECRYPT_MODE); in CipherAsymmetricCryptHelper()
DAlgorithmParameterAsymmetricHelper.java51 cipher.init(Cipher.DECRYPT_MODE, keyPair.getPrivate(), parameters); in test()
DAlgorithmParameterSymmetricHelper.java65 cipher.init(Cipher.DECRYPT_MODE, key, parameters); in test()
/libcore/ojluni/src/main/java/javax/crypto/
DSealedObject.java415 c.init(Cipher.DECRYPT_MODE, key, params); in unseal()
417 c.init(Cipher.DECRYPT_MODE, key); in unseal()
DEncryptedPrivateKeyInfo.java286 c.init(Cipher.DECRYPT_MODE, decryptKey, algid.getParameters()); in getKeySpecImpl()
DCipher.java638 public static final int DECRYPT_MODE = 2; field in Cipher
1644 (opmode != Cipher.DECRYPT_MODE)) { in checkCipherState()
/libcore/benchmarks/src/benchmarks/regression/
DCipherBenchmark.java131 cipherDecrypt.init(Cipher.DECRYPT_MODE, key, spec); in setUp()
/libcore/ojluni/src/main/java/sun/security/ssl/
DCipherBox.java151 int mode = encrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE; in CipherBox()
170 mode == Cipher.DECRYPT_MODE && in CipherBox()
/libcore/ojluni/src/main/java/java/security/
DSignature.java1328 cipher.init(Cipher.DECRYPT_MODE, publicKey); in engineInitVerify()