Home
last modified time | relevance | path

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

/dalvik/libcore/crypto/src/main/java/javax/crypto/
DCipher.java75 public static final int DECRYPT_MODE = 2; field in Cipher
545 if (opmode != ENCRYPT_MODE && opmode != DECRYPT_MODE in init()
638 if (opmode != ENCRYPT_MODE && opmode != DECRYPT_MODE in init()
736 if (opmode != ENCRYPT_MODE && opmode != DECRYPT_MODE in init()
829 if (opmode != ENCRYPT_MODE && opmode != DECRYPT_MODE in init()
859 } else if (opmode == DECRYPT_MODE && (!keyUsage[8])) { in init()
890 if (mode != ENCRYPT_MODE && mode != DECRYPT_MODE) { in update()
925 if (mode != ENCRYPT_MODE && mode != DECRYPT_MODE) { in update()
1013 if (mode != ENCRYPT_MODE && mode != DECRYPT_MODE) { in update()
1068 if (mode != ENCRYPT_MODE && mode != DECRYPT_MODE) { in update()
[all …]
DSealedObject.java176 cipher.init(Cipher.DECRYPT_MODE, key, params); in getObject()
178 cipher.init(Cipher.DECRYPT_MODE, key); in getObject()
274 cipher.init(Cipher.DECRYPT_MODE, key, params); in getObject()
276 cipher.init(Cipher.DECRYPT_MODE, key); in getObject()
DEncryptedPrivateKeyInfo.java306 cipher.init(Cipher.DECRYPT_MODE, decryptKey); in getKeySpec()
308 cipher.init(Cipher.DECRYPT_MODE, decryptKey, algParameters); in getKeySpec()
368 cipher.init(Cipher.DECRYPT_MODE, decryptKey); in getKeySpec()
370 cipher.init(Cipher.DECRYPT_MODE, decryptKey, algParameters); in getKeySpec()
424 cipher.init(Cipher.DECRYPT_MODE, decryptKey); in getKeySpec()
426 cipher.init(Cipher.DECRYPT_MODE, decryptKey, algParameters); in getKeySpec()
/dalvik/libcore/crypto/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()
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java552 c.init(Cipher.DECRYPT_MODE, k, iv); in test_update$BII()
679 c.init(Cipher.DECRYPT_MODE, cipherKeyDES, ap); in test_doFinal()
820 c.init(Cipher.DECRYPT_MODE, cipherKeyDES, ap); in testDoFinalbyteArrayintintbyteArrayint()
979 c.init(Cipher.DECRYPT_MODE, cipherKeyDES, ap); in test_doFinalLjava_nio_ByteBufferLjava_nio_ByteBuffer()
1037 c.init(Cipher.DECRYPT_MODE, cipherKeyDES, ap); in test_initILjava_security_KeyLjava_security_AlgorithmParameters()
1041 c.init(Cipher.DECRYPT_MODE, cipherKey, ap); in test_initILjava_security_KeyLjava_security_AlgorithmParameters()
1048 c.init(Cipher.DECRYPT_MODE, cipherKeyDES, (AlgorithmParameters)null); in test_initILjava_security_KeyLjava_security_AlgorithmParameters()
1079 c.init(Cipher.DECRYPT_MODE, cipherKeyDES, ap, sr); in test_initILjava_security_KeyLjava_security_AlgorithmParametersLjava_security_SecureRandom()
1083 c.init(Cipher.DECRYPT_MODE, cipherKey, ap, new SecureRandom()); in test_initILjava_security_KeyLjava_security_AlgorithmParametersLjava_security_SecureRandom()
1090 c.init(Cipher.DECRYPT_MODE, cipherKeyDES, (AlgorithmParameters)null, sr); in test_initILjava_security_KeyLjava_security_AlgorithmParametersLjava_security_SecureRandom()
[all …]
DSealedObjectTest.java267 cipher.init(Cipher.DECRYPT_MODE, key, ips); in testGetObject2()
318 cipher.init(Cipher.DECRYPT_MODE, key); in testGetObject3()
DEncryptedPrivateKeyInfoTest.java1955 c.init(Cipher.DECRYPT_MODE, pubK == null ? k : pubK); in TestDataGenerator()
1957 c.init(Cipher.DECRYPT_MODE, pubK == null ? k : pubK, ap); in TestDataGenerator()
/dalvik/libcore/security/src/test/java/tests/targets/security/
DCipherHelper.java121 Cipher.DECRYPT_MODE); in CipherAsymmetricCryptHelper()
137 Cipher.DECRYPT_MODE); in CipherSymmetricCryptHelper()
302 cipher.init(Cipher.DECRYPT_MODE, keyPair.getPrivate(), parameters); in test()
386 cipher.init(Cipher.DECRYPT_MODE, key, parameters); in test()
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/
DJCEIESCipher.java97 else if (state == Cipher.DECRYPT_MODE || state == Cipher.UNWRAP_MODE) in engineGetOutputSize()
213 case Cipher.DECRYPT_MODE: in engineInit()
DJDKKeyStore.java229 …Cipher cipher = makePBECipher(KEY_CIPHER, Cipher.DECRYPT_MODE, password, salt, iterationCount… in getObject()
248 …cipher = makePBECipher("Broken" + KEY_CIPHER, Cipher.DECRYPT_MODE, password, salt, iterationCount); in getObject()
269 … cipher = makePBECipher("Old" + KEY_CIPHER, Cipher.DECRYPT_MODE, password, salt, iterationCount); in getObject()
994 …cipher = this.makePBECipher("Old" + STORE_CIPHER, Cipher.DECRYPT_MODE, password, salt, iterationCo… in engineLoad()
998 … cipher = this.makePBECipher(STORE_CIPHER, Cipher.DECRYPT_MODE, password, salt, iterationCount); in engineLoad()
DJCEStreamCipher.java245 case Cipher.DECRYPT_MODE: in engineInit()
DWrapCipherSpi.java168 case Cipher.DECRYPT_MODE: in engineInit()
DJCERSACipher.java331 case Cipher.DECRYPT_MODE: in engineInit()
DBrokenJCEBlockCipher.java319 case Cipher.DECRYPT_MODE: in engineInit()
DJCEBlockCipher.java512 case Cipher.DECRYPT_MODE: in engineInit()
DJDKPKCS12KeyStore.java646 cipher.init(Cipher.DECRYPT_MODE, k, defParams); in decryptData()
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
DConnectionStateTLS.java215 decCipher.init(Cipher.DECRYPT_MODE, in ConnectionStateTLS()
222 decCipher.init(Cipher.DECRYPT_MODE, in ConnectionStateTLS()
DConnectionStateSSLv3.java188 decCipher.init(Cipher.DECRYPT_MODE, in ConnectionStateSSLv3()
197 decCipher.init(Cipher.DECRYPT_MODE, in ConnectionStateSSLv3()
DDigitalSignature.java126 cipher.init(Cipher.DECRYPT_MODE, cert); in init()
DServerHandshakeImpl.java226 c.init(Cipher.DECRYPT_MODE, privKey); in unwrap()
/dalvik/libcore/crypto/src/main/java/org/apache/harmony/crypto/internal/nls/
Dmessages.properties44 crypto.1B=The public key in the certificate cannot be used for DECRYPT_MODE