Searched refs:cipher (Results 1 - 25 of 211) sorted by relevance

123456789

/external/srtp/doc/
H A Dcrypto_kernel.txt14 @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, voi
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/
H A DCBCBlockCipherMac.java20 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 an
39 * authentication code half the length of the block size of the cipher
31 CBCBlockCipherMac( BlockCipher cipher) argument
44 CBCBlockCipherMac( BlockCipher cipher, BlockCipherPadding padding) argument
64 CBCBlockCipherMac( BlockCipher cipher, int macSizeInBits) argument
85 CBCBlockCipherMac( BlockCipher cipher, int macSizeInBits, BlockCipherPadding padding) argument
[all...]
/external/fonttools/Lib/fontTools/misc/
H A Deexec.py8 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,
[all...]
/external/fonttools/Tools/fontTools/misc/
H A Deexec.py8 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,
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
H A DStreamBlockCipher.java4 * 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) argument
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;
H A DBufferedBlockCipher.java9 * Note: in the case where the underlying cipher is either a CFB cipher or an
18 protected BlockCipher cipher; field in class:BufferedBlockCipher
31 * Create a buffered block cipher without padding.
33 * @param cipher the underlying block cipher this buffering object wraps.
36 BlockCipher cipher)
38 this.cipher = cipher;
40 buf = new byte[cipher
35 BufferedBlockCipher( BlockCipher cipher) argument
[all...]
/external/boringssl/src/crypto/cipher/
H A Dcipher.c57 #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) {
131 if (in->cipher_data && in->cipher->ctx_size) {
132 out->cipher_data = OPENSSL_malloc(in->cipher->ctx_size);
137 memcpy(out->cipher_data, in->cipher_data, in->cipher->ctx_size);
140 if (in->cipher
147 EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, const uint8_t *key, const uint8_t *iv, int enc) argument
244 EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const uint8_t *key, const uint8_t *iv) argument
249 EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const uint8_t *key, const uint8_t *iv) argument
585 EVP_CIPHER_nid(const EVP_CIPHER *cipher) argument
587 EVP_CIPHER_block_size(const EVP_CIPHER *cipher) argument
591 EVP_CIPHER_key_length(const EVP_CIPHER *cipher) argument
595 EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) argument
599 EVP_CIPHER_flags(const EVP_CIPHER *cipher) argument
603 EVP_CIPHER_mode(const EVP_CIPHER *cipher) argument
607 EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const uint8_t *key, const uint8_t *iv, int enc) argument
615 EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const uint8_t *key, const uint8_t *iv) argument
620 EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const uint8_t *key, const uint8_t *iv) argument
[all...]
/external/boringssl/src/crypto/cipher/test/
H A Dmake_all_legacy_aead_tests.sh5 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
[all...]
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/
H A DSealedObjectTest.java72 * NullPointerException is thrown in the case of null cipher.
79 + "of null cipher.");
97 Cipher cipher = new NullCipher();
98 SealedObject so1 = new SealedObject(secret, cipher);
103 .getObject(cipher));
119 Cipher cipher = Cipher.getInstance(algorithm);
120 cipher.init(Cipher.ENCRYPT_MODE, key);
121 SealedObject so = new SealedObject(secret, cipher);
124 + "in cipher.", algorithm, so.getAlgorithm());
139 Cipher cipher
[all...]
/external/ppp/pppd/
H A Dpppcrypt.c148 DesEncrypt(clear, cipher)
150 u_char *cipher; /* OUT 8 octets */
159 Collapse(des_input, cipher);
164 DesDecrypt(cipher, clear)
165 u_char *cipher; /* IN 8 octets */
170 Expand(cipher, des_input);
193 DesEncrypt(clear, cipher)
195 u_char *cipher; /* OUT 8 octets */
197 DES_ecb_encrypt((DES_cblock *)clear, (DES_cblock *)cipher,
203 DesDecrypt(cipher, clea
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
H A DCBCBlockCipher.java10 * implements Cipher-Block-Chaining (CBC) mode on top of a simple cipher.
20 private BlockCipher cipher = null; field in class:CBCBlockCipher
26 * @param cipher the block cipher to be used as the basis of chaining.
29 BlockCipher cipher)
31 this.cipher = cipher;
32 this.blockSize = cipher.getBlockSize();
40 * return the underlying block cipher that we are wrapping.
42 * @return the underlying block cipher tha
28 CBCBlockCipher( BlockCipher cipher) argument
[all...]
H A DOFBBlockCipher.java10 * implements a Output-FeedBack (OFB) mode on top of a simple cipher.
21 private final BlockCipher cipher; field in class:OFBBlockCipher
26 * @param cipher the block cipher to be used as the basis of the
31 BlockCipher cipher,
34 super(cipher);
36 this.cipher = cipher;
39 this.IV = new byte[cipher.getBlockSize()];
40 this.ofbV = new byte[cipher
30 OFBBlockCipher( BlockCipher cipher, int blockSize) argument
[all...]
H A DCTSBlockCipher.java10 * A Cipher Text Stealing (CTS) mode cipher. CTS allows block ciphers to
11 * be used to produce cipher text which is the same length as the plain text.
19 * Create a buffered block cipher that uses Cipher Text Stealing
21 * @param cipher the underlying block cipher this buffering object wraps.
24 BlockCipher cipher)
26 if (cipher instanceof StreamBlockCipher)
31 this.cipher = cipher;
33 blockSize = cipher
23 CTSBlockCipher( BlockCipher cipher) argument
[all...]
H A DCFBBlockCipher.java11 * implements a Cipher-FeedBack (CFB) mode on top of a simple cipher.
22 private BlockCipher cipher = null; field in class:CFBBlockCipher
29 * @param cipher the block cipher to be used as the basis of the
34 BlockCipher cipher,
37 super(cipher);
39 this.cipher = cipher;
42 this.IV = new byte[cipher.getBlockSize()];
43 this.cfbV = new byte[cipher
33 CFBBlockCipher( BlockCipher cipher, int bitBlockSize) argument
[all...]
/external/wpa_supplicant_8/hostapd/src/crypto/
H A Daes-wrap.c23 * @cipher: Wrapped key, (n + 1) * 64 bits
26 int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) argument
33 a = cipher;
34 r = cipher + 8;
52 r = cipher + 8;
71 * These are already in @cipher due to the location of temporary
H A Daes-unwrap.c22 * @cipher: Wrapped key to be unwrapped, (n + 1) * 64 bits
26 int aes_unwrap(const u8 *kek, size_t kek_len, int n, const u8 *cipher, argument
35 os_memcpy(a, cipher, 8);
37 os_memcpy(r, cipher + 8, 8 * n);
/external/wpa_supplicant_8/src/crypto/
H A Daes-wrap.c23 * @cipher: Wrapped key, (n + 1) * 64 bits
26 int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) argument
33 a = cipher;
34 r = cipher + 8;
52 r = cipher + 8;
71 * These are already in @cipher due to the location of temporary
H A Daes-unwrap.c22 * @cipher: Wrapped key to be unwrapped, (n + 1) * 64 bits
26 int aes_unwrap(const u8 *kek, size_t kek_len, int n, const u8 *cipher, argument
35 os_memcpy(a, cipher, 8);
37 os_memcpy(r, cipher + 8, 8 * n);
/external/wpa_supplicant_8/wpa_supplicant/src/crypto/
H A Daes-wrap.c23 * @cipher: Wrapped key, (n + 1) * 64 bits
26 int aes_wrap(const u8 *kek, size_t kek_len, int n, const u8 *plain, u8 *cipher) argument
33 a = cipher;
34 r = cipher + 8;
52 r = cipher + 8;
71 * These are already in @cipher due to the location of temporary
H A Daes-unwrap.c22 * @cipher: Wrapped key to be unwrapped, (n + 1) * 64 bits
26 int aes_unwrap(const u8 *kek, size_t kek_len, int n, const u8 *cipher, argument
35 os_memcpy(a, cipher, 8);
37 os_memcpy(r, cipher + 8, 8 * n);
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DCipher_Impl1Test.java57 Cipher cipher = null;
64 cipher = Cipher.getInstance(algorithm + "/CBC/PKCS5Padding");
65 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, ap);
67 byte[] cipherIV = cipher.getIV();
85 Cipher cipher = null;
96 cipher = Cipher.getInstance(algorithm + "/CBC/PKCS5Padding");
97 cipher.init(Cipher.ENCRYPT_MODE, cipherKey, ap, sr);
99 byte[] cipherParmsEnc = cipher.getParameters().getEncoded("ASN.1");
/external/ipsec-tools/src/racoon/missing/crypto/rijndael/
H A Drijndael-api-fst.h29 #define BITSPERBLOCK 128 /* Default number of bits in a cipher block */
67 /* The structure for cipher information */
86 int rijndael_cipherInit(cipherInstance *cipher, u_int8_t mode, char *IV);
88 int rijndael_blockEncrypt(cipherInstance *cipher, keyInstance *key,
91 int rijndael_padEncrypt(cipherInstance *cipher, keyInstance *key,
94 int rijndael_blockDecrypt(cipherInstance *cipher, keyInstance *key,
97 int rijndael_padDecrypt(cipherInstance *cipher, keyInstance *key,
101 int rijndael_cipherUpdateRounds(cipherInstance *cipher, keyInstance *key,
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/
H A DPaddedBufferedBlockCipher.java24 * Create a buffered block cipher with the desired padding.
26 * @param cipher the underlying block cipher this buffering object wraps.
30 BlockCipher cipher,
33 this.cipher = cipher;
36 buf = new byte[cipher.getBlockSize()];
41 * Create a buffered block cipher PKCS7 padding
43 * @param cipher the underlying block cipher thi
29 PaddedBufferedBlockCipher( BlockCipher cipher, BlockCipherPadding padding) argument
45 PaddedBufferedBlockCipher( BlockCipher cipher) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
H A DBaseBlockCipher.java109 private GenericBlockCipher cipher; field in class:BaseBlockCipher
145 cipher = new BufferedGenericBlockCipher(engine);
162 cipher = new BufferedGenericBlockCipher(engine);
171 cipher = new BufferedGenericBlockCipher(provider.get());
179 cipher = new AEADGenericBlockCipher(engine);
190 this.cipher = new AEADGenericBlockCipher(engine);
199 this.cipher = new BufferedGenericBlockCipher(engine);
209 this.cipher = new BufferedGenericBlockCipher(engine);
237 return cipher.getOutputSize(inputLen);
258 String name = cipher
1196 private BufferedBlockCipher cipher; field in class:BaseBlockCipher.BufferedGenericBlockCipher
1198 BufferedGenericBlockCipher(BufferedBlockCipher cipher) argument
1203 BufferedGenericBlockCipher(org.bouncycastle.crypto.BlockCipher cipher) argument
1208 BufferedGenericBlockCipher(org.bouncycastle.crypto.BlockCipher cipher, BlockCipherPadding padding) argument
1301 private AEADBlockCipher cipher; field in class:BaseBlockCipher.AEADGenericBlockCipher
1303 AEADGenericBlockCipher(AEADBlockCipher cipher) argument
[all...]
/external/srtp/
H A DAndroid.mk9 crypto/cipher/cipher.c \
10 crypto/cipher/null_cipher.c \
11 crypto/cipher/aes.c \
12 crypto/cipher/aes_icm.c \
13 crypto/cipher/aes_cbc.c \

Completed in 737 milliseconds

123456789