/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | CipherTest.java | 218 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 …]
|
D | SealedObjectTest.java | 110 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()
|
D | NullCipherTest.java | 76 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()
|
D | CipherOutputStream1Test.java | 202 c.init(Cipher.ENCRYPT_MODE, key); in test_ConstructorLjava_io_OutputStreamLjavax_crypto_Cipher()
|
D | CipherInputStream1Test.java | 260 c.init(Cipher.ENCRYPT_MODE, key); in test_ConstructorLjava_io_InputStreamLjavax_crypto_Cipher()
|
D | EncryptedPrivateKeyInfoTest.java | 1656 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/ |
D | CipherTest.java | 140 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 …]
|
D | MockCipherSpi.java | 166 if (opmode != Cipher.ENCRYPT_MODE) { in engineInit() 174 if (opmode != Cipher.ENCRYPT_MODE) { in engineInit() 182 if (opmode != Cipher.ENCRYPT_MODE) { in engineInit()
|
D | CipherInputStreamTest.java | 120 cipher.init(Cipher.ENCRYPT_MODE, key, iv); in testEncrypt() 132 cipher.init(Cipher.ENCRYPT_MODE, rc4Key); in testEncrypt_RC4()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CipherInputStreamBenchmark.java | 66 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in setUp() 71 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in timeEncrypt()
|
D | CipherBenchmark.java | 128 cipherEncrypt.init(Cipher.ENCRYPT_MODE, key, spec); in setUp()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | CipherSymmetricKeyThread.java | 56 cip.init(Cipher.ENCRYPT_MODE, key, ivspec); in crypt() 64 cip.init(Cipher.ENCRYPT_MODE, key); in crypt()
|
D | CipherRSAThread.java | 42 cip.init(Cipher.ENCRYPT_MODE, kp.getPublic()); in crypt()
|
D | CipherPBEThread.java | 52 cip.init(Cipher.ENCRYPT_MODE, key, parSpec); in crypt()
|
/libcore/support/src/test/java/tests/security/ |
D | CipherSymmetricCryptHelper.java | 27 super(algorithmName, plainData, Cipher.ENCRYPT_MODE, in CipherSymmetricCryptHelper()
|
D | CipherAsymmetricCryptHelper.java | 27 super(algorithmName, plainData, Cipher.ENCRYPT_MODE, in CipherAsymmetricCryptHelper()
|
D | AlgorithmParameterAsymmetricHelper.java | 48 cipher.init(Cipher.ENCRYPT_MODE, keyPair.getPublic(), parameters); in test()
|
D | AlgorithmParameterSymmetricHelper.java | 62 cipher.init(Cipher.ENCRYPT_MODE, key, parameters); in test()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | Cipher.java | 633 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/ |
D | Signature.java | 1338 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/ |
D | CipherBox.java | 151 int mode = encrypt ? Cipher.ENCRYPT_MODE : Cipher.DECRYPT_MODE; in CipherBox()
|