Home
last modified time | relevance | path

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

/external/openssl/include/openssl/
Dpkcs12.h178 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt(X509_SIG *p8, const char *pass, int passlen);
180 int passlen);
182 const char *pass, int passlen,
186 int passlen, unsigned char *salt,
191 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,
194 STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass, int passlen);
210 int passlen, unsigned char *in, int inlen,
213 const char *pass, int passlen, ASN1_OCTET_STRING *oct, int zbuf);
215 const char *pass, int passlen,
218 int PKCS12_key_gen_asc(const char *pass, int passlen, unsigned char *salt,
[all …]
Devp.h403 typedef int (EVP_PBE_KEYGEN)(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
911 int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
914 int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen,
917 int PKCS5_PBKDF2_HMAC(const char *pass, int passlen,
921 int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
927 int EVP_PBE_CipherInit (ASN1_OBJECT *pbe_obj, const char *pass, int passlen,
Dsafestack.h200 #define SKM_PKCS12_decrypt_d2i(type, algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
204 pass, passlen, oct, seq)
2333 #define PKCS12_decrypt_d2i_PKCS12_SAFEBAG(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
2334 …SKM_PKCS12_decrypt_d2i(PKCS12_SAFEBAG, (algor), (d2i_func), (free_func), (pass), (passlen), (oct),…
2336 #define PKCS12_decrypt_d2i_PKCS7(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
2337 SKM_PKCS12_decrypt_d2i(PKCS7, (algor), (d2i_func), (free_func), (pass), (passlen), (oct), (seq))
/external/openssl/crypto/pkcs12/
Dpkcs12.h178 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt(X509_SIG *p8, const char *pass, int passlen);
180 int passlen);
182 const char *pass, int passlen,
186 int passlen, unsigned char *salt,
191 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,
194 STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass, int passlen);
210 int passlen, unsigned char *in, int inlen,
213 const char *pass, int passlen, ASN1_OCTET_STRING *oct, int zbuf);
215 const char *pass, int passlen,
218 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, STACK_OF(X509) *ocerts);
71 static int parse_bag( PKCS12_SAFEBAG *bag, const char *pass, int passlen,
179 static int parse_pk12(PKCS12 *p12, const char *pass, int passlen, in parse_pk12() argument
194 bags = PKCS12_unpack_p7encdata(p7, pass, passlen); in parse_pk12()
200 if (!parse_bags(bags, pass, passlen, pkey, ocerts)) { in parse_pk12()
213 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) in parse_bags() argument
218 pass, passlen, pkey, ocerts)) in parse_bags()
224 static int parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen, in parse_bag() argument
251 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
125 PKCS8_encrypt(pbe_nid, pbe_ciph, pass, passlen, salt, saltlen, iter, in PKCS12_MAKE_SHKEYBAG()
168 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen, in PKCS12_pack_p7encdata() argument
200 PKCS12_item_i2d_encrypt(pbe, ASN1_ITEM_rptr(PKCS12_SAFEBAGS), pass, passlen, in PKCS12_pack_p7encdata()
209 STACK_OF(PKCS12_SAFEBAG) *PKCS12_unpack_p7encdata(PKCS7 *p7, const char *pass, int passlen) in STACK_OF()
214 pass, passlen, in STACK_OF()
219 int passlen) in PKCS12_decrypt_skey() argument
221 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
88 } else if (!OPENSSL_asc2uni(pass, passlen, &unipass, &uniplen)) { in PKCS12_key_gen_asc()
103 int PKCS12_key_gen_uni(unsigned char *pass, int passlen, unsigned char *salt, in PKCS12_key_gen_uni() argument
128 fprintf(stderr, "Password (length %d):\n", passlen); in PKCS12_key_gen_uni()
129 h__dump(pass, passlen); in PKCS12_key_gen_uni()
141 if(passlen) Plen = v * ((passlen+v-1)/v); in PKCS12_key_gen_uni()
154 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
94 if(!PKCS12_key_gen (pass, passlen, salt, saltlen, PKCS12_MAC_ID, iter, in PKCS12_gen_mac()
109 int PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen) in PKCS12_verify_mac() argument
117 if (!PKCS12_gen_mac (p12, pass, passlen, mac, &maclen)) { in PKCS12_verify_mac()
128 int PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen, in PKCS12_set_mac() argument
140 if (!PKCS12_gen_mac (p12, pass, passlen, mac, &maclen)) { in PKCS12_set_mac()
Dp12_crpt.c69 int PKCS12_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, in PKCS12_PBE_keyivgen() argument
95 if (!PKCS12_key_gen (pass, passlen, salt, saltlen, PKCS12_KEY_ID, in PKCS12_PBE_keyivgen()
101 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(const char *pass, int passlen, in PKCS5_PBKDF2_HMAC() argument
97 passlen = 0; in PKCS5_PBKDF2_HMAC()
98 else if(passlen == -1) in PKCS5_PBKDF2_HMAC()
99 passlen = strlen(pass); in PKCS5_PBKDF2_HMAC()
113 HMAC_Init_ex(&hctx, pass, passlen, digest, NULL); in PKCS5_PBKDF2_HMAC()
120 HMAC(digest, pass, passlen, in PKCS5_PBKDF2_HMAC()
132 h__dump (pass, passlen); in PKCS5_PBKDF2_HMAC()
142 int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen, in PKCS5_PBKDF2_HMAC_SHA1() argument
146 return PKCS5_PBKDF2_HMAC(pass, passlen, salt, saltlen, iter, EVP_sha1(), in PKCS5_PBKDF2_HMAC_SHA1()
167 int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, in PKCS5_v2_PBE_keyivgen() argument
[all …]
Dp5_crpt.c72 int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *cctx, const char *pass, int passlen, in PKCS5_PBE_keyivgen() argument
104 if(!pass) passlen = 0; in PKCS5_PBE_keyivgen()
105 else if(passlen == -1) passlen = strlen(pass); in PKCS5_PBE_keyivgen()
109 EVP_DigestUpdate(&ctx, pass, passlen); in PKCS5_PBE_keyivgen()
Devp_pbe.c150 int EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen, in EVP_PBE_CipherInit() argument
170 passlen = 0; in EVP_PBE_CipherInit()
171 else if (passlen == -1) in EVP_PBE_CipherInit()
172 passlen = strlen(pass); in EVP_PBE_CipherInit()
198 if (!keygen(ctx, pass, passlen, param, cipher, md, en_de)) in EVP_PBE_CipherInit()
Devp.h403 typedef int (EVP_PBE_KEYGEN)(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
911 int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
914 int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen,
917 int PKCS5_PBKDF2_HMAC(const char *pass, int passlen,
921 int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen,
927 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…
698 int passlen, int options, char *pempass) in dump_certs_keys_p12() argument
719 bags = PKCS12_unpack_p7encdata(p7, pass, passlen); in dump_certs_keys_p12()
722 if (!dump_certs_pkeys_bags (out, bags, pass, passlen, in dump_certs_keys_p12()
740 char *pass, int passlen, int options, char *pempass) in dump_certs_pkeys_bags() argument
746 pass, passlen, in dump_certs_pkeys_bags()
754 int passlen, int options, char *pempass) in dump_certs_pkeys_bag() argument
780 if (!(p8 = PKCS12_decrypt_skey(bag, pass, passlen))) in dump_certs_pkeys_bag()
[all …]
/external/openssl/crypto/pem/
Dpvkfmt.c709 const unsigned char *pass, int passlen) in derive_pvk_key() argument
715 EVP_DigestUpdate(&mctx, pass, passlen); in derive_pvk_key()
/external/openssl/crypto/stack/
Dsafestack.h200 #define SKM_PKCS12_decrypt_d2i(type, algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
204 pass, passlen, oct, seq)
2333 #define PKCS12_decrypt_d2i_PKCS12_SAFEBAG(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
2334 …SKM_PKCS12_decrypt_d2i(PKCS12_SAFEBAG, (algor), (d2i_func), (free_func), (pass), (passlen), (oct),…
2336 #define PKCS12_decrypt_d2i_PKCS7(algor, d2i_func, free_func, pass, passlen, oct, seq) \ argument
2337 SKM_PKCS12_decrypt_d2i(PKCS7, (algor), (d2i_func), (free_func), (pass), (passlen), (oct), (seq))