/external/chromium_org/third_party/openssl/openssl/crypto/evp/ |
D | p5_crpt2.c | 80 int PKCS5_PBKDF2_HMAC(const char *pass, int passlen, in PKCS5_PBKDF2_HMAC() argument 98 passlen = 0; in PKCS5_PBKDF2_HMAC() 99 else if(passlen == -1) in PKCS5_PBKDF2_HMAC() 100 passlen = strlen(pass); in PKCS5_PBKDF2_HMAC() 114 if (!HMAC_Init_ex(&hctx, pass, passlen, digest, NULL) in PKCS5_PBKDF2_HMAC() 125 HMAC(digest, pass, passlen, in PKCS5_PBKDF2_HMAC() 137 h__dump (pass, passlen); in PKCS5_PBKDF2_HMAC() 147 int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen, in PKCS5_PBKDF2_HMAC_SHA1() argument 151 return PKCS5_PBKDF2_HMAC(pass, passlen, salt, saltlen, iter, EVP_sha1(), in PKCS5_PBKDF2_HMAC_SHA1() 172 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 106 if(!pass) passlen = 0; in PKCS5_PBE_keyivgen() 107 else if(passlen == -1) passlen = strlen(pass); in PKCS5_PBE_keyivgen() 111 if (!EVP_DigestUpdate(&ctx, pass, passlen)) in PKCS5_PBE_keyivgen()
|
D | evp_pbe.c | 155 int EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen, in EVP_PBE_CipherInit() argument 175 passlen = 0; in EVP_PBE_CipherInit() 176 else if (passlen == -1) in EVP_PBE_CipherInit() 177 passlen = strlen(pass); in EVP_PBE_CipherInit() 203 if (!keygen(ctx, pass, passlen, param, cipher, md, en_de)) in EVP_PBE_CipherInit()
|
/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_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() 121 const char *pass, int passlen, ASN1_OCTET_STRING *oct, int zbuf) in PKCS12_item_decrypt_d2i() argument 128 if (!PKCS12_pbe_crypt(algor, pass, passlen, oct->data, oct->length, in PKCS12_item_decrypt_d2i() 158 const char *pass, int passlen, in PKCS12_item_i2d_encrypt() argument 173 if (!PKCS12_pbe_crypt(algor, pass, passlen, in, inlen, &oct->data, in PKCS12_item_i2d_encrypt()
|
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 129 fprintf(stderr, "Password (length %d):\n", passlen); in PKCS12_key_gen_uni() 130 h__dump(pass, passlen); in PKCS12_key_gen_uni() 142 if(passlen) Plen = v * ((passlen+v-1)/v); in PKCS12_key_gen_uni() 153 for (i = 0; i < Plen; i++) *p++ = pass[i % passlen]; in PKCS12_key_gen_uni()
|
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() 113 int PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen) in PKCS12_verify_mac() argument 121 if (!PKCS12_gen_mac (p12, pass, passlen, mac, &maclen)) { in PKCS12_verify_mac() 132 int PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen, in PKCS12_set_mac() argument 144 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()
|
/external/chromium_org/third_party/openssl/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 …]
|
/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 …]
|
/external/chromium_org/third_party/openssl/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_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() 121 const char *pass, int passlen, ASN1_OCTET_STRING *oct, int zbuf) in PKCS12_item_decrypt_d2i() argument 128 if (!PKCS12_pbe_crypt(algor, pass, passlen, oct->data, oct->length, in PKCS12_item_decrypt_d2i() 158 const char *pass, int passlen, in PKCS12_item_i2d_encrypt() argument 173 if (!PKCS12_pbe_crypt(algor, pass, passlen, in, inlen, &oct->data, in PKCS12_item_i2d_encrypt()
|
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 129 fprintf(stderr, "Password (length %d):\n", passlen); in PKCS12_key_gen_uni() 130 h__dump(pass, passlen); in PKCS12_key_gen_uni() 142 if(passlen) Plen = v * ((passlen+v-1)/v); in PKCS12_key_gen_uni() 153 for (i = 0; i < Plen; i++) *p++ = pass[i % passlen]; in PKCS12_key_gen_uni()
|
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() 113 int PKCS12_verify_mac(PKCS12 *p12, const char *pass, int passlen) in PKCS12_verify_mac() argument 121 if (!PKCS12_gen_mac (p12, pass, passlen, mac, &maclen)) { in PKCS12_verify_mac() 132 int PKCS12_set_mac(PKCS12 *p12, const char *pass, int passlen, in PKCS12_set_mac() argument 144 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()
|
/external/openssl/crypto/evp/ |
D | p5_crpt2.c | 80 int PKCS5_PBKDF2_HMAC(const char *pass, int passlen, in PKCS5_PBKDF2_HMAC() argument 98 passlen = 0; in PKCS5_PBKDF2_HMAC() 99 else if(passlen == -1) in PKCS5_PBKDF2_HMAC() 100 passlen = strlen(pass); in PKCS5_PBKDF2_HMAC() 101 if (!HMAC_Init_ex(&hctx_tpl, pass, passlen, digest, NULL)) in PKCS5_PBKDF2_HMAC() 159 h__dump (pass, passlen); in PKCS5_PBKDF2_HMAC() 169 int PKCS5_PBKDF2_HMAC_SHA1(const char *pass, int passlen, in PKCS5_PBKDF2_HMAC_SHA1() argument 173 return PKCS5_PBKDF2_HMAC(pass, passlen, salt, saltlen, iter, EVP_sha1(), in PKCS5_PBKDF2_HMAC_SHA1() 194 int PKCS5_v2_PBE_keyivgen(EVP_CIPHER_CTX *ctx, const char *pass, int passlen, in PKCS5_v2_PBE_keyivgen() argument 245 rv = PKCS5_v2_PBKDF2_keyivgen(ctx, pass, passlen, in PKCS5_v2_PBE_keyivgen() [all …]
|
D | p5_crpt.c | 72 int PKCS5_PBE_keyivgen(EVP_CIPHER_CTX *cctx, const char *pass, int passlen, in PKCS5_PBE_keyivgen() argument 106 if(!pass) passlen = 0; in PKCS5_PBE_keyivgen() 107 else if(passlen == -1) passlen = strlen(pass); in PKCS5_PBE_keyivgen() 111 if (!EVP_DigestUpdate(&ctx, pass, passlen)) in PKCS5_PBE_keyivgen()
|
D | evp_pbe.c | 155 int EVP_PBE_CipherInit(ASN1_OBJECT *pbe_obj, const char *pass, int passlen, in EVP_PBE_CipherInit() argument 175 passlen = 0; in EVP_PBE_CipherInit() 176 else if (passlen == -1) in EVP_PBE_CipherInit() 177 passlen = strlen(pass); in EVP_PBE_CipherInit() 203 if (!keygen(ctx, pass, passlen, param, cipher, md, en_de)) in EVP_PBE_CipherInit()
|
/external/openssl/crypto/cms/ |
D | cms_pwri.c | 66 unsigned char *pass, ossl_ssize_t passlen) in CMS_RecipientInfo_set0_password() argument 77 if (pass && passlen < 0) in CMS_RecipientInfo_set0_password() 78 passlen = strlen((char *)pass); in CMS_RecipientInfo_set0_password() 79 pwri->passlen = passlen; in CMS_RecipientInfo_set0_password() 86 ossl_ssize_t passlen, in CMS_add0_recipient_password() argument 200 CMS_RecipientInfo_set0_password(ri, pass, passlen); in CMS_add0_recipient_password() 393 (char *)pwri->pass, pwri->passlen, in cms_RecipientInfo_pwri_crypt()
|