Home
last modified time | relevance | path

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

/third_party/openssl/crypto/pem/
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()
90 p8 = PKCS8_encrypt(nid, enc, kstr, klen, NULL, 0, 0, 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()
106 ret = PEM_write_bio_PKCS8_PRIV_KEY_INFO(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()
[all …]
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()
/third_party/openssl/apps/
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 …]
/third_party/openssl/crypto/x509/
Dx_all.c438 PKCS8_PRIV_KEY_INFO **p8inf) in d2i_PKCS8_PRIV_KEY_INFO_fp() argument
441 d2i_PKCS8_PRIV_KEY_INFO, fp, p8inf); in d2i_PKCS8_PRIV_KEY_INFO_fp()
444 int i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO *p8inf) in i2d_PKCS8_PRIV_KEY_INFO_fp() argument
447 p8inf); in i2d_PKCS8_PRIV_KEY_INFO_fp()
452 PKCS8_PRIV_KEY_INFO *p8inf; in i2d_PKCS8PrivateKeyInfo_fp() local
454 p8inf = EVP_PKEY2PKCS8(key); in i2d_PKCS8PrivateKeyInfo_fp()
455 if (!p8inf) in i2d_PKCS8PrivateKeyInfo_fp()
457 ret = i2d_PKCS8_PRIV_KEY_INFO_fp(fp, p8inf); in i2d_PKCS8PrivateKeyInfo_fp()
458 PKCS8_PRIV_KEY_INFO_free(p8inf); in i2d_PKCS8PrivateKeyInfo_fp()
485 PKCS8_PRIV_KEY_INFO **p8inf) in d2i_PKCS8_PRIV_KEY_INFO_bio() argument
[all …]
/third_party/openssl/crypto/pkcs12/
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()
Dp12_sbag.c142 PKCS8_PRIV_KEY_INFO *p8inf) in PKCS12_SAFEBAG_create_pkcs8_encrypt() argument
153 p8inf); in PKCS12_SAFEBAG_create_pkcs8_encrypt()
/third_party/openssl/include/openssl/
Dpkcs12.h107 PKCS8_PRIV_KEY_INFO *p8inf);
119 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);
Dx509.h422 PKCS8_PRIV_KEY_INFO **p8inf);
423 int i2d_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO *p8inf);
460 PKCS8_PRIV_KEY_INFO **p8inf);
461 int i2d_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO *p8inf);
Devp.h1179 *p8inf),
/third_party/openssl/include/crypto/
Dasn1.h25 int (*priv_decode) (EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf);
/third_party/openssl/crypto/store/
Dloader_file.c414 PKCS8_PRIV_KEY_INFO *p8inf = in try_decode_PrivateKey() local
418 if (p8inf != NULL) in try_decode_PrivateKey()
419 pkey = EVP_PKCS82PKEY(p8inf); in try_decode_PrivateKey()
420 PKCS8_PRIV_KEY_INFO_free(p8inf); in try_decode_PrivateKey()
/third_party/openssl/test/
Devp_extra_test.c1158 PKCS8_PRIV_KEY_INFO *p8inf = NULL; in test_EVP_PKCS82PKEY() local
1161 if (!TEST_ptr(p8inf = d2i_PKCS8_PRIV_KEY_INFO(NULL, &derp, in test_EVP_PKCS82PKEY()
1169 if (!TEST_ptr_null(pkey = EVP_PKCS82PKEY(p8inf))) in test_EVP_PKCS82PKEY()
1175 PKCS8_PRIV_KEY_INFO_free(p8inf); in test_EVP_PKCS82PKEY()
/third_party/openssl/crypto/asn1/
Dameth_lib.c320 *p8inf), in EVP_PKEY_asn1_set_private() argument
/third_party/openssl/doc/man3/
DEVP_PKEY_ASN1_METHOD.pod59 *p8inf),
180 int (*priv_decode) (EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf);
/third_party/node/src/
Dnode_crypto.cc2835 PKCS8Pointer p8inf(d2i_PKCS8_PRIV_KEY_INFO_bio(bio.get(), nullptr)); in ParsePrivateKey() local
2836 if (p8inf) in ParsePrivateKey()
2837 pkey->reset(EVP_PKCS82PKEY(p8inf.get())); in ParsePrivateKey()