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
180 return pbe1->pbe_nid - pbe2->pbe_nid; in pbe2_cmp()
191 return (*a)->pbe_nid - (*b)->pbe_nid; in pbe_cmp()
196 int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid, in EVP_PBE_alg_add_type() argument
211 pbe_tmp->pbe_nid = pbe_nid; in EVP_PBE_alg_add_type()
245 int EVP_PBE_find_ex(int type, int pbe_nid, int *pcnid, int *pmnid, in EVP_PBE_find_ex() argument
250 if (pbe_nid == NID_undef) in EVP_PBE_find_ex()
254 pbelu.pbe_nid = pbe_nid; in EVP_PBE_find_ex()
276 int EVP_PBE_find(int type, int pbe_nid, in EVP_PBE_find() argument
279 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.c201 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(int pbe_nid, in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex() argument
216 pbe_ciph = pbe_ciph_fetch = EVP_CIPHER_fetch(ctx, OBJ_nid2sn(pbe_nid), propq); in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex()
218 pbe_ciph = EVP_get_cipherbynid(pbe_nid); in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex()
222 pbe_nid = -1; in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex()
224 p8 = PKCS8_encrypt_ex(pbe_nid, pbe_ciph, pass, passlen, salt, saltlen, iter, in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex()
238 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid, in PKCS12_SAFEBAG_create_pkcs8_encrypt() argument
245 return PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(pbe_nid, pass, passlen, in PKCS12_SAFEBAG_create_pkcs8_encrypt()
H A Dp12_add.c86 PKCS7 *PKCS12_pack_p7encdata_ex(int pbe_nid, const char *pass, int passlen, in PKCS12_pack_p7encdata_ex() argument
106 pbe_ciph = pbe_ciph_fetch = EVP_CIPHER_fetch(ctx, OBJ_nid2sn(pbe_nid), propq); in PKCS12_pack_p7encdata_ex()
108 pbe_ciph = EVP_get_cipherbynid(pbe_nid); in PKCS12_pack_p7encdata_ex()
114 pbe = PKCS5_pbe_set_ex(pbe_nid, iter, salt, saltlen, ctx); in PKCS12_pack_p7encdata_ex()
140 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen, in PKCS12_pack_p7encdata() argument
144 return PKCS12_pack_p7encdata_ex(pbe_nid, pass, passlen, salt, saltlen, in PKCS12_pack_p7encdata()
H A Dp12_npas.c62 int i, bagnid, pbe_nid = 0, pbe_iter = 0, pbe_saltlen = 0; in newpass_p12() local
81 &pbe_nid, &pbe_iter, &pbe_saltlen)) in newpass_p12()
94 p7new = PKCS12_pack_p7encdata(pbe_nid, newpass, -1, NULL, in newpass_p12()
/openssl/apps/
H A Dpkcs8.c86 int informat = FORMAT_UNDEF, outformat = FORMAT_PEM, topk8 = 0, pbe_nid = -1; in pkcs8_main() local
142 pbe_nid = OBJ_txt2nid(opt_arg()); in pkcs8_main()
143 if (pbe_nid == NID_undef) { in pkcs8_main()
150 pbe_nid = OBJ_txt2nid(opt_arg()); in pkcs8_main()
151 if (!EVP_PBE_find(EVP_PBE_TYPE_PRF, pbe_nid, NULL, NULL, 0)) { in pkcs8_main()
213 if ((pbe_nid == -1) && cipher == NULL) in pkcs8_main()
253 pbe_nid); in pkcs8_main()
255 pbe = PKCS5_pbe_set(pbe_nid, iter, NULL, 0); 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.pod18 int EVP_PBE_find(int type, int pbe_nid, int *pcnid, int *pmnid,
20 int EVP_PBE_find_ex(int type, int pbe_nid, int *pcnid, int *pmnid,
58 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/include/openssl/
H A Dpkcs12.h.in126 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid,
132 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(int pbe_nid,
154 X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher,
157 X509_SIG *PKCS8_encrypt_ex(int pbe_nid, const EVP_CIPHER *cipher,
168 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen,
171 PKCS7 *PKCS12_pack_p7encdata_ex(int pbe_nid, const char *pass, int passlen,
H A Devp.h1536 int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid,
1540 int EVP_PBE_find(int type, int pbe_nid, int *pcnid, int *pmnid,
1542 int EVP_PBE_find_ex(int type, int pbe_nid, int *pcnid, int *pmnid,
H A Dcms.h.in253 int pbe_nid,
/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()

Completed in 73 milliseconds