Home
last modified time | relevance | path

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

12

/netbsd/crypto/external/bsd/openssl.old/dist/crypto/pem/
H A Dpem_pk8.c68 PKCS8_PRIV_KEY_INFO *p8inf; in do_pk8pkey() local
72 if ((p8inf = EVP_PKEY2PKCS8(x)) == NULL) { in do_pk8pkey()
84 PKCS8_PRIV_KEY_INFO_free(p8inf); in do_pk8pkey()
93 PKCS8_PRIV_KEY_INFO_free(p8inf); in do_pk8pkey()
104 ret = i2d_PKCS8_PRIV_KEY_INFO_bio(bp, p8inf); in do_pk8pkey()
107 PKCS8_PRIV_KEY_INFO_free(p8inf); in do_pk8pkey()
115 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in d2i_PKCS8PrivateKey_bio() local
132 p8inf = PKCS8_decrypt(p8, psbuf, klen); in d2i_PKCS8PrivateKey_bio()
135 if (!p8inf) in d2i_PKCS8PrivateKey_bio()
137 ret = EVP_PKCS82PKEY(p8inf); in d2i_PKCS8PrivateKey_bio()
[all …]
H A Dpem_pkey.c41 PKCS8_PRIV_KEY_INFO *p8inf; in PEM_read_bio_PrivateKey() local
42 p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, &p, len); in PEM_read_bio_PrivateKey()
43 if (!p8inf) in PEM_read_bio_PrivateKey()
45 ret = EVP_PKCS82PKEY(p8inf); in PEM_read_bio_PrivateKey()
50 PKCS8_PRIV_KEY_INFO_free(p8inf); in PEM_read_bio_PrivateKey()
52 PKCS8_PRIV_KEY_INFO *p8inf; in PEM_read_bio_PrivateKey() local
68 p8inf = PKCS8_decrypt(p8, psbuf, klen); in PEM_read_bio_PrivateKey()
71 if (!p8inf) in PEM_read_bio_PrivateKey()
73 ret = EVP_PKCS82PKEY(p8inf); in PEM_read_bio_PrivateKey()
78 PKCS8_PRIV_KEY_INFO_free(p8inf); in PEM_read_bio_PrivateKey()
/netbsd/crypto/external/bsd/openssl/dist/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()
98 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe) in PKCS8_set0_pbe() argument
100 return PKCS8_set0_pbe_ex(pass, passlen, p8inf, pbe, NULL, NULL); in PKCS8_set0_pbe()
H A Dp12_sbag.c206 PKCS8_PRIV_KEY_INFO *p8inf, in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex() argument
225 p8inf, ctx, propq); in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex()
243 PKCS8_PRIV_KEY_INFO *p8inf) in PKCS12_SAFEBAG_create_pkcs8_encrypt() argument
246 salt, saltlen, iter, p8inf, in PKCS12_SAFEBAG_create_pkcs8_encrypt()
/netbsd/crypto/external/bsd/openssl/dist/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()
/netbsd/crypto/external/bsd/openssl.old/dist/apps/
H A Dpkcs8.c66 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in pkcs8_main() local
208 if ((p8inf = EVP_PKEY2PKCS8(pkey)) == NULL) { in pkcs8_main()
216 PEM_write_bio_PKCS8_PRIV_KEY_INFO(out, p8inf); in pkcs8_main()
218 i2d_PKCS8_PRIV_KEY_INFO_bio(out, p8inf); in pkcs8_main()
258 p8 = PKCS8_set0_pbe(p8pass, strlen(p8pass), p8inf, pbe); in pkcs8_main()
282 p8inf = PEM_read_bio_PKCS8_PRIV_KEY_INFO(in, NULL, NULL, NULL); in pkcs8_main()
284 p8inf = d2i_PKCS8_PRIV_KEY_INFO_bio(in, NULL); in pkcs8_main()
318 p8inf = PKCS8_decrypt(p8, p8pass, strlen(p8pass)); in pkcs8_main()
321 if (p8inf == NULL) { in pkcs8_main()
327 if ((pkey = EVP_PKCS82PKEY(p8inf)) == NULL) { in pkcs8_main()
[all …]
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/x509/
H A Dx_all.c456 p8inf); in i2d_PKCS8_PRIV_KEY_INFO_fp()
461 PKCS8_PRIV_KEY_INFO *p8inf; in i2d_PKCS8PrivateKeyInfo_fp() local
463 p8inf = EVP_PKEY2PKCS8(key); in i2d_PKCS8PrivateKeyInfo_fp()
464 if (!p8inf) in i2d_PKCS8PrivateKeyInfo_fp()
466 ret = i2d_PKCS8_PRIV_KEY_INFO_fp(fp, p8inf); in i2d_PKCS8PrivateKeyInfo_fp()
467 PKCS8_PRIV_KEY_INFO_free(p8inf); in i2d_PKCS8PrivateKeyInfo_fp()
503 p8inf); in i2d_PKCS8_PRIV_KEY_INFO_bio()
508 PKCS8_PRIV_KEY_INFO *p8inf; in i2d_PKCS8PrivateKeyInfo_bio() local
510 p8inf = EVP_PKEY2PKCS8(key); in i2d_PKCS8PrivateKeyInfo_bio()
511 if (!p8inf) in i2d_PKCS8PrivateKeyInfo_bio()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/apps/
H A Dpkcs8.c75 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in pkcs8_main() local
229 if ((p8inf = EVP_PKEY2PKCS8(pkey)) == NULL) { in pkcs8_main()
237 PEM_write_bio_PKCS8_PRIV_KEY_INFO(out, p8inf); in pkcs8_main()
239 i2d_PKCS8_PRIV_KEY_INFO_bio(out, p8inf); in pkcs8_main()
279 p8 = PKCS8_set0_pbe(p8pass, strlen(p8pass), p8inf, pbe); in pkcs8_main()
303 p8inf = PEM_read_bio_PKCS8_PRIV_KEY_INFO(in, NULL, NULL, NULL); in pkcs8_main()
305 p8inf = d2i_PKCS8_PRIV_KEY_INFO_bio(in, NULL); in pkcs8_main()
339 p8inf = PKCS8_decrypt(p8, p8pass, strlen(p8pass)); in pkcs8_main()
342 if (p8inf == NULL) { in pkcs8_main()
348 if ((pkey = EVP_PKCS82PKEY(p8inf)) == NULL) { in pkcs8_main()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/crypto/x509/
H A Dx_all.c661 p8inf); in i2d_PKCS8_PRIV_KEY_INFO_fp()
666 PKCS8_PRIV_KEY_INFO *p8inf; in i2d_PKCS8PrivateKeyInfo_fp() local
669 p8inf = EVP_PKEY2PKCS8(key); in i2d_PKCS8PrivateKeyInfo_fp()
670 if (p8inf == NULL) in i2d_PKCS8PrivateKeyInfo_fp()
672 ret = i2d_PKCS8_PRIV_KEY_INFO_fp(fp, p8inf); in i2d_PKCS8PrivateKeyInfo_fp()
673 PKCS8_PRIV_KEY_INFO_free(p8inf); in i2d_PKCS8PrivateKeyInfo_fp()
725 p8inf); in i2d_PKCS8_PRIV_KEY_INFO_bio()
730 PKCS8_PRIV_KEY_INFO *p8inf; in i2d_PKCS8PrivateKeyInfo_bio() local
733 p8inf = EVP_PKEY2PKCS8(key); in i2d_PKCS8PrivateKeyInfo_bio()
734 if (p8inf == NULL) in i2d_PKCS8PrivateKeyInfo_bio()
[all …]
/netbsd/crypto/external/bsd/openssl/dist/providers/implementations/encode_decode/
H A Ddecode_epki2pki.c68 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in epki2pki_decode() local
123 p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, &pder, der_len); in epki2pki_decode()
126 if (p8inf != NULL && PKCS8_pkey_get0(NULL, NULL, NULL, &alg, p8inf)) { in epki2pki_decode()
148 PKCS8_PRIV_KEY_INFO_free(p8inf); in epki2pki_decode()
H A Ddecode_der2key.c98 typedef void *key_from_pkcs8_t(const PKCS8_PRIV_KEY_INFO *p8inf,
104 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in der2key_decode_p8() local
108 if ((p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, input_der, input_der_len)) != NULL in der2key_decode_p8()
109 && PKCS8_pkey_get0(NULL, NULL, NULL, &alg, p8inf) in der2key_decode_p8()
111 key = key_from_pkcs8(p8inf, PROV_LIBCTX_OF(ctx->provctx), NULL); in der2key_decode_p8()
112 PKCS8_PRIV_KEY_INFO_free(p8inf); in der2key_decode_p8()
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/pkcs12/
H A Dp12_p8e.c18 PKCS8_PRIV_KEY_INFO *p8inf) in PKCS8_encrypt() argument
35 p8 = PKCS8_set0_pbe(pass, passlen, p8inf, pbe); in PKCS8_encrypt()
45 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe) in PKCS8_set0_pbe() argument
52 pass, passlen, p8inf, 1); in PKCS8_set0_pbe()
H A Dp12_sbag.c142 PKCS8_PRIV_KEY_INFO *p8inf) in PKCS12_SAFEBAG_create_pkcs8_encrypt() argument
153 p8inf); in PKCS12_SAFEBAG_create_pkcs8_encrypt()
/netbsd/crypto/external/bsd/openssl/dist/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>.
/netbsd/crypto/external/bsd/openssl/dist/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.h35 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,
/netbsd/crypto/external/bsd/openssl/dist/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()
/netbsd/crypto/external/bsd/openssl/dist/crypto/dh/
H A Ddh_backend.c187 DH *ossl_dh_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, in ossl_dh_key_from_pkcs8() argument
200 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8inf)) in ossl_dh_key_from_pkcs8()
/netbsd/crypto/external/bsd/openssl/dist/crypto/ec/
H A Decx_backend.c230 ECX_KEY *ossl_ecx_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf, in ossl_ecx_key_from_pkcs8() argument
239 if (!PKCS8_pkey_get0(NULL, &p, &plen, &palg, p8inf)) in ossl_ecx_key_from_pkcs8()
/netbsd/crypto/external/bsd/openssl.old/dist/include/openssl/
H A Dpkcs12.h107 PKCS8_PRIV_KEY_INFO *p8inf);
119 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);
/netbsd/crypto/external/bsd/openssl/dist/include/openssl/
H A Dpkcs12.h.in127 PKCS8_PRIV_KEY_INFO *p8inf);
133 PKCS8_PRIV_KEY_INFO *p8inf,
158 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);
160 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe,
/netbsd/external/bsd/openldap/dist/servers/slapd/overlays/
H A Dautoca.c306 PKCS8_PRIV_KEY_INFO *p8inf; in autoca_gencert() local
307 if (( p8inf = EVP_PKEY2PKCS8( evpk )) == NULL ) in autoca_gencert()
309 args->derpkey.bv_len = i2d_PKCS8_PRIV_KEY_INFO( p8inf, NULL ); in autoca_gencert()
312 i2d_PKCS8_PRIV_KEY_INFO( p8inf, &pp ); in autoca_gencert()
313 PKCS8_PRIV_KEY_INFO_free( p8inf ); in autoca_gencert()

12