Searched refs:cipher (Results 26 - 50 of 237) sorted by relevance

12345678910

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/crypto/pkcs12/
H A Dp12_crpt.c88 ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de)
108 iter, EVP_CIPHER_key_length(cipher), key, md)) {
114 iter, EVP_CIPHER_iv_length(cipher), iv, md)) {
120 ret = EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, en_de);
87 PKCS12_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/crypto/evp/
H A Devp_lib.c68 if (c->cipher->set_asn1_parameters != NULL)
69 ret=c->cipher->set_asn1_parameters(c,type);
79 if (c->cipher->get_asn1_parameters != NULL)
80 ret=c->cipher->get_asn1_parameters(c,type);
116 /* Convert the various cipher NIDs and dummies to a proper OID NID */
H A Dbio_enc.c83 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...]
H A Devp_test.c145 printf("Testing cipher %s%s\n",EVP_CIPHER_name(c),
243 static int test_cipher(const char *cipher,const unsigned char *key,int kn, argument
251 c=EVP_get_cipherbyname(cipher);
358 * It'll prevent ENGINEs being ENGINE_init()ialised for cipher/digest use if
367 char *cipher; local
378 cipher=sstrsep(&p,":");
396 if(strchr(cipher,'*'))
398 p=cipher;
403 if(!test_cipher(cipher,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec,
405 && !test_digest(cipher,plaintex
[all...]
H A Dopenbsd_hw.c130 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
[all...]
H A De_aes.c102 if ((ctx->cipher->flags & EVP_CIPH_MODE) == EVP_CIPH_CFB_MODE
103 || (ctx->cipher->flags & EVP_CIPH_MODE) == EVP_CIPH_OFB_MODE
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/crypto/pkcs12/
H A Dp12_crpt.c88 ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de)
114 iter, EVP_CIPHER_key_length(cipher), key, md)) {
120 iter, EVP_CIPHER_iv_length(cipher), iv, md)) {
126 ret = EVP_CipherInit_ex(ctx, cipher, NULL, key, iv, en_de);
87 PKCS12_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, ASN1_TYPE *param, const EVP_CIPHER *cipher, const EVP_MD *md, int en_de) argument
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/crypto/
H A Dablkcipher.c2 * Asynchronous block chaining cipher operations.
25 struct ablkcipher_alg *cipher = crypto_ablkcipher_alg(tfm); local
27 if (keylen < cipher->min_keysize || keylen > cipher->max_keysize) {
32 return cipher->setkey(tfm, key, keylen);
83 MODULE_DESCRIPTION("Asynchronous block chaining cipher type");
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/crypto/pkcs7/
H A Denc.c77 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;
H A Dpk7_enc.c71 PKCS7_cipher(PKCS7 *p7,EVP_CIPHER *cipher);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/crypto/pkcs7/
H A Denc.c77 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;
H A Dpk7_enc.c71 PKCS7_cipher(PKCS7 *p7,EVP_CIPHER *cipher);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/crypto/evp/
H A Dbio_enc.c83 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...]
H A Dopenbsd_hw.c130 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
[all...]
H A De_aes.c104 if ((ctx->cipher->flags & EVP_CIPH_MODE) == EVP_CIPH_CFB_MODE
105 || (ctx->cipher->flags & EVP_CIPH_MODE) == EVP_CIPH_OFB_MODE
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/apps/
H A Denc.c120 const EVP_CIPHER *cipher=NULL,*c; local
146 cipher=EVP_get_cipherbyname(pname);
147 if (!base64 && (cipher == NULL) && (strcmp(pname,"enc") != 0))
149 BIO_printf(bio_err,"%s is an unknown cipher\n",pname);
270 cipher=c;
273 cipher=NULL;
397 if ((str == NULL) && (cipher != NULL) && (hkey == NULL))
404 OBJ_nid2ln(EVP_CIPHER_nid(cipher)),
466 if (cipher != NULL)
513 EVP_BytesToKey(cipher,dgs
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/ssl/
H A Dd1_enc.c148 else if ( EVP_CIPHER_block_size(ds->cipher) > 1)
150 if (!RAND_bytes(rec->input, EVP_CIPHER_block_size(ds->cipher)))
180 bs=EVP_CIPHER_block_size(ds->cipher);
207 ds->buf_len, ds->cipher->key_len,
209 ds->cipher->iv_len);
211 for (i=0; i<ds->cipher->iv_len; i++) printf("%02X", ds->iv[i]);
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/crypto/asn1/
H A Dp5_pbev2.c87 X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter,
99 alg_nid = EVP_CIPHER_type(cipher);
116 if (EVP_CIPHER_iv_length(cipher) &&
117 RAND_pseudo_bytes(iv, EVP_CIPHER_iv_length(cipher)) < 0)
123 EVP_CipherInit_ex(&ctx, cipher, NULL, NULL, iv, 0);
154 EVP_CIPHER_key_length(cipher))) goto merr;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/crypto/asn1/
H A Dp5_pbev2.c87 X509_ALGOR *PKCS5_pbe2_set(const EVP_CIPHER *cipher, int iter,
99 alg_nid = EVP_CIPHER_type(cipher);
116 if (EVP_CIPHER_iv_length(cipher) &&
117 RAND_pseudo_bytes(iv, EVP_CIPHER_iv_length(cipher)) < 0)
123 EVP_CipherInit_ex(&ctx, cipher, NULL, NULL, iv, 0);
154 EVP_CIPHER_key_length(cipher))) goto merr;
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libgcrypt-1.5.0/src/
H A Dcipher-proto.h0 /* cipher-proto.h - Internal declarations
20 /* This file has been factored out from cipher.h so that it can be
28 "cipher", "digest", "pubkey or "random",
67 /* The type used to convey additional information to a cipher. */
99 gcry_error_t _gcry_cipher_register (gcry_cipher_spec_t *cipher,
103 gcry_error_t _gcry_md_register (gcry_md_spec_t *cipher,
107 gcry_error_t _gcry_pk_register (gcry_pk_spec_t *cipher,
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/libgcrypt-1.5.0/
H A DMakefile.am25 DIST_SUBDIRS = m4 compat mpi cipher random src doc tests
26 SUBDIRS = compat mpi cipher random src doc tests
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/apps/
H A Denc.c120 const EVP_CIPHER *cipher=NULL,*c; local
145 cipher=EVP_get_cipherbyname(pname);
146 if (!base64 && (cipher == NULL) && (strcmp(pname,"enc") != 0))
148 BIO_printf(bio_err,"%s is an unknown cipher\n",pname);
267 cipher=c;
270 cipher=NULL;
395 if ((str == NULL) && (cipher != NULL) && (hkey == NULL))
402 OBJ_nid2ln(EVP_CIPHER_nid(cipher)),
466 if (cipher != NULL)
513 EVP_BytesToKey(cipher,dgs
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/test/
H A Devp_test.c145 printf("Testing cipher %s%s\n",EVP_CIPHER_name(c),
243 static int test_cipher(const char *cipher,const unsigned char *key,int kn, argument
251 c=EVP_get_cipherbyname(cipher);
358 * It'll prevent ENGINEs being ENGINE_init()ialised for cipher/digest use if
367 char *cipher; local
378 cipher=sstrsep(&p,":");
396 if(strchr(cipher,'*'))
398 p=cipher;
403 if(!test_cipher(cipher,key,kn,iv,in,plaintext,pn,ciphertext,cn,encdec,
405 && !test_digest(cipher,plaintex
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/openssl/crypto/engine/
H A Dhw_cryptodev.c76 static int cryptodev_max_iv(int cipher);
77 static int cryptodev_key_length_valid(int cipher, int len);
88 static int cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
210 cryptodev_max_iv(int cipher) argument
215 if (ciphers[i].id == cipher)
227 cryptodev_key_length_valid(int cipher, int len) argument
232 if (ciphers[i].id == cipher)
272 sess.cipher = ciphers[i].id;
311 sess.cipher = 0;
386 if ((inl % ctx->cipher
432 int cipher; local
574 cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/timemachine/openssl-0.9.8e/crypto/engine/
H A Deng_cryptodev.c78 static int cryptodev_max_iv(int cipher);
79 static int cryptodev_key_length_valid(int cipher, int len);
90 static int cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher,
210 cryptodev_max_iv(int cipher) argument
215 if (ciphers[i].id == cipher)
227 cryptodev_key_length_valid(int cipher, int len) argument
232 if (ciphers[i].id == cipher)
272 sess.cipher = ciphers[i].id;
310 sess.cipher = 0;
384 if ((inl % ctx->cipher
430 int cipher; local
572 cryptodev_engine_ciphers(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid) argument
[all...]

Completed in 203 milliseconds

12345678910