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

1 2 3 4 5 6 7 8 91011>>

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/
StreamBlockCipher.java 10 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
    [all...]
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/chromium_org/third_party/libsrtp/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/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/modes/
SICBlockCipher.java 10 * 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.getAlgorithmName() + "/SIC"
    [all...]
CTSBlockCipher.java 9 * 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)
    [all...]
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 9 * 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.getBlockSize()]
    [all...]
  /prebuilts/tools/common/m2/repository/org/sonatype/plexus/plexus-cipher/1.4/
plexus-cipher-1.4.jar 
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
BaseBlockCipher.java 15 import javax.crypto.Cipher;
102 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)
944 private BufferedBlockCipher cipher; field in class:BaseBlockCipher.BufferedGenericBlockCipher
1016 private AEADBlockCipher cipher; field in class:BaseBlockCipher.AEADGenericBlockCipher
    [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/chromium_org/third_party/openssl/openssl/crypto/evp/
evp_lib.c 68 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;
    [all...]
evp_enc.c 75 #define M_do_cipher(ctx, out, in, inl) ctx->cipher->do_cipher(ctx, out, in, inl)
84 /* ctx->cipher=NULL; */
95 int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
98 if (cipher)
100 return EVP_CipherInit_ex(ctx,cipher,NULL,key,iv,enc);
103 int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl,
119 if (ctx->engine && ctx->cipher && (!cipher ||
120 (cipher && (cipher->nid == ctx->cipher->nid)))
    [all...]
  /external/openssl/crypto/evp/
evp_lib.c 68 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;
    [all...]
evp_enc.c 75 #define M_do_cipher(ctx, out, in, inl) ctx->cipher->do_cipher(ctx, out, in, inl)
84 /* ctx->cipher=NULL; */
95 int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
98 if (cipher)
100 return EVP_CipherInit_ex(ctx,cipher,NULL,key,iv,enc);
103 int EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl,
119 if (ctx->engine && ctx->cipher && (!cipher ||
120 (cipher && (cipher->nid == ctx->cipher->nid)))
    [all...]
  /external/chromium_org/net/ssl/
ssl_cipher_suite_names_unittest.cc 15 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/
pppcrypt.c 129 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, clear
    [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 22 * @cipher: Wrapped key, (n + 1) * 64 bits
25 int aes_wrap(const u8 *kek, int n, const u8 *plain, u8 *cipher)
31 a = cipher;
32 r = cipher + 8;
50 r = cipher + 8;
65 * 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...]

Completed in 715 milliseconds

1 2 3 4 5 6 7 8 91011>>