HomeSort by relevance Sort by last modified time
    Searched refs:cipher (Results 1 - 25 of 232) sorted by null

1 2 3 4 5 6 7 8 910

  /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...]
  /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/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/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
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;
BufferedBlockCipher.java 9 * 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.getBlockSize()]
    [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...]
  /prebuilts/tools/common/m2/repository/org/sonatype/plexus/plexus-cipher/1.4/
plexus-cipher-1.4.jar 
  /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...]
  /prebuilts/eclipse/maven/apache-maven-3.2.1/lib/
plexus-cipher-1.7.jar 
  /prebuilts/eclipse/mavenplugins/tycho/tycho-dependencies-m2repo/org/sonatype/plexus/plexus-cipher/1.7/
plexus-cipher-1.7.jar 
  /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...]
  /external/ppp/pppd/
pppcrypt.c 148 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, clear
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/modes/
CBCBlockCipher.java 10 * 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
    [all...]
OFBBlockCipher.java 10 * 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.getBlockSize()]
    [all...]
CTSBlockCipher.java 10 * 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
    [all...]
CFBBlockCipher.java 11 * 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()]
    [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...]
  /external/wpa_supplicant_8/src/crypto/
aes-wrap.c 23 * @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)
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/
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...]
  /hardware/broadcom/wlan/bcmdhd/dhdutil/include/proto/
wpa.h 41 #define DOT11_RC_INVALID_MC_CIPHER 18 /* Invalid multicast cipher */
42 #define DOT11_RC_INVALID_UC_CIPHER 19 /* Invalid unicast cipher */
105 /* WPA cipher suites */
116 #define IS_WPA_CIPHER(cipher) ((cipher) == WPA_CIPHER_NONE || \
117 (cipher) == WPA_CIPHER_WEP_40 || \
118 (cipher) == WPA_CIPHER_WEP_104 || \
119 (cipher) == WPA_CIPHER_TKIP || \
120 (cipher) == WPA_CIPHER_AES_OCB || \
121 (cipher) == WPA_CIPHER_AES_CCM ||
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
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/ipsec-tools/src/racoon/missing/crypto/rijndael/
rijndael-api-fst.h 29 #define BITSPERBLOCK 128 /* Default number of bits in a cipher block */
36 #define BAD_CIPHER_STATE -5 /* Cipher in wrong state (e.g., not initialized) */
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,
  /libcore/ojluni/src/main/java/javax/crypto/
CipherOutputStream.java 31 * A CipherOutputStream is composed of an OutputStream and a Cipher so
33 * to the underlying OutputStream. The cipher must be fully
36 * <p> For example, if the cipher is initialized for encryption, the
57 * @see javax.crypto.Cipher
65 // the cipher engine to use to process stream data
66 private Cipher cipher; field in class:CipherOutputStream
80 * Cipher.
81 * <br>Note: if the specified output stream or cipher is
86 * @param c an initialized Cipher objec
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/paddings/
PaddedBufferedBlockCipher.java 24 * 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 this buffering object wraps
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
BaseBlockCipher.java 16 import javax.crypto.Cipher;
109 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)
1196 private BufferedBlockCipher cipher; field in class:BaseBlockCipher.BufferedGenericBlockCipher
1301 private AEADBlockCipher cipher; field in class:BaseBlockCipher.AEADGenericBlockCipher
    [all...]

Completed in 788 milliseconds

1 2 3 4 5 6 7 8 910