/external/boringssl/src/crypto/err/ |
cipher.errordata | 0 CIPHER,100,AES_KEY_SETUP_FAILED 2 CIPHER,101,BAD_DECRYPT 3 CIPHER,102,BAD_KEY_LENGTH 4 CIPHER,103,BUFFER_TOO_SMALL 5 CIPHER,104,CTRL_NOT_IMPLEMENTED 6 CIPHER,105,CTRL_OPERATION_NOT_IMPLEMENTED 7 CIPHER,106,DATA_NOT_MULTIPLE_OF_BLOCK_LENGTH 8 CIPHER,107,INITIALIZATION_ERROR 9 CIPHER,108,INPUT_NOT_INITIALIZED 10 CIPHER,109,INVALID_AD_SIZ [all...] |
/external/boringssl/src/util/ |
all_tests.json | 7 ["crypto/cipher/aead_test", "aes-128-gcm", "crypto/cipher/test/aes_128_gcm_tests.txt"], 8 ["crypto/cipher/aead_test", "aes-128-key-wrap", "crypto/cipher/test/aes_128_key_wrap_tests.txt"], 9 ["crypto/cipher/aead_test", "aes-256-gcm", "crypto/cipher/test/aes_256_gcm_tests.txt"], 10 ["crypto/cipher/aead_test", "aes-256-key-wrap", "crypto/cipher/test/aes_256_key_wrap_tests.txt"], 11 ["crypto/cipher/aead_test", "chacha20-poly1305", "crypto/cipher/test/chacha20_poly1305_tests.txt"] [all...] |
/external/boringssl/src/crypto/cipher/test/ |
make_all_legacy_aead_tests.sh | 5 go run make_legacy_aead_tests.go -cipher rc4 -mac md5 > rc4_md5_tls_tests.txt 6 go run make_legacy_aead_tests.go -cipher rc4 -mac sha1 > rc4_sha1_tls_tests.txt 8 go run make_legacy_aead_tests.go -cipher aes128 -mac sha1 > aes_128_cbc_sha1_tls_tests.txt 9 go run make_legacy_aead_tests.go -cipher aes128 -mac sha1 -implicit-iv > aes_128_cbc_sha1_tls_implicit_iv_tests.txt 10 go run make_legacy_aead_tests.go -cipher aes128 -mac sha256 > aes_128_cbc_sha256_tls_tests.txt 12 go run make_legacy_aead_tests.go -cipher aes256 -mac sha1 > aes_256_cbc_sha1_tls_tests.txt 13 go run make_legacy_aead_tests.go -cipher aes256 -mac sha1 -implicit-iv > aes_256_cbc_sha1_tls_implicit_iv_tests.txt 14 go run make_legacy_aead_tests.go -cipher aes256 -mac sha256 > aes_256_cbc_sha256_tls_tests.txt 15 go run make_legacy_aead_tests.go -cipher aes256 -mac sha384 > aes_256_cbc_sha384_tls_tests.txt 17 go run make_legacy_aead_tests.go -cipher 3des -mac sha1 > des_ede3_cbc_sha1_tls_tests.tx [all...] |
cipher_test.txt | 2 Cipher = RC4 7 Cipher = RC4 12 Cipher = RC4 17 Cipher = RC4 22 Cipher = RC4 27 Cipher = RC4 34 Cipher = DES-EDE3-CBC 42 Cipher = DES-EDE-CBC 50 Cipher = DES-EDE 58 Cipher = AES-128-EC [all...] |
/external/srtp/doc/ |
crypto_kernel.txt | 14 @brief A generic cipher type enables cipher agility, that is, the 15 ability to write code that runs with multiple cipher types. 24 * @brief Allocates a cipher of a particular type. 28 cipher_type_alloc(cipher_type_t *ctype, cipher_t **cipher, 32 * @brief Initialized a cipher to use a particular key. May 33 * be invoked more than once on the same cipher. 38 cipher_init(cipher_t *cipher, const uint8_t *key); 41 * @brief Sets the initialization vector of a given cipher. 46 cipher_set_iv(cipher_t *cipher, void *iv) [all...] |
/libcore/luni/src/test/java/libcore/javax/crypto/ |
CipherInputStreamTest.java | 26 import javax.crypto.Cipher; 97 Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding"); local 98 cipher.init(Cipher.DECRYPT_MODE, key, iv); 100 InputStream cin = new CipherInputStream(in, cipher); 106 Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding") local 119 Cipher cipher = Cipher.getInstance("AES\/CBC\/PKCS5Padding"); local 131 Cipher cipher = Cipher.getInstance("RC4"); local 143 Cipher cipher = Cipher.getInstance("AES\/CBC\/PKCS5Padding"); local 151 Cipher cipher = Cipher.getInstance("RC4"); local 159 Cipher cipher = Cipher.getInstance("AES\/CBC\/PKCS5Padding"); local 176 Cipher cipher = Cipher.getInstance("AES\/CBC\/PKCS5Padding"); local 184 Cipher cipher = Cipher.getInstance("AES\/CBC\/PKCS5Padding"); local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
CipherTest.java | 42 import javax.crypto.Cipher; 89 * javax.crypto.Cipher#getInstance(java.lang.String) 92 Cipher cipher = Cipher.getInstance("DESede/CBC/PKCS5Padding"); local 93 assertNotNull("Received a null Cipher instance", cipher); 96 Cipher.getInstance("WrongAlgorithmName"); 103 * javax.crypto.Cipher#getInstance(java.lang.String, 109 Provider[] providers = Security.getProviders("Cipher.DES") 114 Cipher cipher = Cipher.getInstance("DES", providers[i].getName()); local 148 Cipher cipher = Cipher.getInstance("DES", providers[i]); local 176 Cipher cipher = Cipher.getInstance("AES", provider.getName()); local 190 Cipher cipher = Cipher.getInstance(algorithm); local 201 Cipher cipher = Cipher.getInstance(algorithm); local 210 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "\/ECB\/PKCS5Padding"); local 233 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "\/ECB\/PKCS5Padding"); local 250 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "\/ECB\/PKCS5Padding"); local 268 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "\/CBC\/PKCS5Padding"); local 297 Cipher cipher = Cipher.getInstance(ALGORITHM_3DES + "\/CBC\/PKCS5Padding"); local 369 Cipher cipher = Cipher.getInstance("DESEDE\/CBC\/PKCS5Padding"); local 1119 Cipher cipher = Cipher.getInstance("DESEDE\/CBC\/PKCS5Padding"); local [all...] |
SealedObjectTest.java | 39 import javax.crypto.Cipher; 53 public Mock_SealedObject(Serializable object, Cipher c) 91 * SealedObject(Serializable object, Cipher c) method testing. Tests if the 92 * NullPointerException is thrown in the case of null cipher. 99 + "of null cipher."); 109 Cipher cipher = Cipher.getInstance("DES/CBC/PKCS5Padding"); local 110 cipher.init(Cipher.ENCRYPT_MODE, key, ips) 138 Cipher cipher = new NullCipher(); local 160 Cipher cipher = Cipher.getInstance(algorithm); local 175 Cipher cipher = Cipher.getInstance(algorithm); local 208 Cipher cipher = Cipher.getInstance("DES\/CBC\/PKCS5Padding"); local 252 Cipher cipher = Cipher.getInstance("DES\/CBC\/PKCS5Padding"); local 296 Cipher cipher = Cipher.getInstance("DES"); local 330 Cipher cipher = Cipher.getInstance("DES"); local [all...] |
/external/fonttools/Lib/fontTools/misc/ |
eexec.py | 8 def _decryptChar(cipher, R): 9 cipher = byteord(cipher) 10 plain = ( (cipher ^ (R>>8)) ) & 0xFF 11 R = ( (cipher + R) * 52845 + 22719 ) & 0xFFFF 16 cipher = ( (plain ^ (R>>8)) ) & 0xFF 17 R = ( (cipher + R) * 52845 + 22719 ) & 0xFFFF 18 return bytechr(cipher), R 23 for cipher in cipherstring: 24 plain, R = _decryptChar(cipher, R [all...] |
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/ |
Cipher_ImplTest.java | 31 import javax.crypto.Cipher; 39 * Tests for <code>Cipher</code> class constructors and methods. 87 * Class under test for Cipher getInstance(String) 92 Cipher c = Cipher.getInstance("DES"); 97 * Class under test for Cipher getInstance(String) 102 Cipher c = Cipher.getInstance("DES/CBC/PKCS5Padding"); 107 c = Cipher.getInstance("DES/CBC/PKCS5Padding"); 112 * Class under test for Cipher getInstance(String [all...] |
Cipher_Impl1Test.java | 25 import javax.crypto.Cipher; 46 * @tests javax.crypto.Cipher#getIV() 47 * @tests javax.crypto.Cipher#init(int, java.security.Key, 57 Cipher cipher = null; local 64 cipher = Cipher.getInstance(algorithm + "/CBC/PKCS5Padding"); 65 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, ap); 67 byte[] cipherIV = cipher.getIV() 85 Cipher cipher = null; local [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/ |
CBCBlockCipherMac.java | 10 * standard CBC Block Cipher MAC - if no padding is specified the default of 20 private BlockCipher cipher; field in class:CBCBlockCipherMac 26 * create a standard MAC based on a CBC block cipher. This will produce an 27 * authentication code half the length of the block size of the cipher. 29 * @param cipher the cipher to be used as the basis of the MAC generation. 32 BlockCipher cipher) 34 this(cipher, (cipher.getBlockSize() * 8) / 2, null); 38 * create a standard MAC based on a CBC block cipher. This will produce a [all...] |
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
CipherTest.java | 33 import javax.crypto.Cipher; 62 * @tests javax.crypto.Cipher#getInstance(java.lang.String) 65 Cipher cipher = Cipher.getInstance("DESede/CBC/PKCS5Padding"); local 66 assertNotNull("Received a null Cipher instance", cipher); 70 * @tests javax.crypto.Cipher#getInstance(java.lang.String, 76 Provider[] providers = Security.getProviders("Cipher.DES"); 78 assertNotNull("No installed providers support Cipher.DES", providers) 81 Cipher cipher = Cipher.getInstance("DES", providers[i].getName()); local 122 Cipher cipher = Cipher.getInstance("DES", providers[i]); local 138 Cipher cipher = Cipher.getInstance("AES", provider.getName()); local 152 Cipher cipher = Cipher.getInstance(algorithm); local 163 Cipher cipher = Cipher.getInstance(algorithm); local 173 Cipher cipher = Cipher.getInstance(algorithm + "\/ECB\/PKCS5Padding"); local 189 Cipher cipher = Cipher.getInstance(algorithm + "\/ECB\/PKCS5Padding"); local 200 Cipher cipher = Cipher.getInstance(algorithm + "\/ECB\/PKCS5Padding"); local 211 Cipher cipher = null; local 237 Cipher cipher = null; local [all...] |
/cts/tests/tests/keystore/src/android/keystore/cts/ |
RSACipherTest.java | 27 import javax.crypto.Cipher; 59 Cipher cipher = Cipher.getInstance("RSA/ECB/NoPadding", provider); local 60 cipher.init(Cipher.ENCRYPT_MODE, publicKey); 61 MoreAsserts.assertEquals(expectedOutput, cipher.doFinal(input)); 63 cipher.init(Cipher.DECRYPT_MODE, privateKey); 64 MoreAsserts.assertEquals(expectedOutput, cipher.doFinal(input)) 89 Cipher cipher = Cipher.getInstance("RSA\/ECB\/NoPadding", provider); local 115 Cipher cipher = Cipher.getInstance("RSA\/ECB\/NoPadding", provider); local 144 Cipher cipher = Cipher.getInstance("RSA\/ECB\/NoPadding", provider); local 176 Cipher cipher = Cipher.getInstance("RSA\/ECB\/NoPadding", provider); local 208 Cipher cipher = Cipher.getInstance("RSA\/ECB\/NoPadding", EXPECTED_PROVIDER_NAME); local 235 Cipher cipher = Cipher.getInstance("RSA\/ECB\/NoPadding", EXPECTED_PROVIDER_NAME); local [all...] |
/external/boringssl/src/crypto/cipher/ |
cipher.c | 57 #include <openssl/cipher.h> 103 if (c->cipher != NULL) { 104 if (c->cipher->cleanup) { 105 c->cipher->cleanup(c); 107 OPENSSL_cleanse(c->cipher_data, c->cipher->ctx_size); 123 if (in == NULL || in->cipher == NULL) { 124 OPENSSL_PUT_ERROR(CIPHER, CIPHER_R_INPUT_NOT_INITIALIZED); 131 if (in->cipher_data && in->cipher->ctx_size) { 132 out->cipher_data = OPENSSL_malloc(in->cipher->ctx_size); 134 OPENSSL_PUT_ERROR(CIPHER, ERR_R_MALLOC_FAILURE) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/ |
SkippingStreamCipher.java | 4 * General interface for a stream cipher that supports skipping.
|
BlockCipher.java | 5 * Block cipher engines are expected to conform to this interface. 10 * Initialise the cipher. 12 * @param forEncryption if true the cipher is initialised for 14 * @param params the key and other data required by the cipher. 22 * Return the name of the algorithm the cipher implements. 24 * @return the name of the algorithm the cipher implements. 29 * Return the block size for this cipher (in bytes). 31 * @return the block size for this cipher in bytes. 45 * @exception IllegalStateException if the cipher isn't initialised. 52 * Reset the cipher. After resetting the cipher is in the same stat [all...] |
StreamBlockCipher.java | 4 * A parent class for block cipher modes that do not require block aligned data to be processed, but can function in 10 private final BlockCipher cipher; field in class:StreamBlockCipher 12 protected StreamBlockCipher(BlockCipher cipher) 14 this.cipher = cipher; 18 * return the underlying block cipher that we are wrapping. 20 * @return the underlying block cipher that we are wrapping. 24 return cipher;
|
/external/srtp/crypto/include/ |
aes_cbc.h | 4 * Header for AES Cipher Blobk Chaining Mode. 15 #include "cipher.h" 18 v128_t state; /* cipher chaining state */ 20 aes_expanded_key_t expanded_key; /* the cipher key */
|
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
SealedObjectTest.java | 31 import javax.crypto.Cipher; 71 * SealedObject(Serializable object, Cipher c) method testing. Tests if the 72 * NullPointerException is thrown in the case of null cipher. 79 + "of null cipher."); 97 Cipher cipher = new NullCipher(); local 98 SealedObject so1 = new SealedObject(secret, cipher); 103 .getObject(cipher)); 111 * corresponding value of Cipher object. 119 Cipher cipher = Cipher.getInstance(algorithm) local 139 Cipher cipher = Cipher.getInstance("DES\/CBC\/PKCS5Padding"); local 174 Cipher cipher = Cipher.getInstance("DES\/CBC\/PKCS5Padding"); local 212 Cipher cipher = Cipher.getInstance("DES"); local [all...] |
/prebuilts/eclipse/mavenplugins/tycho/tycho-dependencies-m2repo/org/sonatype/plexus/plexus-cipher/1.7/ |
_remote.repositories | 3 plexus-cipher-1.7.jar>central= 4 plexus-cipher-1.7.pom>central=
|
/prebuilts/tools/common/m2/repository/org/sonatype/plexus/plexus-cipher/1.4/ |
_remote.repositories | 3 plexus-cipher-1.4.jar>central= 4 plexus-cipher-1.4.pom>central=
|
/libcore/support/src/test/java/tests/security/ |
AlgorithmParameterAsymmetricHelper.java | 27 import javax.crypto.Cipher; 47 Cipher cipher = Cipher.getInstance(algorithmName); local 48 cipher.init(Cipher.ENCRYPT_MODE, keyPair.getPublic(), parameters); 49 byte[] bs = cipher.doFinal(plainData.getBytes()); 51 cipher.init(Cipher.DECRYPT_MODE, keyPair.getPrivate(), parameters); 52 byte[] decrypted = cipher.doFinal(bs) [all...] |
AlgorithmParameterSymmetricHelper.java | 26 import javax.crypto.Cipher; 61 Cipher cipher = Cipher.getInstance(transformation); local 62 cipher.init(Cipher.ENCRYPT_MODE, key, parameters); 63 byte[] bs = cipher.doFinal(plainData.getBytes()); 65 cipher.init(Cipher.DECRYPT_MODE, key, parameters); 66 byte[] decrypted = cipher.doFinal(bs) [all...] |
/frameworks/base/services/core/java/com/android/server/accounts/ |
CryptoHelper.java | 14 import javax.crypto.Cipher; 27 private static final String KEY_CIPHER = "cipher"; 63 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); local 64 cipher.init(Cipher.ENCRYPT_MODE, mEncryptionKey); 65 byte[] encryptedBytes = cipher.doFinal(clearBytes); 66 byte[] iv = cipher.getIV(); 89 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM) local [all...] |