/third_party/openssl/crypto/pem/ |
D | pem_pk8.c | 68 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 …]
|
D | pem_pkey.c | 41 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/ |
D | pkcs8.c | 66 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/ |
D | x_all.c | 438 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/ |
D | p12_p8e.c | 18 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()
|
D | p12_sbag.c | 142 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/ |
D | pkcs12.h | 107 PKCS8_PRIV_KEY_INFO *p8inf); 119 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);
|
D | x509.h | 422 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);
|
D | evp.h | 1179 *p8inf),
|
/third_party/openssl/include/crypto/ |
D | asn1.h | 25 int (*priv_decode) (EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf);
|
/third_party/openssl/crypto/store/ |
D | loader_file.c | 414 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/ |
D | evp_extra_test.c | 1158 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/ |
D | ameth_lib.c | 320 *p8inf), in EVP_PKEY_asn1_set_private() argument
|
/third_party/openssl/doc/man3/ |
D | EVP_PKEY_ASN1_METHOD.pod | 59 *p8inf), 180 int (*priv_decode) (EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf);
|
/third_party/node/src/ |
D | node_crypto.cc | 2835 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()
|