Home
last modified time | relevance | path

Searched refs:p8inf (Results 1 – 25 of 31) sorted by relevance

12

/openssl/crypto/pkcs12/
H A Dp12_p8e.c19 PKCS8_PRIV_KEY_INFO *p8inf, in PKCS8_encrypt_ex() argument
51 p8 = PKCS8_set0_pbe_ex(pass, passlen, p8inf, pbe, libctx, propq); in PKCS8_encrypt_ex()
63 PKCS8_PRIV_KEY_INFO *p8inf) in PKCS8_encrypt() argument
66 p8inf, NULL, NULL); in PKCS8_encrypt()
70 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe, in PKCS8_set0_pbe_ex() argument
78 pass, passlen, p8inf, 1, ctx, propq); in PKCS8_set0_pbe_ex()
97 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe) in PKCS8_set0_pbe() argument
99 return PKCS8_set0_pbe_ex(pass, passlen, p8inf, pbe, NULL, NULL); in PKCS8_set0_pbe()
H A Dp12_sbag.c243 PKCS8_PRIV_KEY_INFO *p8inf, in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex() argument
262 p8inf, ctx, propq); in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex()
280 PKCS8_PRIV_KEY_INFO *p8inf) in PKCS12_SAFEBAG_create_pkcs8_encrypt() argument
283 salt, saltlen, iter, p8inf, in PKCS12_SAFEBAG_create_pkcs8_encrypt()
/openssl/crypto/pem/
H A Dpem_pk8.c128 PKCS8_PRIV_KEY_INFO *p8inf; in do_pk8pkey() local
132 if ((p8inf = EVP_PKEY2PKCS8(x)) == NULL) { in do_pk8pkey()
146 p8 = PKCS8_encrypt(nid, enc, kstr, klen, NULL, 0, 0, p8inf); in do_pk8pkey()
158 ret = i2d_PKCS8_PRIV_KEY_INFO_bio(bp, p8inf); in do_pk8pkey()
160 ret = PEM_write_bio_PKCS8_PRIV_KEY_INFO(bp, p8inf); in do_pk8pkey()
163 PKCS8_PRIV_KEY_INFO_free(p8inf); in do_pk8pkey()
172 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in d2i_PKCS8PrivateKey_bio() local
190 p8inf = PKCS8_decrypt(p8, psbuf, klen); in d2i_PKCS8PrivateKey_bio()
193 if (p8inf == NULL) in d2i_PKCS8PrivateKey_bio()
195 ret = EVP_PKCS82PKEY(p8inf); in d2i_PKCS8PrivateKey_bio()
[all …]
H A Dpem_pkey.c136 PKCS8_PRIV_KEY_INFO *p8inf; in pem_read_bio_key_legacy() local
138 if ((p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, &p, len)) == NULL) in pem_read_bio_key_legacy()
140 ret = evp_pkcs82pkey_legacy(p8inf, libctx, propq); in pem_read_bio_key_legacy()
145 PKCS8_PRIV_KEY_INFO_free(p8inf); in pem_read_bio_key_legacy()
147 PKCS8_PRIV_KEY_INFO *p8inf; in pem_read_bio_key_legacy() local
163 p8inf = PKCS8_decrypt(p8, psbuf, klen); in pem_read_bio_key_legacy()
166 if (p8inf == NULL) in pem_read_bio_key_legacy()
168 ret = evp_pkcs82pkey_legacy(p8inf, libctx, propq); in pem_read_bio_key_legacy()
173 PKCS8_PRIV_KEY_INFO_free(p8inf); in pem_read_bio_key_legacy()
/openssl/apps/
H A Dpkcs8.c80 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in pkcs8_main() local
235 if ((p8inf = EVP_PKEY2PKCS8(pkey)) == NULL) { in pkcs8_main()
245 PEM_write_bio_PKCS8_PRIV_KEY_INFO(out, p8inf); in pkcs8_main()
247 i2d_PKCS8_PRIV_KEY_INFO_bio(out, p8inf); in pkcs8_main()
287 p8 = PKCS8_set0_pbe(p8pass, strlen(p8pass), p8inf, pbe); in pkcs8_main()
311 p8inf = PEM_read_bio_PKCS8_PRIV_KEY_INFO(in, NULL, NULL, NULL); in pkcs8_main()
313 p8inf = d2i_PKCS8_PRIV_KEY_INFO_bio(in, NULL); in pkcs8_main()
347 p8inf = PKCS8_decrypt(p8, p8pass, strlen(p8pass)); in pkcs8_main()
350 if (p8inf == NULL) { in pkcs8_main()
356 if ((pkey = EVP_PKCS82PKEY(p8inf)) == NULL) { in pkcs8_main()
[all …]
/openssl/providers/implementations/encode_decode/
H A Ddecode_epki2pki.c93 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in epki2pki_decode() local
149 p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, &pder, der_len); in epki2pki_decode()
152 if (p8inf != NULL && PKCS8_pkey_get0(NULL, NULL, NULL, &alg, p8inf)) { in epki2pki_decode()
174 PKCS8_PRIV_KEY_INFO_free(p8inf); in epki2pki_decode()
H A Ddecode_der2key.c101 typedef void *key_from_pkcs8_t(const PKCS8_PRIV_KEY_INFO *p8inf,
107 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in der2key_decode_p8() local
111 if ((p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, input_der, input_der_len)) != NULL in der2key_decode_p8()
112 && PKCS8_pkey_get0(NULL, NULL, NULL, &alg, p8inf) in der2key_decode_p8()
117 key = key_from_pkcs8(p8inf, PROV_LIBCTX_OF(ctx->provctx), ctx->propq); in der2key_decode_p8()
118 PKCS8_PRIV_KEY_INFO_free(p8inf); in der2key_decode_p8()
/openssl/crypto/x509/
H A Dx_all.c708 p8inf); in i2d_PKCS8_PRIV_KEY_INFO_fp()
713 PKCS8_PRIV_KEY_INFO *p8inf; in i2d_PKCS8PrivateKeyInfo_fp() local
716 p8inf = EVP_PKEY2PKCS8(key); in i2d_PKCS8PrivateKeyInfo_fp()
717 if (p8inf == NULL) in i2d_PKCS8PrivateKeyInfo_fp()
719 ret = i2d_PKCS8_PRIV_KEY_INFO_fp(fp, p8inf); in i2d_PKCS8PrivateKeyInfo_fp()
720 PKCS8_PRIV_KEY_INFO_free(p8inf); in i2d_PKCS8PrivateKeyInfo_fp()
788 p8inf); in i2d_PKCS8_PRIV_KEY_INFO_bio()
793 PKCS8_PRIV_KEY_INFO *p8inf; in i2d_PKCS8PrivateKeyInfo_bio() local
796 p8inf = EVP_PKEY2PKCS8(key); in i2d_PKCS8PrivateKeyInfo_bio()
797 if (p8inf == NULL) in i2d_PKCS8PrivateKeyInfo_bio()
[all …]
/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,
42 PKCS8_set0_pbe() and PKCS8_set0_pbe_ex() perform encryption of the I<p8inf>
H A DPKCS12_SAFEBAG_create_cert.pod26 PKCS8_PRIV_KEY_INFO *p8inf);
32 PKCS8_PRIV_KEY_INFO *p8inf,
56 B<NID_pkcs8ShroudedKeyBag> by encrypting the supplied PKCS8 I<p8inf>.
/openssl/crypto/dsa/
H A Ddsa_backend.c123 DSA *ossl_dsa_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, in ossl_dsa_key_from_pkcs8() argument
139 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8inf)) in ossl_dsa_key_from_pkcs8()
/openssl/include/crypto/
H A Dasn1.h34 int (*priv_decode) (EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf);
86 const PKCS8_PRIV_KEY_INFO *p8inf,
H A Ddsa.h42 DSA *ossl_dsa_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,
H A Ddh.h39 DH *ossl_dh_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,
H A Dec.h86 EC_KEY *ossl_ec_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,
H A Decx.h155 ECX_KEY *ossl_ecx_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,
H A Drsa.h89 RSA *ossl_rsa_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,
/openssl/crypto/dh/
H A Ddh_backend.c181 DH *ossl_dh_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, in ossl_dh_key_from_pkcs8() argument
194 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8inf)) in ossl_dh_key_from_pkcs8()
/openssl/crypto/ec/
H A Decx_backend.c229 ECX_KEY *ossl_ecx_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, in ossl_ecx_key_from_pkcs8() argument
238 if (!PKCS8_pkey_get0(NULL, &p, &plen, &palg, p8inf)) in ossl_ecx_key_from_pkcs8()
H A Dec_backend.c811 EC_KEY *ossl_ec_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, in ossl_ec_key_from_pkcs8() argument
819 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8inf)) in ossl_ec_key_from_pkcs8()
/openssl/include/openssl/
H A Dpkcs12.h.in133 PKCS8_PRIV_KEY_INFO *p8inf);
139 PKCS8_PRIV_KEY_INFO *p8inf,
164 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);
166 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe,
/openssl/test/
H A Dtls-provider.c1270 static XORKEY *xor_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, in xor_key_from_pkcs8() argument
1279 if (!PKCS8_pkey_get0(NULL, &p, &plen, &palg, p8inf)) in xor_key_from_pkcs8()
2221 typedef void *key_from_pkcs8_t(const PKCS8_PRIV_KEY_INFO *p8inf,
2227 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in xor_der2key_decode_p8() local
2231 if ((p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, input_der, input_der_len)) != NULL in xor_der2key_decode_p8()
2232 && PKCS8_pkey_get0(NULL, NULL, NULL, &alg, p8inf) in xor_der2key_decode_p8()
2234 key = key_from_pkcs8(p8inf, PROV_XOR_LIBCTX_OF(ctx->provctx), NULL); in xor_der2key_decode_p8()
2235 PKCS8_PRIV_KEY_INFO_free(p8inf); in xor_der2key_decode_p8()
H A Dendecode_test.c530 PKCS8_PRIV_KEY_INFO *p8inf = in check_unprotected_PKCS8_DER() local
534 if (TEST_FL_ptr(p8inf)) { in check_unprotected_PKCS8_DER()
535 EVP_PKEY *pkey = EVP_PKCS82PKEY_ex(p8inf, testctx, testpropq); in check_unprotected_PKCS8_DER()
549 PKCS8_PRIV_KEY_INFO_free(p8inf); in check_unprotected_PKCS8_DER()
/openssl/crypto/rsa/
H A Drsa_backend.c682 RSA *ossl_rsa_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, in ossl_rsa_key_from_pkcs8() argument
690 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &alg, p8inf)) in ossl_rsa_key_from_pkcs8()
/openssl/engines/
H A De_loader_attic.c521 PKCS8_PRIV_KEY_INFO *p8inf = in try_decode_PrivateKey() local
525 if (p8inf != NULL) in try_decode_PrivateKey()
526 pkey = EVP_PKCS82PKEY_ex(p8inf, libctx, propq); in try_decode_PrivateKey()
527 PKCS8_PRIV_KEY_INFO_free(p8inf); in try_decode_PrivateKey()

Completed in 65 milliseconds

12