Home
last modified time | relevance | path

Searched refs:pbe_nid (Results 1 – 15 of 15) sorted by relevance

/openssl/test/
H A Dpbelutest.c21 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()
/openssl/crypto/evp/
H A Devp_pbe.c26 int pbe_nid; member
183 return pbe1->pbe_nid - pbe2->pbe_nid; in pbe2_cmp()
194 return (*a)->pbe_nid - (*b)->pbe_nid; in pbe_cmp()
199 int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid, in EVP_PBE_alg_add_type() argument
216 pbe_tmp->pbe_nid = pbe_nid; in EVP_PBE_alg_add_type()
250 int EVP_PBE_find_ex(int type, int pbe_nid, int *pcnid, int *pmnid, in EVP_PBE_find_ex() argument
255 if (pbe_nid == NID_undef) in EVP_PBE_find_ex()
259 pbelu.pbe_nid = pbe_nid; in EVP_PBE_find_ex()
283 int EVP_PBE_find(int type, int pbe_nid, in EVP_PBE_find() argument
286 return EVP_PBE_find_ex(type, pbe_nid, pcnid, pmnid, pkeygen, NULL); in EVP_PBE_find()
[all …]
/openssl/crypto/pkcs12/
H A Dp12_p8e.c16 X509_SIG *PKCS8_encrypt_ex(int pbe_nid, const EVP_CIPHER *cipher, in PKCS8_encrypt_ex() argument
25 if (pbe_nid == -1) { in PKCS8_encrypt_ex()
34 if (EVP_PBE_find(EVP_PBE_TYPE_PRF, pbe_nid, NULL, NULL, 0)) { in PKCS8_encrypt_ex()
41 pbe_nid, libctx); in PKCS8_encrypt_ex()
44 pbe = PKCS5_pbe_set_ex(pbe_nid, iter, salt, saltlen, libctx); in PKCS8_encrypt_ex()
60 X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher, in PKCS8_encrypt() argument
65 return PKCS8_encrypt_ex(pbe_nid, cipher, pass, passlen, salt, saltlen, iter, in PKCS8_encrypt()
H A Dp12_sbag.c238 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(int pbe_nid, in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex() argument
253 pbe_ciph = pbe_ciph_fetch = EVP_CIPHER_fetch(ctx, OBJ_nid2sn(pbe_nid), propq); in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex()
255 pbe_ciph = EVP_get_cipherbynid(pbe_nid); in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex()
259 pbe_nid = -1; in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex()
261 p8 = PKCS8_encrypt_ex(pbe_nid, pbe_ciph, pass, passlen, salt, saltlen, iter, in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex()
275 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid, in PKCS12_SAFEBAG_create_pkcs8_encrypt() argument
282 return PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(pbe_nid, pass, passlen, in PKCS12_SAFEBAG_create_pkcs8_encrypt()
H A Dp12_add.c94 PKCS7 *PKCS12_pack_p7encdata_ex(int pbe_nid, const char *pass, int passlen, in PKCS12_pack_p7encdata_ex() argument
114 pbe_ciph = pbe_ciph_fetch = EVP_CIPHER_fetch(ctx, OBJ_nid2sn(pbe_nid), propq); in PKCS12_pack_p7encdata_ex()
116 pbe_ciph = EVP_get_cipherbynid(pbe_nid); in PKCS12_pack_p7encdata_ex()
122 pbe = PKCS5_pbe_set_ex(pbe_nid, iter, salt, saltlen, ctx); in PKCS12_pack_p7encdata_ex()
148 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen, in PKCS12_pack_p7encdata() argument
152 return PKCS12_pack_p7encdata_ex(pbe_nid, pass, passlen, salt, saltlen, in PKCS12_pack_p7encdata()
H A Dp12_npas.c64 int i, bagnid, pbe_nid = 0, pbe_iter = 0, pbe_saltlen = 0, cipherid = NID_undef; in newpass_p12() local
85 &pbe_nid, &pbe_iter, &pbe_saltlen, &cipherid)) in newpass_p12()
99 p7new = PKCS12_pack_p7encdata_ex(pbe_nid, newpass, -1, NULL, in newpass_p12()
/openssl/apps/
H A Dpkcs8.c91 int informat = FORMAT_UNDEF, outformat = FORMAT_PEM, topk8 = 0, pbe_nid = -1; in pkcs8_main() local
148 pbe_nid = OBJ_txt2nid(opt_arg()); in pkcs8_main()
149 if (pbe_nid == NID_undef) { in pkcs8_main()
156 pbe_nid = OBJ_txt2nid(opt_arg()); in pkcs8_main()
157 if (!EVP_PBE_find(EVP_PBE_TYPE_PRF, pbe_nid, NULL, NULL, 0)) { in pkcs8_main()
223 if ((pbe_nid == -1) && cipher == NULL) in pkcs8_main()
262 pbe_nid); in pkcs8_main()
264 pbe = PKCS5_pbe_set(pbe_nid, iter, NULL, saltlen); in pkcs8_main()
/openssl/doc/man3/
H A DPKCS12_pack_p7encdata.pod12 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,
15 PKCS7 *PKCS12_pack_p7encdata_ex(int pbe_nid, const char *pass, int passlen,
23 type from the set of safeBags I<bags>. The algorithm ID in I<pbe_nid> can be
H A DEVP_PBE_CipherInit.pod19 int EVP_PBE_find(int type, int pbe_nid, int *pcnid, int *pmnid,
21 int EVP_PBE_find_ex(int type, int pbe_nid, int *pcnid, int *pmnid,
24 int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid,
64 2. A I<pbe_nid> which can represent the algorithm identifier with parameters e.g.
H A DPKCS12_SAFEBAG_create_cert.pod21 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid,
27 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(int pbe_nid,
57 If I<pbe_nid> is 0, a default encryption algorithm is used. I<pass> is the
H A DPKCS8_encrypt.pod17 X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher,
20 X509_SIG *PKCS8_encrypt_ex(int pbe_nid, const EVP_CIPHER *cipher,
/openssl/crypto/cms/
H A Dcms_pwri.c41 int pbe_nid, in CMS_add0_recipient_password() argument
66 if (pbe_nid <= 0) in CMS_add0_recipient_password()
67 pbe_nid = NID_id_pbkdf2; in CMS_add0_recipient_password()
/openssl/include/openssl/
H A Dpkcs12.h.in128 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid,
134 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(int pbe_nid,
156 X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher,
159 X509_SIG *PKCS8_encrypt_ex(int pbe_nid, const EVP_CIPHER *cipher,
170 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,
173 PKCS7 *PKCS12_pack_p7encdata_ex(int pbe_nid, const char *pass, int passlen,
H A Devp.h1551 int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid,
1555 int EVP_PBE_find(int type, int pbe_nid, int *pcnid, int *pmnid,
1557 int EVP_PBE_find_ex(int type, int pbe_nid, int *pcnid, int *pmnid,
H A Dcms.h.in253 int pbe_nid,

Completed in 25 milliseconds