/external/openssl/include/openssl/ |
D | pkcs12.h | 178 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 …]
|
D | evp.h | 403 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,
|
D | safestack.h | 200 #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/ |
D | pkcs12.h | 178 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 …]
|
D | p12_kiss.c | 65 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 …]
|
D | p12_add.c | 105 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()
|
D | p12_key.c | 77 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()
|
D | p12_decr.c | 72 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()
|
D | p12_mutl.c | 67 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()
|
D | p12_crpt.c | 69 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()
|
D | p12_p8d.c | 63 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()
|
D | p12_p8e.c | 64 const char *pass, int passlen, in PKCS8_encrypt() argument 86 pass, passlen, p8inf, 1); in PKCS8_encrypt()
|
/external/openssl/crypto/evp/ |
D | p5_crpt2.c | 79 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 …]
|
D | p5_crpt.c | 72 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()
|
D | evp_pbe.c | 150 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()
|
D | evp.h | 403 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/ |
D | pkcs12.c | 83 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/ |
D | pvkfmt.c | 709 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/ |
D | safestack.h | 200 #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))
|