Home
last modified time | relevance | path

Searched refs:PKCS8_PRIV_KEY_INFO (Results 1 – 25 of 61) sorted by relevance

123

/freebsd/crypto/openssl/crypto/asn1/
H A Dp8_pkey.c22 PKCS8_PRIV_KEY_INFO *key = (PKCS8_PRIV_KEY_INFO *)*pval; in pkey_cb()
29 ASN1_SEQUENCE_cb(PKCS8_PRIV_KEY_INFO, pkey_cb) = {
30 ASN1_SIMPLE(PKCS8_PRIV_KEY_INFO, version, ASN1_INTEGER),
31 ASN1_SIMPLE(PKCS8_PRIV_KEY_INFO, pkeyalg, X509_ALGOR),
32 ASN1_SIMPLE(PKCS8_PRIV_KEY_INFO, pkey, ASN1_OCTET_STRING),
33 ASN1_IMP_SET_OF_OPT(PKCS8_PRIV_KEY_INFO, attributes, X509_ATTRIBUTE, 0)
34 } ASN1_SEQUENCE_END_cb(PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO)
36 IMPLEMENT_ASN1_FUNCTIONS(PKCS8_PRIV_KEY_INFO)
38 int PKCS8_pkey_set0(PKCS8_PRIV_KEY_INFO *priv, ASN1_OBJECT *aobj,
55 const X509_ALGOR **pa, const PKCS8_PRIV_KEY_INFO *p8) in PKCS8_pkey_get0()
[all …]
H A Dd2i_pr.c108 PKCS8_PRIV_KEY_INFO *p8 = NULL; in ossl_d2i_PrivateKey_legacy()
190 PKCS8_PRIV_KEY_INFO *p8 = d2i_PKCS8_PRIV_KEY_INFO(NULL, &p, length); in d2i_AutoPrivateKey_legacy()
/freebsd/crypto/openssl/doc/man3/
H A DPKCS8_pkey_add1_attr.pod12 PKCS8_pkey_get0_attrs(const PKCS8_PRIV_KEY_INFO *p8);
13 int PKCS8_pkey_add1_attr(PKCS8_PRIV_KEY_INFO *p8, X509_ATTRIBUTE *attr);
14 int PKCS8_pkey_add1_attr_by_NID(PKCS8_PRIV_KEY_INFO *p8, int nid, int type,
16 int PKCS8_pkey_add1_attr_by_OBJ(PKCS8_PRIV_KEY_INFO *p8, const ASN1_OBJECT *obj,
22 the passed const PKCS8_PRIV_KEY_INFO structure B<p8>.
25 existing PKCS8_PRIV_KEY_INFO structure B<p8>.
29 PKCS8_PRIV_KEY_INFO structure B<p8>.
H A DPKCS8_encrypt.pod12 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt(const X509_SIG *p8, const char *pass,
14 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt_ex(const X509_SIG *p8, const char *pass,
19 int saltlen, int iter, PKCS8_PRIV_KEY_INFO *p8);
22 int saltlen, int iter, PKCS8_PRIV_KEY_INFO *p8,
25 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);
27 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe,
53 PKCS8_decrypt() and PKCS8_decrypt_ex() return a B<PKCS8_PRIV_KEY_INFO> or NULL
H A DEVP_PKEY2PKCS8.pod12 PKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(const EVP_PKEY *pkey);
13 EVP_PKEY *EVP_PKCS82PKEY(const PKCS8_PRIV_KEY_INFO *p8);
14 EVP_PKEY *EVP_PKCS82PKEY_ex(const PKCS8_PRIV_KEY_INFO *p8, OSSL_LIB_CTX *libctx,
H A DPKCS12_SAFEBAG_create_cert.pod19 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_p8inf(PKCS8_PRIV_KEY_INFO *p8);
26 PKCS8_PRIV_KEY_INFO *p8inf);
32 PKCS8_PRIV_KEY_INFO *p8inf,
H A DPKCS12_decrypt_skey.pod12 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag,
14 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey_ex(const PKCS12_SAFEBAG *bag,
H A DEVP_PKEY_ASN1_METHOD.pod58 const PKCS8_PRIV_KEY_INFO
60 int (*priv_encode) (PKCS8_PRIV_KEY_INFO *p8,
180 int (*priv_decode) (EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf);
181 int (*priv_encode) (PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk);
186 encode B<PKCS8_PRIV_KEY_INFO> form private key to / from B<pk>.
/freebsd/crypto/openssl/include/openssl/
H A Dpkcs12.h117 ASN1_TYPE *PKCS8_get_attr(PKCS8_PRIV_KEY_INFO *p8, int attr_nid);
137 const PKCS8_PRIV_KEY_INFO *PKCS12_SAFEBAG_get0_p8inf(const PKCS12_SAFEBAG *bag);
143 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_p8inf(PKCS8_PRIV_KEY_INFO *p8);
150 PKCS8_PRIV_KEY_INFO *p8inf);
156 PKCS8_PRIV_KEY_INFO *p8inf,
162 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt(const X509_SIG *p8, const char *pass,
164 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt_ex(const X509_SIG *p8, const char *pass,
167 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag,
169 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey_ex(const PKCS12_SAFEBAG *bag,
175 int saltlen, int iter, PKCS8_PRIV_KEY_INFO *p8);
[all …]
H A Dpkcs12.h.in94 ASN1_TYPE *PKCS8_get_attr(PKCS8_PRIV_KEY_INFO *p8, int attr_nid);
114 const PKCS8_PRIV_KEY_INFO *PKCS12_SAFEBAG_get0_p8inf(const PKCS12_SAFEBAG *bag);
120 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_p8inf(PKCS8_PRIV_KEY_INFO *p8);
127 PKCS8_PRIV_KEY_INFO *p8inf);
133 PKCS8_PRIV_KEY_INFO *p8inf,
139 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt(const X509_SIG *p8, const char *pass,
141 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt_ex(const X509_SIG *p8, const char *pass,
144 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag,
146 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey_ex(const PKCS12_SAFEBAG *bag,
152 int saltlen, int iter, PKCS8_PRIV_KEY_INFO *p8);
[all …]
H A Dx509.h597 PKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp,
598 PKCS8_PRIV_KEY_INFO **p8inf);
599 int i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, const PKCS8_PRIV_KEY_INFO *p8inf);
645 PKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp,
646 PKCS8_PRIV_KEY_INFO **p8inf);
647 int i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, const PKCS8_PRIV_KEY_INFO *p8inf);
1242 DECLARE_ASN1_FUNCTIONS(PKCS8_PRIV_KEY_INFO)
1244 EVP_PKEY *EVP_PKCS82PKEY(const PKCS8_PRIV_KEY_INFO *p8);
1245 EVP_PKEY *EVP_PKCS82PKEY_ex(const PKCS8_PRIV_KEY_INFO *p8, OSSL_LIB_CTX *libctx,
1247 PKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(const EVP_PKEY *pkey);
[all …]
H A Dx509.h.in403 PKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp,
404 PKCS8_PRIV_KEY_INFO **p8inf);
405 int i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, const PKCS8_PRIV_KEY_INFO *p8inf);
451 PKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp,
452 PKCS8_PRIV_KEY_INFO **p8inf);
453 int i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, const PKCS8_PRIV_KEY_INFO *p8inf);
1048 DECLARE_ASN1_FUNCTIONS(PKCS8_PRIV_KEY_INFO)
1050 EVP_PKEY *EVP_PKCS82PKEY(const PKCS8_PRIV_KEY_INFO *p8);
1051 EVP_PKEY *EVP_PKCS82PKEY_ex(const PKCS8_PRIV_KEY_INFO *p8, OSSL_LIB_CTX *libctx,
1053 PKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(const EVP_PKEY *pkey);
[all …]
/freebsd/crypto/openssl/crypto/pkcs12/
H A Dp12_p8e.c19 PKCS8_PRIV_KEY_INFO *p8inf, in PKCS8_encrypt_ex()
63 PKCS8_PRIV_KEY_INFO *p8inf) in PKCS8_encrypt()
70 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe, in PKCS8_set0_pbe_ex()
77 PKCS12_item_i2d_encrypt_ex(pbe, ASN1_ITEM_rptr(PKCS8_PRIV_KEY_INFO), in PKCS8_set0_pbe_ex()
98 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe) in PKCS8_set0_pbe()
H A Dp12_p8d.c14 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt_ex(const X509_SIG *p8, const char *pass, in PKCS8_decrypt_ex()
23 ASN1_ITEM_rptr(PKCS8_PRIV_KEY_INFO), pass, in PKCS8_decrypt_ex()
27 PKCS8_PRIV_KEY_INFO *PKCS8_decrypt(const X509_SIG *p8, const char *pass, in PKCS8_decrypt()
H A Dp12_sbag.c28 ASN1_TYPE *PKCS8_get_attr(PKCS8_PRIV_KEY_INFO *p8, int attr_nid) in PKCS8_get_attr()
33 const PKCS8_PRIV_KEY_INFO *PKCS12_SAFEBAG_get0_p8inf(const PKCS12_SAFEBAG *bag) in PKCS12_SAFEBAG_get0_p8inf()
172 PKCS12_SAFEBAG *PKCS12_SAFEBAG_create0_p8inf(PKCS8_PRIV_KEY_INFO *p8) in PKCS12_SAFEBAG_create0_p8inf()
206 PKCS8_PRIV_KEY_INFO *p8inf, in PKCS12_SAFEBAG_create_pkcs8_encrypt_ex()
243 PKCS8_PRIV_KEY_INFO *p8inf) in PKCS12_SAFEBAG_create_pkcs8_encrypt()
H A Dp12_add.c172 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey_ex(const PKCS12_SAFEBAG *bag, in PKCS12_decrypt_skey_ex()
179 PKCS8_PRIV_KEY_INFO *PKCS12_decrypt_skey(const PKCS12_SAFEBAG *bag, in PKCS12_decrypt_skey()
H A Dp12_attr.c29 int PKCS8_add_keyusage(PKCS8_PRIV_KEY_INFO *p8, int usage) in PKCS8_add_keyusage()
H A Dp12_asn.c52 ADB_ENTRY(NID_keyBag, ASN1_EXP(PKCS12_SAFEBAG, value.keybag, PKCS8_PRIV_KEY_INFO, 0)),
/freebsd/crypto/openssl/crypto/evp/
H A Devp_pkey.c24 EVP_PKEY *evp_pkcs82pkey_legacy(const PKCS8_PRIV_KEY_INFO *p8, OSSL_LIB_CTX *libctx, in evp_pkcs82pkey_legacy()
66 EVP_PKEY *EVP_PKCS82PKEY_ex(const PKCS8_PRIV_KEY_INFO *p8, OSSL_LIB_CTX *libctx, in EVP_PKCS82PKEY_ex()
96 EVP_PKEY *EVP_PKCS82PKEY(const PKCS8_PRIV_KEY_INFO *p8) in EVP_PKCS82PKEY()
103 PKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(const EVP_PKEY *pkey) in EVP_PKEY2PKCS8()
105 PKCS8_PRIV_KEY_INFO *p8 = NULL; in EVP_PKEY2PKCS8()
/freebsd/crypto/openssl/crypto/x509/
H A Dx_all.c653 PKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, in d2i_PKCS8_PRIV_KEY_INFO_fp()
654 PKCS8_PRIV_KEY_INFO **p8inf) in d2i_PKCS8_PRIV_KEY_INFO_fp()
656 return ASN1_d2i_fp_of(PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO_new, in d2i_PKCS8_PRIV_KEY_INFO_fp()
660 int i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, const PKCS8_PRIV_KEY_INFO *p8inf) in i2d_PKCS8_PRIV_KEY_INFO_fp()
662 return ASN1_i2d_fp_of(PKCS8_PRIV_KEY_INFO, i2d_PKCS8_PRIV_KEY_INFO, fp, in i2d_PKCS8_PRIV_KEY_INFO_fp()
668 PKCS8_PRIV_KEY_INFO *p8inf; in i2d_PKCS8PrivateKeyInfo_fp()
717 PKCS8_PRIV_KEY_INFO *d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, in d2i_PKCS8_PRIV_KEY_INFO_bio()
718 PKCS8_PRIV_KEY_INFO **p8inf) in d2i_PKCS8_PRIV_KEY_INFO_bio()
720 return ASN1_d2i_bio_of(PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO_new, in d2i_PKCS8_PRIV_KEY_INFO_bio()
724 int i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, const PKCS8_PRIV_KEY_INFO *p8inf) in i2d_PKCS8_PRIV_KEY_INFO_bio()
[all …]
/freebsd/crypto/openssl/crypto/pem/
H A Dpem_pk8.c128 PKCS8_PRIV_KEY_INFO *p8inf; in do_pk8pkey()
172 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in d2i_PKCS8PrivateKey_bio()
272 IMPLEMENT_PEM_rw(PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO, PEM_STRING_PKCS8INF,
273 PKCS8_PRIV_KEY_INFO)
/freebsd/crypto/openssl/include/crypto/
H A Dasn1.h34 int (*priv_decode) (EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf);
35 int (*priv_encode) (PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk);
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,
H A Dec.h86 EC_KEY *ossl_ec_key_from_pkcs8(const PKCS8_PRIV_KEY_INFO *p8inf,

123