Searched refs:pbe_nid (Results 1 - 20 of 20) sorted by relevance

/netbsd-current/crypto/external/bsd/openssl.old/dist/test/
H A Dpbelutest.c21 int pbe_type, pbe_nid, last_type = -1, last_nid = -1; local
23 for (i = 0; EVP_PBE_get(&pbe_type, &pbe_nid, i) != 0; i++) {
24 if (!TEST_true(EVP_PBE_find(pbe_type, pbe_nid, NULL, NULL, 0))) {
25 TEST_note("i=%d, pbe_type=%d, pbe_nid=%d", i, pbe_type, pbe_nid);
35 for (i = 0; EVP_PBE_get(&pbe_type, &pbe_nid, i) != 0; i++) {
37 || (pbe_type == last_type && pbe_nid < last_nid);
38 TEST_note("PBE type=%d %d (%s): %s\n", pbe_type, pbe_nid,
39 OBJ_nid2sn(pbe_nid), failed ? "ERROR" : "OK");
41 last_nid = pbe_nid;
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/test/
H A Dpbelutest.c21 int pbe_type, pbe_nid, last_type = -1, last_nid = -1; local
23 for (i = 0; EVP_PBE_get(&pbe_type, &pbe_nid, i) != 0; i++) {
24 if (!TEST_true(EVP_PBE_find(pbe_type, pbe_nid, NULL, NULL, 0))) {
25 TEST_note("i=%d, pbe_type=%d, pbe_nid=%d", i, pbe_type, pbe_nid);
35 for (i = 0; EVP_PBE_get(&pbe_type, &pbe_nid, i) != 0; i++) {
37 || (pbe_type == last_type && pbe_nid < last_nid);
38 TEST_note("PBE type=%d %d (%s): %s\n", pbe_type, pbe_nid,
39 OBJ_nid2sn(pbe_nid), failed ? "ERROR" : "OK");
41 last_nid = pbe_nid;
[all...]
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/pkcs12/
H A Dp12_p8e.c15 X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher, argument
23 if (pbe_nid == -1)
25 else if (EVP_PBE_find(EVP_PBE_TYPE_PRF, pbe_nid, NULL, NULL, 0))
26 pbe = PKCS5_pbe2_set_iv(cipher, iter, salt, saltlen, NULL, pbe_nid);
29 pbe = PKCS5_pbe_set(pbe_nid, iter, salt, saltlen);
H A Dp12_sbag.c137 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid, argument
148 pbe_ciph = EVP_get_cipherbynid(pbe_nid);
150 pbe_nid = -1;
152 p8 = PKCS8_encrypt(pbe_nid, pbe_ciph, pass, passlen, salt, saltlen, iter,
H A Dp12_add.c84 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen, argument
102 pbe_ciph = EVP_get_cipherbynid(pbe_nid);
107 pbe = PKCS5_pbe_set(pbe_nid, iter, salt, saltlen);
H A Dp12_npas.c63 int i, bagnid, pbe_nid = 0, pbe_iter = 0, pbe_saltlen = 0; local
82 &pbe_nid, &pbe_iter, &pbe_saltlen))
95 p7new = PKCS12_pack_p7encdata(pbe_nid, newpass, -1, NULL,
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/pkcs12/
H A Dp12_p8e.c16 X509_SIG *PKCS8_encrypt_ex(int pbe_nid, const EVP_CIPHER *cipher, argument
25 if (pbe_nid == -1) {
34 if (EVP_PBE_find(EVP_PBE_TYPE_PRF, pbe_nid, NULL, NULL, 0)) {
41 pbe_nid, libctx);
44 pbe = PKCS5_pbe_set_ex(pbe_nid, iter, salt, saltlen, libctx);
60 X509_SIG *PKCS8_encrypt(int pbe_nid, const EVP_CIPHER *cipher, argument
65 return PKCS8_encrypt_ex(pbe_nid, cipher, pass, passlen, salt, saltlen, iter,
H A Dp12_sbag.c201 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(int pbe_nid, argument
216 pbe_ciph = pbe_ciph_fetch = EVP_CIPHER_fetch(ctx, OBJ_nid2sn(pbe_nid), propq);
218 pbe_ciph = EVP_get_cipherbynid(pbe_nid);
222 pbe_nid = -1;
224 p8 = PKCS8_encrypt_ex(pbe_nid, pbe_ciph, pass, passlen, salt, saltlen, iter,
238 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create_pkcs8_encrypt(int pbe_nid, argument
245 return PKCS12_SAFEBAG_create_pkcs8_encrypt_ex(pbe_nid, pass, passlen,
H A Dp12_add.c92 PKCS7 *PKCS12_pack_p7encdata_ex(int pbe_nid, const char *pass, int passlen, argument
112 pbe_ciph = pbe_ciph_fetch = EVP_CIPHER_fetch(ctx, OBJ_nid2sn(pbe_nid), propq);
114 pbe_ciph = EVP_get_cipherbynid(pbe_nid);
120 pbe = PKCS5_pbe_set_ex(pbe_nid, iter, salt, saltlen, ctx);
146 PKCS7 *PKCS12_pack_p7encdata(int pbe_nid, const char *pass, int passlen, argument
150 return PKCS12_pack_p7encdata_ex(pbe_nid, pass, passlen, salt, saltlen,
H A Dp12_npas.c62 int i, bagnid, pbe_nid = 0, pbe_iter = 0, pbe_saltlen = 0; local
82 &pbe_nid, &pbe_iter, &pbe_saltlen))
95 p7new = PKCS12_pack_p7encdata(pbe_nid, newpass, -1, NULL,
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/evp/
H A Devp_pbe.c23 int pbe_nid; member in struct:evp_pbe_st
144 return pbe1->pbe_nid - pbe2->pbe_nid;
155 return (*a)->pbe_nid - (*b)->pbe_nid;
160 int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid, argument
175 pbe_tmp->pbe_nid = pbe_nid;
209 int EVP_PBE_find(int type, int pbe_nid, argument
214 if (pbe_nid
[all...]
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/evp/
H A Devp_pbe.c26 int pbe_nid; member in struct:evp_pbe_st
176 return pbe1->pbe_nid - pbe2->pbe_nid;
187 return (*a)->pbe_nid - (*b)->pbe_nid;
192 int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid, argument
207 pbe_tmp->pbe_nid = pbe_nid;
241 int EVP_PBE_find_ex(int type, int pbe_nid, int *pcnid, int *pmnid, argument
246 if (pbe_nid
272 EVP_PBE_find(int type, int pbe_nid, int *pcnid, int *pmnid, EVP_PBE_KEYGEN **pkeygen) argument
[all...]
/netbsd-current/crypto/external/bsd/openssl.old/dist/apps/
H A Dpkcs8.c77 int informat = FORMAT_PEM, outformat = FORMAT_PEM, topk8 = 0, pbe_nid = -1; local
130 pbe_nid = OBJ_txt2nid(opt_arg());
131 if (pbe_nid == NID_undef) {
138 pbe_nid = OBJ_txt2nid(opt_arg());
139 if (!EVP_PBE_find(EVP_PBE_TYPE_PRF, pbe_nid, NULL, NULL, 0)) {
194 if ((pbe_nid == -1) && cipher == NULL)
233 pbe_nid);
235 pbe = PKCS5_pbe_set(pbe_nid, iter, NULL, 0);
/netbsd-current/crypto/external/bsd/openssl/dist/apps/
H A Dpkcs8.c86 int informat = FORMAT_UNDEF, outformat = FORMAT_PEM, topk8 = 0, pbe_nid = -1; local
142 pbe_nid = OBJ_txt2nid(opt_arg());
143 if (pbe_nid == NID_undef) {
150 pbe_nid = OBJ_txt2nid(opt_arg());
151 if (!EVP_PBE_find(EVP_PBE_TYPE_PRF, pbe_nid, NULL, NULL, 0)) {
214 if ((pbe_nid == -1) && cipher == NULL)
254 pbe_nid);
256 pbe = PKCS5_pbe_set(pbe_nid, iter, NULL, 0);
/netbsd-current/crypto/external/bsd/openssl.old/dist/include/openssl/
H A Dpkcs12.h102 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,
H A Dcms.h194 int pbe_nid,
H A Devp.h1122 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,
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/cms/
H A Dcms_pwri.c40 int pbe_nid,
60 if (pbe_nid <= 0)
61 pbe_nid = NID_id_pbkdf2;
38 CMS_add0_recipient_password(CMS_ContentInfo *cms, int iter, int wrap_nid, int pbe_nid, unsigned char *pass, ossl_ssize_t passlen, const EVP_CIPHER *kekciph) argument
/netbsd-current/crypto/external/bsd/openssl/dist/crypto/cms/
H A Dcms_pwri.c41 int pbe_nid,
66 if (pbe_nid <= 0)
67 pbe_nid = NID_id_pbkdf2;
39 CMS_add0_recipient_password(CMS_ContentInfo *cms, int iter, int wrap_nid, int pbe_nid, unsigned char *pass, ossl_ssize_t passlen, const EVP_CIPHER *kekciph) argument
/netbsd-current/crypto/external/bsd/openssl/dist/include/openssl/
H A Devp.h1535 int EVP_PBE_alg_add_type(int pbe_type, int pbe_nid, int cipher_nid,
1539 int EVP_PBE_find(int type, int pbe_nid, int *pcnid, int *pmnid,
1541 int EVP_PBE_find_ex(int type, int pbe_nid, int *pcnid, int *pmnid,

Completed in 188 milliseconds