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

1 23 4 5 6 7 8 91011>>

  /libcore/luni/src/main/java/javax/crypto/
EncryptedPrivateKeyInfo.java 227 * The cipher must be initialize in either {@code Cipher.DECRYPT_MODE} or
228 * {@code Cipher.UNWRAP_MODE} with the same parameters and key used for
231 * @param cipher
232 * the cipher initialized for decrypting the encrypted data.
235 * if the specified cipher is not suited to decrypt the
238 * if {@code cipher} is {@code null}.
240 public PKCS8EncodedKeySpec getKeySpec(Cipher cipher)
242 if (cipher == null)
284 Cipher cipher = Cipher.getInstance(algName); local
343 Cipher cipher = Cipher.getInstance(algName, providerName); local
397 Cipher cipher = Cipher.getInstance(algName, provider); local
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/pkcs7/
enc.c 77 const EVP_CIPHER *cipher=NULL; local
91 if(!(cipher = EVP_get_cipherbyname(argv[2]))) {
92 fprintf(stderr, "Unknown cipher %s\n", argv[2]);
130 if(!cipher) {
132 cipher = EVP_des_ede3_cbc();
134 fprintf(stderr, "No cipher selected\n");
139 if (!PKCS7_set_cipher(p7,cipher)) goto err;
pk7_enc.c 71 PKCS7_cipher(PKCS7 *p7,EVP_CIPHER *cipher);
  /external/openssl/crypto/pkcs7/
enc.c 77 const EVP_CIPHER *cipher=NULL; local
91 if(!(cipher = EVP_get_cipherbyname(argv[2]))) {
92 fprintf(stderr, "Unknown cipher %s\n", argv[2]);
130 if(!cipher) {
132 cipher = EVP_des_ede3_cbc();
134 fprintf(stderr, "No cipher selected\n");
139 if (!PKCS7_set_cipher(p7,cipher)) goto err;
pk7_enc.c 71 PKCS7_cipher(PKCS7 *p7,EVP_CIPHER *cipher);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/
DigestSignatureSpi.java 52 private AsymmetricBlockCipher cipher; field in class:DigestSignatureSpi
58 AsymmetricBlockCipher cipher)
61 this.cipher = cipher;
69 AsymmetricBlockCipher cipher)
72 this.cipher = cipher;
88 cipher.init(false, param);
104 cipher.init(true, param);
145 return cipher.processBlock(bytes, 0, bytes.length)
    [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...]
  /external/chromium_org/third_party/openssl/openssl/crypto/evp/
bio_enc.c 83 EVP_CIPHER_CTX cipher; member in struct:enc_struct
92 BIO_TYPE_CIPHER,"cipher",
114 EVP_CIPHER_CTX_init(&ctx->cipher);
134 EVP_CIPHER_CTX_cleanup(&(b->cipher));
187 i=EVP_CipherFinal_ex(&(ctx->cipher),
201 EVP_CipherUpdate(&(ctx->cipher),
260 EVP_CipherUpdate(&(ctx->cipher),
301 EVP_CipherInit_ex(&(ctx->cipher),NULL,NULL,NULL,NULL,
302 ctx->cipher.encrypt);
335 ret=EVP_CipherFinal_ex(&(ctx->cipher),
    [all...]
openbsd_hw.c 130 static int dev_crypto_init_key(EVP_CIPHER_CTX *ctx,int cipher,
138 assert(ctx->cipher->iv_len <= MAX_HW_IV);
142 CDATA(ctx)->cipher=cipher;
170 assert((inl&(ctx->cipher->block_size-1)) == 0);
174 if(ctx->cipher->iv_len)
178 memcpy(lb,&in[cryp.len-ctx->cipher->iv_len],ctx->cipher->iv_len);
231 memcpy(ctx->iv,&out[cryp.len-ctx->cipher->iv_len],ctx->cipher->iv_len)
    [all...]
evp_pbe.c 71 /* Setup a cipher context from a PBE algorithm */
158 const EVP_CIPHER *cipher; local
180 cipher = NULL;
183 cipher = EVP_get_cipherbynid(cipher_nid);
184 if (!cipher)
203 if (!keygen(ctx, pass, passlen, param, cipher, md, en_de))
257 int EVP_PBE_alg_add(int nid, const EVP_CIPHER *cipher, const EVP_MD *md,
261 if (cipher)
262 cipher_nid = EVP_CIPHER_type(cipher);
  /external/openssl/crypto/evp/
bio_enc.c 83 EVP_CIPHER_CTX cipher; member in struct:enc_struct
92 BIO_TYPE_CIPHER,"cipher",
114 EVP_CIPHER_CTX_init(&ctx->cipher);
134 EVP_CIPHER_CTX_cleanup(&(b->cipher));
187 i=EVP_CipherFinal_ex(&(ctx->cipher),
201 EVP_CipherUpdate(&(ctx->cipher),
260 EVP_CipherUpdate(&(ctx->cipher),
301 EVP_CipherInit_ex(&(ctx->cipher),NULL,NULL,NULL,NULL,
302 ctx->cipher.encrypt);
335 ret=EVP_CipherFinal_ex(&(ctx->cipher),
    [all...]
openbsd_hw.c 130 static int dev_crypto_init_key(EVP_CIPHER_CTX *ctx,int cipher,
138 assert(ctx->cipher->iv_len <= MAX_HW_IV);
142 CDATA(ctx)->cipher=cipher;
170 assert((inl&(ctx->cipher->block_size-1)) == 0);
174 if(ctx->cipher->iv_len)
178 memcpy(lb,&in[cryp.len-ctx->cipher->iv_len],ctx->cipher->iv_len);
231 memcpy(ctx->iv,&out[cryp.len-ctx->cipher->iv_len],ctx->cipher->iv_len)
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/asn1/
p5_pbev2.c 89 X509_ALGOR *PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter,
100 alg_nid = EVP_CIPHER_type(cipher);
117 if (EVP_CIPHER_iv_length(cipher))
120 memcpy(iv, aiv, EVP_CIPHER_iv_length(cipher));
121 else if (RAND_pseudo_bytes(iv, EVP_CIPHER_iv_length(cipher)) < 0)
128 if (!EVP_CipherInit_ex(&ctx, cipher, NULL, NULL, iv, 0))
136 /* If prf NID unspecified see if cipher has a preference.
150 keylen = EVP_CIPHER_key_length(cipher);
194 X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter,
197 return PKCS5_pbe2_set_iv(cipher, iter, salt, saltlen, NULL, -1)
    [all...]
  /external/openssl/crypto/asn1/
p5_pbev2.c 89 X509_ALGOR *PKCS5_pbe2_set_iv(const EVP_CIPHER *cipher, int iter,
100 alg_nid = EVP_CIPHER_type(cipher);
117 if (EVP_CIPHER_iv_length(cipher))
120 memcpy(iv, aiv, EVP_CIPHER_iv_length(cipher));
121 else if (RAND_pseudo_bytes(iv, EVP_CIPHER_iv_length(cipher)) < 0)
128 if (!EVP_CipherInit_ex(&ctx, cipher, NULL, NULL, iv, 0))
136 /* If prf NID unspecified see if cipher has a preference.
150 keylen = EVP_CIPHER_key_length(cipher);
194 X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter,
197 return PKCS5_pbe2_set_iv(cipher, iter, salt, saltlen, NULL, -1)
    [all...]
  /external/chromium_org/third_party/libsrtp/srtp/crypto/
Makefile 76 ciphers = cipher/cipher.o cipher/null_cipher.o \
77 cipher/aes.o cipher/aes_icm.o \
78 cipher/aes_cbc.o
  /external/chromium_org/third_party/openssl/openssl/ssl/
d1_enc.c 164 else if ( EVP_CIPHER_block_size(ds->cipher) > 1)
166 if (RAND_bytes(rec->input, EVP_CIPHER_block_size(ds->cipher)) <= 0)
199 bs=EVP_CIPHER_block_size(ds->cipher);
226 ds->buf_len, ds->cipher->key_len,
228 ds->cipher->iv_len);
230 for (i=0; i<ds->cipher->iv_len; i++) printf("%02X", ds->iv[i]);
  /external/openssl/ssl/
d1_enc.c 164 else if ( EVP_CIPHER_block_size(ds->cipher) > 1)
166 if (RAND_bytes(rec->input, EVP_CIPHER_block_size(ds->cipher)) <= 0)
199 bs=EVP_CIPHER_block_size(ds->cipher);
226 ds->buf_len, ds->cipher->key_len,
228 ds->cipher->iv_len);
230 for (i=0; i<ds->cipher->iv_len; i++) printf("%02X", ds->iv[i]);
  /external/srtp/crypto/
Makefile 69 ciphers = cipher/cipher.o cipher/null_cipher.o \
70 cipher/aes.o cipher/aes_icm.o \
71 cipher/aes_cbc.o
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
JCEStreamCipher.java 18 import javax.crypto.Cipher;
72 private StreamCipher cipher; field in class:JCEStreamCipher
86 cipher = engine;
96 cipher = new StreamBlockCipher(engine);
211 param = PBE.Util.makePBEParameters(k, params, cipher.getAlgorithmName());
247 if ((opmode == Cipher.ENCRYPT_MODE) || (opmode == Cipher.WRAP_MODE))
263 case Cipher.ENCRYPT_MODE:
264 case Cipher.WRAP_MODE:
265 cipher.init(true, param)
    [all...]
  /external/chromium_org/third_party/openssl/openssl/crypto/cmac/
cmac.h 74 const EVP_CIPHER *cipher, ENGINE *impl);
  /external/chromium_org/third_party/openssl/openssl/include/openssl/
cmac.h 74 const EVP_CIPHER *cipher, ENGINE *impl);
  /external/openssl/crypto/cmac/
cmac.h 74 const EVP_CIPHER *cipher, ENGINE *impl);
  /external/openssl/include/openssl/
cmac.h 74 const EVP_CIPHER *cipher, ENGINE *impl);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/
OAEPEncoding.java 28 AsymmetricBlockCipher cipher)
31 this(cipher, AndroidDigestFactory.getSHA1(), null);
36 AsymmetricBlockCipher cipher,
39 this(cipher, hash, null);
43 AsymmetricBlockCipher cipher,
47 this(cipher, hash, hash, encodingParams);
51 AsymmetricBlockCipher cipher,
56 this.engine = cipher;
  /external/openssl/crypto/cms/
cms_enc.c 83 enc = ec->cipher ? 1 : 0;
97 ciph = ec->cipher;
98 /* If not keeping key set cipher to NULL so subsequent calls
102 ec->cipher = NULL;
240 const EVP_CIPHER *cipher,
243 ec->cipher = cipher;
252 if (cipher)
291 if (enc->encryptedContentInfo->cipher && enc->unprotectedAttrs)

Completed in 332 milliseconds

1 23 4 5 6 7 8 91011>>