/netbsd/crypto/external/bsd/openssl.old/dist/crypto/pem/ |
H A 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() 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 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()
|
/netbsd/crypto/external/bsd/openssl/dist/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() 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 D | p12_sbag.c | 206 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 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()
|
/netbsd/crypto/external/bsd/openssl.old/dist/apps/ |
H A 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 …]
|
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/x509/ |
H A D | x_all.c | 456 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 D | pkcs8.c | 75 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 D | x_all.c | 661 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 D | decode_epki2pki.c | 68 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 D | decode_der2key.c | 98 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 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()
|
H A 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()
|
/netbsd/crypto/external/bsd/openssl/dist/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>.
|
/netbsd/crypto/external/bsd/openssl/dist/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 | 35 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,
|
/netbsd/crypto/external/bsd/openssl/dist/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()
|
/netbsd/crypto/external/bsd/openssl/dist/crypto/dh/ |
H A D | dh_backend.c | 187 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 D | ecx_backend.c | 230 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 D | pkcs12.h | 107 PKCS8_PRIV_KEY_INFO *p8inf); 119 PKCS8_PRIV_KEY_INFO *p8inf, X509_ALGOR *pbe);
|
/netbsd/crypto/external/bsd/openssl/dist/include/openssl/ |
H A D | pkcs12.h.in | 127 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 D | autoca.c | 306 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()
|