/third_party/openssl/test/ |
D | pbelutest.c | 21 int pbe_type, pbe_nid, last_type = -1, last_nid = -1; in test_pbelu() local 23 for (i = 0; EVP_PBE_get(&pbe_type, &pbe_nid, i) != 0; i++) { in test_pbelu() 24 if (!TEST_true(EVP_PBE_find(pbe_type, pbe_nid, NULL, NULL, 0))) { in test_pbelu() 25 TEST_note("i=%d, pbe_type=%d, pbe_nid=%d", i, pbe_type, pbe_nid); in test_pbelu() 35 for (i = 0; EVP_PBE_get(&pbe_type, &pbe_nid, i) != 0; i++) { in test_pbelu() 37 || (pbe_type == last_type && pbe_nid < last_nid); in test_pbelu() 38 TEST_note("PBE type=%d %d (%s): %s\n", pbe_type, pbe_nid, in test_pbelu() 39 OBJ_nid2sn(pbe_nid), failed ? "ERROR" : "OK"); in test_pbelu() 41 last_nid = pbe_nid; in test_pbelu()
|
/third_party/openssl/crypto/evp/ |
D | evp_pbe.c | 23 int pbe_nid; member 144 return pbe1->pbe_nid - pbe2->pbe_nid; in pbe2_cmp() 155 return (*a)->pbe_nid - (*b)->pbe_nid; in pbe_cmp() 160 int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid, in EVP_PBE_alg_add_type() argument 175 pbe_tmp->pbe_nid = pbe_nid; in EVP_PBE_alg_add_type() 209 int EVP_PBE_find(int type, int pbe_nid, in EVP_PBE_find() argument 214 if (pbe_nid == NID_undef) in EVP_PBE_find() 218 pbelu.pbe_nid = pbe_nid; in EVP_PBE_find() 260 *ppbe_nid = tpbe->pbe_nid; in EVP_PBE_get()
|
/third_party/openssl/crypto/pkcs12/ |
D | p12_p8e.c | 15 X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher, in PKCS8_encrypt() argument 23 if (pbe_nid == -1) in PKCS8_encrypt() 25 else if (EVP_PBE_find(EVP_PBE_TYPE_PRF, pbe_nid, NULL, NULL, 0)) in PKCS8_encrypt() 26 pbe = PKCS5_pbe2_set_iv(cipher, iter, salt, saltlen, NULL, pbe_nid); in PKCS8_encrypt() 29 pbe = PKCS5_pbe_set(pbe_nid, iter, salt, saltlen); in PKCS8_encrypt()
|
D | p12_sbag.c | 137 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid, in PKCS12_SAFEBAG_create_pkcs8_encrypt() argument 148 pbe_ciph = EVP_get_cipherbynid(pbe_nid); in PKCS12_SAFEBAG_create_pkcs8_encrypt() 150 pbe_nid = -1; in PKCS12_SAFEBAG_create_pkcs8_encrypt() 152 p8 = PKCS8_encrypt(pbe_nid, pbe_ciph, pass, passlen, salt, saltlen, iter, in PKCS12_SAFEBAG_create_pkcs8_encrypt()
|
D | p12_add.c | 84 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen, in PKCS12_pack_p7encdata() argument 102 pbe_ciph = EVP_get_cipherbynid(pbe_nid); in PKCS12_pack_p7encdata() 107 pbe = PKCS5_pbe_set(pbe_nid, iter, salt, saltlen); in PKCS12_pack_p7encdata()
|
D | p12_npas.c | 63 int i, bagnid, pbe_nid = 0, pbe_iter = 0, pbe_saltlen = 0; in newpass_p12() local 82 &pbe_nid, &pbe_iter, &pbe_saltlen)) in newpass_p12() 95 p7new = PKCS12_pack_p7encdata(pbe_nid, newpass, -1, NULL, in newpass_p12()
|
/third_party/openssl/apps/ |
D | pkcs8.c | 77 int informat = FORMAT_PEM, outformat = FORMAT_PEM, topk8 = 0, pbe_nid = -1; in pkcs8_main() local 130 pbe_nid = OBJ_txt2nid(opt_arg()); in pkcs8_main() 131 if (pbe_nid == NID_undef) { in pkcs8_main() 138 pbe_nid = OBJ_txt2nid(opt_arg()); in pkcs8_main() 139 if (!EVP_PBE_find(EVP_PBE_TYPE_PRF, pbe_nid, NULL, NULL, 0)) { in pkcs8_main() 194 if ((pbe_nid == -1) && cipher == NULL) in pkcs8_main() 233 pbe_nid); in pkcs8_main() 235 pbe = PKCS5_pbe_set(pbe_nid, iter, NULL, 0); in pkcs8_main()
|
/third_party/openssl/include/openssl/ |
D | pkcs12.h | 102 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid, 115 X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher, 122 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,
|
D | cms.h | 194 int pbe_nid,
|
D | evp.h | 1122 int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid, 1126 int EVP_PBE_find(int type, int pbe_nid, int *pcnid, int *pmnid,
|
/third_party/openssl/crypto/cms/ |
D | cms_pwri.c | 40 int pbe_nid, in CMS_add0_recipient_password() argument 60 if (pbe_nid <= 0) in CMS_add0_recipient_password() 61 pbe_nid = NID_id_pbkdf2; in CMS_add0_recipient_password()
|