Home
last modified time | relevance | path

Searched refs:pbe (Results 1 – 13 of 13) sorted by relevance

/openssl/crypto/pkcs12/
H A Dp12_p8e.c23 X509_ALGOR *pbe; in PKCS8_encrypt_ex() local
30 pbe = PKCS5_pbe2_set_iv_ex(cipher, iter, salt, saltlen, NULL, -1, in PKCS8_encrypt_ex()
40 pbe = PKCS5_pbe2_set_iv_ex(cipher, iter, salt, saltlen, NULL, in PKCS8_encrypt_ex()
44 pbe = PKCS5_pbe_set_ex(pbe_nid, iter, salt, saltlen, libctx); in PKCS8_encrypt_ex()
47 if (pbe == NULL) { in PKCS8_encrypt_ex()
51 p8 = PKCS8_set0_pbe_ex(pass, passlen, p8inf, pbe, libctx, propq); in PKCS8_encrypt_ex()
53 X509_ALGOR_free(pbe); in PKCS8_encrypt_ex()
70 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe, in PKCS8_set0_pbe_ex() argument
90 p8->algor = pbe; in PKCS8_set0_pbe_ex()
97 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe) in PKCS8_set0_pbe() argument
[all …]
H A Dp12_crpt.c28 PBEPARAM *pbe; in PKCS12_PBE_keyivgen_ex() local
39 pbe = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBEPARAM), param); in PKCS12_PBE_keyivgen_ex()
40 if (pbe == NULL) { in PKCS12_PBE_keyivgen_ex()
45 if (pbe->iter == NULL) in PKCS12_PBE_keyivgen_ex()
48 iter = ASN1_INTEGER_get(pbe->iter); in PKCS12_PBE_keyivgen_ex()
49 salt = pbe->salt->data; in PKCS12_PBE_keyivgen_ex()
50 saltlen = pbe->salt->length; in PKCS12_PBE_keyivgen_ex()
56 PBEPARAM_free(pbe); in PKCS12_PBE_keyivgen_ex()
65 PBEPARAM_free(pbe); in PKCS12_PBE_keyivgen_ex()
71 PBEPARAM_free(pbe); in PKCS12_PBE_keyivgen_ex()
H A Dp12_npas.c201 PBEPARAM *pbe = NULL; in alg_get() local
240 pbe = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBEPARAM), alg->parameter); in alg_get()
241 if (pbe == NULL) in alg_get()
244 *piter = ASN1_INTEGER_get(pbe->iter); in alg_get()
245 *psaltlen = pbe->salt->length; in alg_get()
256 if (pbe != NULL) in alg_get()
257 PBEPARAM_free(pbe); in alg_get()
H A Dp12_add.c100 X509_ALGOR *pbe; in PKCS12_pack_p7encdata_ex() local
120 pbe = PKCS5_pbe2_set_iv_ex(pbe_ciph, iter, salt, saltlen, NULL, -1, ctx); in PKCS12_pack_p7encdata_ex()
122 pbe = PKCS5_pbe_set_ex(pbe_nid, iter, salt, saltlen, ctx); in PKCS12_pack_p7encdata_ex()
125 if (pbe == NULL) { in PKCS12_pack_p7encdata_ex()
130 p7->d.encrypted->enc_data->algorithm = pbe; in PKCS12_pack_p7encdata_ex()
133 PKCS12_item_i2d_encrypt_ex(pbe, ASN1_ITEM_rptr(PKCS12_SAFEBAGS), pass, in PKCS12_pack_p7encdata_ex()
/openssl/crypto/asn1/
H A Dp5_pbe.c32 PBEPARAM *pbe = NULL; variable
36 pbe = PBEPARAM_new();
37 if (pbe == NULL) {
44 if (!ASN1_INTEGER_set(pbe->iter, iter)) {
61 ASN1_STRING_set0(pbe->salt, sstr, saltlen);
64 if (!ASN1_item_pack(pbe, ASN1_ITEM_rptr(PBEPARAM), &pbe_str)) {
69 PBEPARAM_free(pbe);
70 pbe = NULL;
77 PBEPARAM_free(pbe);
/openssl/crypto/evp/
H A Dp5_crpt.c34 PBEPARAM *pbe = NULL; in PKCS5_PBE_keyivgen_ex() local
51 pbe = ASN1_TYPE_unpack_sequence(ASN1_ITEM_rptr(PBEPARAM), param); in PKCS5_PBE_keyivgen_ex()
52 if (pbe == NULL) { in PKCS5_PBE_keyivgen_ex()
68 if (pbe->iter == NULL) in PKCS5_PBE_keyivgen_ex()
71 iter = ASN1_INTEGER_get(pbe->iter); in PKCS5_PBE_keyivgen_ex()
72 salt = pbe->salt->data; in PKCS5_PBE_keyivgen_ex()
73 saltlen = pbe->salt->length; in PKCS5_PBE_keyivgen_ex()
109 PBEPARAM_free(pbe); in PKCS5_PBE_keyivgen_ex()
H A Devp_pbe.c289 static void free_evp_pbe_ctl(EVP_PBE_CTL *pbe) in free_evp_pbe_ctl() argument
291 OPENSSL_free(pbe); in free_evp_pbe_ctl()
/openssl/apps/
H A Dpkcs8.c253 X509_ALGOR *pbe; in pkcs8_main() local
257 pbe = PKCS5_pbe2_set_scrypt(cipher, NULL, saltlen, NULL, in pkcs8_main()
261 pbe = PKCS5_pbe2_set_iv(cipher, iter, NULL, saltlen, NULL, in pkcs8_main()
264 pbe = PKCS5_pbe_set(pbe_nid, iter, NULL, saltlen); in pkcs8_main()
266 if (pbe == NULL) { in pkcs8_main()
279 X509_ALGOR_free(pbe); in pkcs8_main()
287 p8 = PKCS8_set0_pbe(p8pass, strlen(p8pass), p8inf, pbe); in pkcs8_main()
289 X509_ALGOR_free(pbe); in pkcs8_main()
H A Dpkcs12.c1135 PBEPARAM *pbe = NULL; in alg_print() local
1204 pbe = ASN1_item_unpack(aparam, ASN1_ITEM_rptr(PBEPARAM)); in alg_print()
1205 if (pbe == NULL) { in alg_print()
1209 BIO_printf(bio_err, ", Iteration %ld", ASN1_INTEGER_get(pbe->iter)); in alg_print()
1210 PBEPARAM_free(pbe); in alg_print()
/openssl/doc/man3/
H A DPKCS8_encrypt.pod25 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);
27 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe,
43 using the password I<pass> of length I<passlen> and parameters I<pbe>.
/openssl/include/openssl/
H A Dpkcs12.h.in164 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);
166 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe,
/openssl/crypto/objects/
H A Dobjects.txt372 !Cname pbe-WithSHA1And128BitRC4
374 !Cname pbe-WithSHA1And40BitRC4
376 !Cname pbe-WithSHA1And3_Key_TripleDES-CBC
378 !Cname pbe-WithSHA1And2_Key_TripleDES-CBC
380 !Cname pbe-WithSHA1And128BitRC2-CBC
382 !Cname pbe-WithSHA1And40BitRC2-CBC
/openssl/crypto/err/
H A Dopenssl.txt812 EVP_R_UNKNOWN_PBE_ALGORITHM:121:unknown pbe algorithm

Completed in 28 milliseconds