/dalvik/libcore/crypto/src/main/java/javax/crypto/ |
D | Cipher.java | 82 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 …]
|
D | NullCipher.java | 46 this.init(Cipher.ENCRYPT_MODE, (Key)null, (SecureRandom)null); in NullCipher()
|
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | CipherTest.java | 345 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 …]
|
D | SealedObjectTest.java | 123 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()
|
D | NullCipherTest.java | 141 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()
|
D | CipherOutputStream1Test.java | 263 c.init(Cipher.ENCRYPT_MODE, key); in test_ConstructorLjava_io_OutputStreamLjavax_crypto_Cipher()
|
D | CipherInputStream1Test.java | 321 c.init(Cipher.ENCRYPT_MODE, key); in test_ConstructorLjava_io_InputStreamLjavax_crypto_Cipher()
|
D | EncryptedPrivateKeyInfoTest.java | 1910 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/ |
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()
|
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/ |
D | JCEIESCipher.java | 93 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()
|
D | JCEStreamCipher.java | 225 if ((opmode == Cipher.ENCRYPT_MODE) || (opmode == Cipher.WRAP_MODE)) in engineInit() 241 case Cipher.ENCRYPT_MODE: in engineInit()
|
D | BrokenJCEBlockCipher.java | 299 if ((opmode == Cipher.ENCRYPT_MODE) || (opmode == Cipher.WRAP_MODE)) in engineInit() 315 case Cipher.ENCRYPT_MODE: in engineInit()
|
D | JDKKeyStore.java | 151 …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()
|
D | JCEBlockCipher.java | 485 if ((opmode == Cipher.ENCRYPT_MODE) || (opmode == Cipher.WRAP_MODE)) in engineInit() 508 case Cipher.ENCRYPT_MODE: in engineInit()
|
D | WrapCipherSpi.java | 167 case Cipher.ENCRYPT_MODE: in engineInit()
|
D | JCERSACipher.java | 327 case Cipher.ENCRYPT_MODE: in engineInit()
|
/dalvik/libcore/security/src/test/java/tests/targets/security/ |
D | CipherHelper.java | 120 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/ |
D | ConnectionStateTLS.java | 213 encCipher.init(Cipher.ENCRYPT_MODE, in ConnectionStateTLS() 220 encCipher.init(Cipher.ENCRYPT_MODE, in ConnectionStateTLS()
|
D | ConnectionStateSSLv3.java | 185 encCipher.init(Cipher.ENCRYPT_MODE, in ConnectionStateSSLv3() 194 encCipher.init(Cipher.ENCRYPT_MODE, in ConnectionStateSSLv3()
|
D | DigitalSignature.java | 110 cipher.init(Cipher.ENCRYPT_MODE, key); in init()
|
D | ClientHandshakeImpl.java | 419 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/ |
D | PEMWriter.java | 273 c.init(Cipher.ENCRYPT_MODE, secretKey, new IvParameterSpec(salt)); in writeObject()
|
/dalvik/libcore/crypto/src/main/java/org/apache/harmony/crypto/internal/nls/ |
D | messages.properties | 43 crypto.1A=The public key in the certificate cannot be used for ENCRYPT_MODE
|