Home
last modified time | relevance | path

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

12

/dalvik/libcore/crypto/src/main/java/javax/crypto/
DCipher.java82 public static final int ENCRYPT_MODE = 1; 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()
856 if (opmode == ENCRYPT_MODE && (!keyUsage[7])) { 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 …]
DNullCipher.java46 this.init(Cipher.ENCRYPT_MODE, (Key)null, (SecureRandom)null); in NullCipher()
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
DCipherTest.java345 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, sr); in test_getOutputSizeI()
367 cipher.init(Cipher.ENCRYPT_MODE, cipherKey); in test_initILjava_security_Key()
372 cipher.init(Cipher.ENCRYPT_MODE, cipherKey); in test_initILjava_security_Key()
402 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, sr); in test_initILjava_security_KeyLjava_security_SecureRandom()
406 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, sr); in test_initILjava_security_KeyLjava_security_SecureRandom()
437 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, ap); in test_initILjava_security_KeyLjava_security_spec_AlgorithmParameterSpec()
445 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, ap); in test_initILjava_security_KeyLjava_security_spec_AlgorithmParameterSpec()
455 cipher.init(Cipher.ENCRYPT_MODE, cipherKeyDES, ap); in test_initILjava_security_KeyLjava_security_spec_AlgorithmParameterSpec()
496 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, ap, sr); in test_initILjava_security_KeyLjava_security_spec_AlgorithmParameterSpecLjava_security_SecureRandom()
503 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, ap, sr); in test_initILjava_security_KeyLjava_security_spec_AlgorithmParameterSpecLjava_security_SecureRandom()
[all …]
DSealedObjectTest.java123 cipher.init(Cipher.ENCRYPT_MODE, key, ips); in testSealedObject1()
128 cipher.init(Cipher.ENCRYPT_MODE, key, ips); in testSealedObject1()
186 cipher.init(Cipher.ENCRYPT_MODE, key); in testGetAlgorithm()
212 cipher.init(Cipher.ENCRYPT_MODE, key, ips); in testGetObject1()
262 cipher.init(Cipher.ENCRYPT_MODE, key, ips); in testGetObject2()
313 cipher.init(Cipher.ENCRYPT_MODE, key); in testGetObject3()
DNullCipherTest.java141 c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(new byte[1], "algorithm")); in testInitintKey()
155 c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(new byte[1], in testInitintKeySecureRandom()
170 c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(new byte[1], in testInitintKeyAlgorithmParameterSpec()
DCipherOutputStream1Test.java263 c.init(Cipher.ENCRYPT_MODE, key); in test_ConstructorLjava_io_OutputStreamLjavax_crypto_Cipher()
DCipherInputStream1Test.java321 c.init(Cipher.ENCRYPT_MODE, key); in test_ConstructorLjava_io_InputStreamLjavax_crypto_Cipher()
DEncryptedPrivateKeyInfoTest.java1910 c.init(Cipher.ENCRYPT_MODE, k); in TestDataGenerator()
1912 c.init(Cipher.ENCRYPT_MODE, k, pbeParamSpec); in TestDataGenerator()
/dalvik/libcore/crypto/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()
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/
DJCEIESCipher.java93 if (state == Cipher.ENCRYPT_MODE || state == Cipher.WRAP_MODE) in engineGetOutputSize()
155 if (params == null && (opmode == Cipher.ENCRYPT_MODE || opmode == Cipher.WRAP_MODE)) in engineInit()
209 case Cipher.ENCRYPT_MODE: in engineInit()
262 if (opmode == Cipher.ENCRYPT_MODE || opmode == Cipher.WRAP_MODE) in engineInit()
DJCEStreamCipher.java225 if ((opmode == Cipher.ENCRYPT_MODE) || (opmode == Cipher.WRAP_MODE)) in engineInit()
241 case Cipher.ENCRYPT_MODE: in engineInit()
DBrokenJCEBlockCipher.java299 if ((opmode == Cipher.ENCRYPT_MODE) || (opmode == Cipher.WRAP_MODE)) in engineInit()
315 case Cipher.ENCRYPT_MODE: in engineInit()
DJDKKeyStore.java151 …Cipher cipher = makePBECipher(KEY_CIPHER, Cipher.ENCRYPT_MODE, password, salt, iterat… in StoreEntry()
288 …Cipher out = makePBECipher(KEY_CIPHER, Cipher.ENCRYPT_MODE, password, salt, iteration… in getObject()
1047 … cipher = this.makePBECipher(STORE_CIPHER, Cipher.ENCRYPT_MODE, password, salt, iterationCount); in engineStore()
DJCEBlockCipher.java485 if ((opmode == Cipher.ENCRYPT_MODE) || (opmode == Cipher.WRAP_MODE)) in engineInit()
508 case Cipher.ENCRYPT_MODE: in engineInit()
DWrapCipherSpi.java167 case Cipher.ENCRYPT_MODE: in engineInit()
DJCERSACipher.java327 case Cipher.ENCRYPT_MODE: in engineInit()
/dalvik/libcore/security/src/test/java/tests/targets/security/
DCipherHelper.java120 super(algorithmName, plainData, Cipher.ENCRYPT_MODE, in CipherAsymmetricCryptHelper()
136 super(algorithmName, plainData, Cipher.ENCRYPT_MODE, in CipherSymmetricCryptHelper()
285 cipher.init(Cipher.ENCRYPT_MODE, keyPair.getPublic(), parameters); in test()
369 cipher.init(Cipher.ENCRYPT_MODE, key, parameters); in test()
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
DConnectionStateTLS.java213 encCipher.init(Cipher.ENCRYPT_MODE, in ConnectionStateTLS()
220 encCipher.init(Cipher.ENCRYPT_MODE, in ConnectionStateTLS()
DConnectionStateSSLv3.java185 encCipher.init(Cipher.ENCRYPT_MODE, in ConnectionStateSSLv3()
194 encCipher.init(Cipher.ENCRYPT_MODE, in ConnectionStateSSLv3()
DDigitalSignature.java110 cipher.init(Cipher.ENCRYPT_MODE, key); in init()
DClientHandshakeImpl.java419 c.init(Cipher.ENCRYPT_MODE, serverKeyExchange in processServerHelloDone()
422 c.init(Cipher.ENCRYPT_MODE, serverCert.certs[0]); in processServerHelloDone()
/dalvik/libcore/security/src/main/java/org/bouncycastle/openssl/
DPEMWriter.java273 c.init(Cipher.ENCRYPT_MODE, secretKey, new IvParameterSpec(salt)); in writeObject()
/dalvik/libcore/crypto/src/main/java/org/apache/harmony/crypto/internal/nls/
Dmessages.properties43 crypto.1A=The public key in the certificate cannot be used for ENCRYPT_MODE

12