/openssl/crypto/pkcs12/ |
H A D | p12_p8e.c | 19 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 D | p12_sbag.c | 243 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 D | pem_pk8.c | 128 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 D | pem_pkey.c | 136 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 D | pkcs8.c | 80 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 D | decode_epki2pki.c | 93 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 D | decode_der2key.c | 101 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 D | x_all.c | 708 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 D | PKCS8_encrypt.pod | 25 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 D | PKCS12_SAFEBAG_create_cert.pod | 26 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 D | dsa_backend.c | 123 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 D | asn1.h | 34 int (*priv_decode) (EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf); 86 const PKCS8_PRIV_KEY_INFO *p8inf,
|
H A D | dsa.h | 42 DSA *ossl_dsa_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,
|
H A D | dh.h | 39 DH *ossl_dh_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,
|
H A D | ec.h | 86 EC_KEY *ossl_ec_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,
|
H A D | ecx.h | 155 ECX_KEY *ossl_ecx_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,
|
H A D | rsa.h | 89 RSA *ossl_rsa_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,
|
/openssl/crypto/dh/ |
H A D | dh_backend.c | 181 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 D | ecx_backend.c | 229 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 D | ec_backend.c | 811 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 D | pkcs12.h.in | 133 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 D | tls-provider.c | 1270 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 D | endecode_test.c | 530 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 D | rsa_backend.c | 682 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 D | e_loader_attic.c | 521 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()
|