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

1234567891011>>

/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
H A DStreamBlockCipher.java10 private BlockCipher cipher; field in class:StreamBlockCipher
17 * @param cipher the block cipher to be wrapped.
18 * @exception IllegalArgumentException if the cipher has a block size other than
22 BlockCipher cipher)
24 if (cipher.getBlockSize() != 1)
26 throw new IllegalArgumentException("block cipher block size != 1.");
29 this.cipher = cipher;
33 * initialise the underlying cipher
21 StreamBlockCipher( BlockCipher cipher) argument
[all...]
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/chromium_org/third_party/libsrtp/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/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/modes/
H A DSICBlockCipher.java10 * block cipher. This mode is also known as CTR mode.
15 private final BlockCipher cipher; field in class:SICBlockCipher
26 * @param c the block cipher to be used.
30 this.cipher = c;
31 this.blockSize = cipher.getBlockSize();
39 * return the underlying block cipher that we are wrapping.
41 * @return the underlying block cipher that we are wrapping.
45 return cipher;
65 cipher.init(true, ivParam.getParameters());
76 return cipher
[all...]
H A DCTSBlockCipher.java9 * A Cipher Text Stealing (CTS) mode cipher. CTS allows block ciphers to
10 * be used to produce cipher text which is the same length as the plain text.
18 * Create a buffered block cipher that uses Cipher Text Stealing
20 * @param cipher the underlying block cipher this buffering object wraps.
23 BlockCipher cipher)
25 if ((cipher instanceof OFBBlockCipher) || (cipher instanceof CFBBlockCipher) || (cipher instanceof SICBlockCipher))
27 // TODO: This is broken - need to introduce marker interface to differentiate block cipher primitiv
22 CTSBlockCipher( BlockCipher cipher) argument
[all...]
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.java9 * implements a Output-FeedBack (OFB) mode on top of a simple cipher.
19 private final BlockCipher cipher; field in class:OFBBlockCipher
24 * @param cipher the block cipher to be used as the basis of the
29 BlockCipher cipher,
32 this.cipher = cipher;
35 this.IV = new byte[cipher.getBlockSize()];
36 this.ofbV = new byte[cipher.getBlockSize()];
37 this.ofbOutV = new byte[cipher
28 OFBBlockCipher( BlockCipher cipher, int blockSize) argument
[all...]
H A DCFBBlockCipher.java10 * implements a Cipher-FeedBack (CFB) mode on top of a simple cipher.
20 private BlockCipher cipher = null; field in class:CFBBlockCipher
26 * @param cipher the block cipher to be used as the basis of the
31 BlockCipher cipher,
34 this.cipher = cipher;
37 this.IV = new byte[cipher.getBlockSize()];
38 this.cfbV = new byte[cipher.getBlockSize()];
39 this.cfbOutV = new byte[cipher
30 CFBBlockCipher( BlockCipher cipher, int bitBlockSize) argument
[all...]
/external/chromium_org/third_party/boringssl/src/crypto/cipher/
H A Dcipher.c57 #include <openssl/cipher.h>
96 int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, argument
98 if (cipher) {
101 return EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, enc);
105 if (c->cipher != NULL && c->cipher->cleanup && !c->cipher->cleanup(c)) {
110 OPENSSL_cleanse(c->cipher_data, c->cipher->ctx_size);
126 if (in == NULL || in->cipher == NULL) {
134 if (in->cipher_data && in->cipher
150 EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, const uint8_t *key, const uint8_t *iv, int enc) argument
245 EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const uint8_t *key, const uint8_t *iv) argument
250 EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const uint8_t *key, const uint8_t *iv) argument
591 EVP_CIPHER_nid(const EVP_CIPHER *cipher) argument
593 EVP_CIPHER_name(const EVP_CIPHER *cipher) argument
597 EVP_CIPHER_block_size(const EVP_CIPHER *cipher) argument
601 EVP_CIPHER_key_length(const EVP_CIPHER *cipher) argument
605 EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) argument
609 EVP_CIPHER_flags(const EVP_CIPHER *cipher) argument
613 EVP_CIPHER_mode(const EVP_CIPHER *cipher) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
H A DBaseBlockCipher.java102 private GenericBlockCipher cipher; field in class:BaseBlockCipher
134 cipher = new BufferedGenericBlockCipher(engine);
143 cipher = new BufferedGenericBlockCipher(provider.get());
151 cipher = new AEADGenericBlockCipher(engine);
160 this.cipher = new BufferedGenericBlockCipher(engine);
170 this.cipher = new BufferedGenericBlockCipher(engine);
198 return cipher.getOutputSize(inputLen);
219 String name = cipher.getUnderlyingCipher().getAlgorithmName();
262 cipher = new BufferedGenericBlockCipher(baseEngine);
267 cipher
944 private BufferedBlockCipher cipher; field in class:BaseBlockCipher.BufferedGenericBlockCipher
946 BufferedGenericBlockCipher(BufferedBlockCipher cipher) argument
951 BufferedGenericBlockCipher(org.bouncycastle.crypto.BlockCipher cipher) argument
956 BufferedGenericBlockCipher(org.bouncycastle.crypto.BlockCipher cipher, BlockCipherPadding padding) argument
1016 private AEADBlockCipher cipher; field in class:BaseBlockCipher.AEADGenericBlockCipher
1018 AEADGenericBlockCipher(AEADBlockCipher cipher) argument
[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/openssl/crypto/evp/
H A Devp_lib.c68 if (c->cipher->set_asn1_parameters != NULL)
69 ret=c->cipher->set_asn1_parameters(c,type);
70 else if (c->cipher->flags & EVP_CIPH_FLAG_DEFAULT_ASN1)
81 if (c->cipher->get_asn1_parameters != NULL)
82 ret=c->cipher->get_asn1_parameters(c,type);
83 else if (c->cipher->flags & EVP_CIPH_FLAG_DEFAULT_ASN1)
122 /* Convert the various cipher NIDs and dummies to a proper OID NID */
188 return ctx->cipher->block_size;
193 return ctx->cipher->do_cipher(ctx,out,in,inl);
198 return ctx->cipher;
201 EVP_CIPHER_flags(const EVP_CIPHER *cipher) argument
221 EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) argument
231 EVP_CIPHER_key_length(const EVP_CIPHER *cipher) argument
241 EVP_CIPHER_nid(const EVP_CIPHER *cipher) argument
[all...]
H A Devp_enc.c76 #define M_do_cipher(ctx, out, in, inl) ctx->cipher->do_cipher(ctx, out, in, inl)
85 /* ctx->cipher=NULL; */
96 int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, argument
99 if (cipher)
101 return EVP_CipherInit_ex(ctx,cipher,NULL,key,iv,enc);
104 int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, argument
120 if (ctx->engine && ctx->cipher && (!cipher ||
121 (cipher && (cipher
284 EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) argument
290 EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx,const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) argument
296 EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) argument
302 EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) argument
[all...]
/external/chromium_org/net/ssl/
H A Dssl_cipher_suite_names_unittest.cc15 const char *key_exchange, *cipher, *mac; local
18 SSLCipherSuiteToStrings(&key_exchange, &cipher, &mac, &is_aead, 0xc001);
20 EXPECT_STREQ("NULL", cipher);
24 SSLCipherSuiteToStrings(&key_exchange, &cipher, &mac, &is_aead, 0x009f);
26 EXPECT_STREQ("AES_256_GCM", cipher);
30 SSLCipherSuiteToStrings(&key_exchange, &cipher, &mac, &is_aead, 0xff31);
32 EXPECT_STREQ("???", cipher);
60 // Picked some random cipher suites.
67 // Non-existent cipher suite.
/external/ppp/pppd/
H A Dpppcrypt.c129 DesEncrypt(clear, cipher)
131 u_char *cipher; /* OUT 8 octets */
140 Collapse(des_input, cipher);
145 DesDecrypt(cipher, clear)
146 u_char *cipher; /* IN 8 octets */
151 Expand(cipher, des_input);
174 DesEncrypt(clear, cipher)
176 u_char *cipher; /* OUT 8 octets */
178 des_ecb_encrypt((des_cblock *)clear, (des_cblock *)cipher,
184 DesDecrypt(cipher, clea
[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
/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
/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
/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...]

Completed in 8489 milliseconds

1234567891011>>