Home
last modified time | relevance | path

Searched refs:passlen (Results 1 – 18 of 18) sorted by relevance

/external/openssl/include/openssl/
Dpkcs12.h180 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt(X509_SIG *p8, const char *pass, int passlen);
182 int passlen);
184 const char *pass, int passlen,
188 int passlen, unsigned char *salt,
193 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,
196 STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass, int passlen);
212 int passlen, unsigned char *in, int inlen,
215 const char *pass, int passlen, ASN1_OCTET_STRING *oct, int zbuf);
217 const char *pass, int passlen,
220 int PKCS12_key_gen_asc(const char *pass, int passlen, unsigned char *salt,
[all …]
Devp.h402 typedef int (EVP_PBE_KEYGEN)(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
864 int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
867 int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen,
870 int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
876 int EVP_PBE_CipherInit (ASN1_OBJECT *pbe_obj, const char *pass, int passlen,
Dsafestack.h148 #define SKM_PKCS12_decrypt_d2i(type, algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
152 pass, passlen, oct, seq)
213 #define SKM_PKCS12_decrypt_d2i(type, algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
214 …((STACK *)PKCS12_decrypt_d2i(algor,(char *(*)())d2i_func, (void(*)(void *))free_func,pass,passlen,…
1979 #define PKCS12_decrypt_d2i_PKCS12_SAFEBAG(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
1980 …SKM_PKCS12_decrypt_d2i(PKCS12_SAFEBAG, (algor), (d2i_func), (free_func), (pass), (passlen), (oct),…
1982 #define PKCS12_decrypt_d2i_PKCS7(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
1983 SKM_PKCS12_decrypt_d2i(PKCS7, (algor), (d2i_func), (free_func), (pass), (passlen), (oct), (seq))
/external/openssl/crypto/pkcs12/
Dpkcs12.h180 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt(X509_SIG *p8, const char *pass, int passlen);
182 int passlen);
184 const char *pass, int passlen,
188 int passlen, unsigned char *salt,
193 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,
196 STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass, int passlen);
212 int passlen, unsigned char *in, int inlen,
215 const char *pass, int passlen, ASN1_OCTET_STRING *oct, int zbuf);
217 const char *pass, int passlen,
220 int PKCS12_key_gen_asc(const char *pass, int passlen, unsigned char *salt,
[all …]
Dp12_kiss.c65 static int parse_pk12( PKCS12 *p12, const char *pass, int passlen,
69 int passlen, EVP_PKEY **pkey, X509 **cert,
73 static int parse_bag( PKCS12_SAFEBAG *bag, const char *pass, int passlen,
144 static int parse_pk12(PKCS12 *p12, const char *pass, int passlen, in parse_pk12() argument
161 bags = PKCS12_unpack_p7encdata(p7, pass, passlen); in parse_pk12()
167 if (!parse_bags(bags, pass, passlen, pkey, cert, ca, in parse_pk12()
182 int passlen, EVP_PKEY **pkey, X509 **cert, in parse_bags() argument
189 pass, passlen, pkey, cert, ca, keyid, in parse_bags()
199 static int parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen, in parse_bag() argument
240 if (!(p8 = PKCS12_decrypt_skey(bag, pass, passlen))) in parse_bag()
[all …]
Dp12_add.c105 int passlen, unsigned char *salt, int saltlen, int iter, in PKCS12_MAKE_SHKEYBAG() argument
118 PKCS8_encrypt(pbe_nid, NULL, pass, passlen, salt, saltlen, iter, in PKCS12_MAKE_SHKEYBAG()
161 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen, in PKCS12_pack_p7encdata() argument
184 PKCS12_item_i2d_encrypt(pbe, ASN1_ITEM_rptr(PKCS12_SAFEBAGS), pass, passlen, in PKCS12_pack_p7encdata()
193 STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass, int passlen) in STACK_OF()
198 pass, passlen, in STACK_OF()
203 int passlen) in PKCS12_decrypt_skey() argument
205 return PKCS8_decrypt(bag->value.shkeybag, pass, passlen); in PKCS12_decrypt_skey()
Dp12_key.c77 int PKCS12_key_gen_asc(const char *pass, int passlen, unsigned char *salt, in PKCS12_key_gen_asc() argument
87 } else if (!asc2uni(pass, passlen, &unipass, &uniplen)) { in PKCS12_key_gen_asc()
100 int PKCS12_key_gen_uni(unsigned char *pass, int passlen, unsigned char *salt, in PKCS12_key_gen_uni() argument
125 fprintf(stderr, "Password (length %d):\n", passlen); in PKCS12_key_gen_uni()
126 h__dump(pass, passlen); in PKCS12_key_gen_uni()
136 if(passlen) Plen = v * ((passlen+v-1)/v); in PKCS12_key_gen_uni()
149 for (i = 0; i < Plen; i++) *p++ = pass[i % passlen]; in PKCS12_key_gen_uni()
Dp12_decr.c72 int passlen, unsigned char *in, int inlen, unsigned char **data, in PKCS12_pbe_crypt() argument
81 if (!EVP_PBE_CipherInit(algor->algorithm, pass, passlen, in PKCS12_pbe_crypt()
114 const char *pass, int passlen, ASN1_OCTET_STRING *oct, int zbuf) in PKCS12_item_decrypt_d2i() argument
121 if (!PKCS12_pbe_crypt(algor, pass, passlen, oct->data, oct->length, in PKCS12_item_decrypt_d2i()
151 const char *pass, int passlen, in PKCS12_item_i2d_encrypt() argument
166 if (!PKCS12_pbe_crypt(algor, pass, passlen, in, inlen, &oct->data, in PKCS12_item_i2d_encrypt()
Dp12_mutl.c67 int PKCS12_gen_mac(PKCS12 *p12, const char *pass, int passlen, in PKCS12_gen_mac() argument
90 if(!PKCS12_key_gen (pass, passlen, salt, saltlen, PKCS12_MAC_ID, iter, in PKCS12_gen_mac()
105 int PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen) in PKCS12_verify_mac() argument
113 if (!PKCS12_gen_mac (p12, pass, passlen, mac, &maclen)) { in PKCS12_verify_mac()
124 int PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen, in PKCS12_set_mac() argument
136 if (!PKCS12_gen_mac (p12, pass, passlen, mac, &maclen)) { in PKCS12_set_mac()
Dp12_crpt.c87 int PKCS12_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, in PKCS12_PBE_keyivgen() argument
113 if (!PKCS12_key_gen (pass, passlen, salt, saltlen, PKCS12_KEY_ID, in PKCS12_PBE_keyivgen()
119 if (!PKCS12_key_gen (pass, passlen, salt, saltlen, PKCS12_IV_ID, in PKCS12_PBE_keyivgen()
Dp12_p8d.c63 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt(X509_SIG *p8, const char *pass, int passlen) in PKCS8_decrypt() argument
66 passlen, p8->digest, 1); in PKCS8_decrypt()
Dp12_p8e.c64 const char *pass, int passlen, in PKCS8_encrypt() argument
86 pass, passlen, p8inf, 1); in PKCS8_encrypt()
/external/openssl/crypto/evp/
Dp5_crpt2.c79 int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen, in PKCS5_PBKDF2_HMAC_SHA1() argument
91 if(!pass) passlen = 0; in PKCS5_PBKDF2_HMAC_SHA1()
92 else if(passlen == -1) passlen = strlen(pass); in PKCS5_PBKDF2_HMAC_SHA1()
103 HMAC_Init_ex(&hctx, pass, passlen, EVP_sha1(), NULL); in PKCS5_PBKDF2_HMAC_SHA1()
109 HMAC(EVP_sha1(), pass, passlen, in PKCS5_PBKDF2_HMAC_SHA1()
120 h__dump (pass, passlen); in PKCS5_PBKDF2_HMAC_SHA1()
147 int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, in PKCS5_v2_PBE_keyivgen() argument
244 PKCS5_PBKDF2_HMAC_SHA1(pass, passlen, salt, saltlen, iter, keylen, key); in PKCS5_v2_PBE_keyivgen()
Devp_pbe.c77 int EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen, in EVP_PBE_CipherInit() argument
95 if(!pass) passlen = 0; in EVP_PBE_CipherInit()
96 else if (passlen == -1) passlen = strlen(pass); in EVP_PBE_CipherInit()
98 i = (*pbetmp->keygen)(ctx, pass, passlen, param, pbetmp->cipher, in EVP_PBE_CipherInit()
Dp5_crpt.c103 int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *cctx, const char *pass, int passlen, in PKCS5_PBE_keyivgen() argument
134 if(!pass) passlen = 0; in PKCS5_PBE_keyivgen()
135 else if(passlen == -1) passlen = strlen(pass); in PKCS5_PBE_keyivgen()
139 EVP_DigestUpdate(&ctx, pass, passlen); in PKCS5_PBE_keyivgen()
Devp.h402 typedef int (EVP_PBE_KEYGEN)(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
864 int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
867 int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen,
870 int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
876 int EVP_PBE_CipherInit (ASN1_OBJECT *pbe_obj, const char *pass, int passlen,
/external/openssl/apps/
Dpkcs12.c83 int dump_certs_keys_p12(BIO *out, PKCS12 *p12, char *pass, int passlen, int options, char *pempass);
85 int passlen, int options, char *pempass);
86 int dump_certs_pkeys_bag(BIO *out, PKCS12_SAFEBAG *bags, char *pass, int passlen, int options, char…
690 int passlen, int options, char *pempass) in dump_certs_keys_p12() argument
711 bags = PKCS12_unpack_p7encdata(p7, pass, passlen); in dump_certs_keys_p12()
714 if (!dump_certs_pkeys_bags (out, bags, pass, passlen, in dump_certs_keys_p12()
732 char *pass, int passlen, int options, char *pempass) in dump_certs_pkeys_bags() argument
738 pass, passlen, in dump_certs_pkeys_bags()
746 int passlen, int options, char *pempass) in dump_certs_pkeys_bag() argument
772 if (!(p8 = PKCS12_decrypt_skey(bag, pass, passlen))) in dump_certs_pkeys_bag()
[all …]
/external/openssl/crypto/stack/
Dsafestack.h148 #define SKM_PKCS12_decrypt_d2i(type, algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
152 pass, passlen, oct, seq)
213 #define SKM_PKCS12_decrypt_d2i(type, algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
214 …((STACK *)PKCS12_decrypt_d2i(algor,(char *(*)())d2i_func, (void(*)(void *))free_func,pass,passlen,…
1979 #define PKCS12_decrypt_d2i_PKCS12_SAFEBAG(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
1980 …SKM_PKCS12_decrypt_d2i(PKCS12_SAFEBAG, (algor), (d2i_func), (free_func), (pass), (passlen), (oct),…
1982 #define PKCS12_decrypt_d2i_PKCS7(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
1983 SKM_PKCS12_decrypt_d2i(PKCS7, (algor), (d2i_func), (free_func), (pass), (passlen), (oct), (seq))