Home
last modified time | relevance | path

Searched refs:pkey (Results 1 – 25 of 1170) sorted by relevance

12345678910>>...47

/third_party/node/deps/openssl/openssl/crypto/evp/
Dp_lib.c53 static int pkey_set_type(EVP_PKEY *pkey, ENGINE *e, int type, const char *str,
62 int EVP_PKEY_get_bits(const EVP_PKEY *pkey) in EVP_PKEY_get_bits() argument
66 if (pkey != NULL) { in EVP_PKEY_get_bits()
67 size = pkey->cache.bits; in EVP_PKEY_get_bits()
68 if (pkey->ameth != NULL && pkey->ameth->pkey_bits != NULL) in EVP_PKEY_get_bits()
69 size = pkey->ameth->pkey_bits(pkey); in EVP_PKEY_get_bits()
74 int EVP_PKEY_get_security_bits(const EVP_PKEY *pkey) in EVP_PKEY_get_security_bits() argument
78 if (pkey != NULL) { in EVP_PKEY_get_security_bits()
79 size = pkey->cache.security_bits; in EVP_PKEY_get_security_bits()
80 if (pkey->ameth != NULL && pkey->ameth->pkey_security_bits != NULL) in EVP_PKEY_get_security_bits()
[all …]
Dpmeth_check.c37 keydata = evp_pkey_export_to_provider(ctx->pkey, ctx->libctx, in try_provided_check()
49 EVP_PKEY *pkey = ctx->pkey; in evp_pkey_public_check_combined() local
52 if (pkey == NULL) { in evp_pkey_public_check_combined()
61 if (pkey->type == EVP_PKEY_NONE) in evp_pkey_public_check_combined()
68 return ctx->pmeth->public_check(pkey); in evp_pkey_public_check_combined()
71 if (pkey->ameth == NULL || pkey->ameth->pkey_public_check == NULL) in evp_pkey_public_check_combined()
74 return pkey->ameth->pkey_public_check(pkey); in evp_pkey_public_check_combined()
93 EVP_PKEY *pkey = ctx->pkey; in evp_pkey_param_check_combined() local
96 if (pkey == NULL) { in evp_pkey_param_check_combined()
106 if (pkey->type == EVP_PKEY_NONE) in evp_pkey_param_check_combined()
[all …]
Dp_legacy.c25 int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) in EVP_PKEY_set1_RSA() argument
27 int ret = EVP_PKEY_assign_RSA(pkey, key); in EVP_PKEY_set1_RSA()
34 RSA *evp_pkey_get0_RSA_int(const EVP_PKEY *pkey) in evp_pkey_get0_RSA_int() argument
36 if (pkey->type != EVP_PKEY_RSA && pkey->type != EVP_PKEY_RSA_PSS) { in evp_pkey_get0_RSA_int()
40 return evp_pkey_get_legacy((EVP_PKEY *)pkey); in evp_pkey_get0_RSA_int()
43 const RSA *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey) in EVP_PKEY_get0_RSA() argument
45 return evp_pkey_get0_RSA_int(pkey); in EVP_PKEY_get0_RSA()
48 RSA *EVP_PKEY_get1_RSA(EVP_PKEY *pkey) in EVP_PKEY_get1_RSA() argument
50 RSA *ret = evp_pkey_get0_RSA_int(pkey); in EVP_PKEY_get1_RSA()
58 int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) in EVP_PKEY_set1_EC_KEY() argument
[all …]
/third_party/openssl/crypto/evp/
Dp_lib.c53 static int pkey_set_type(EVP_PKEY *pkey, ENGINE *e, int type, const char *str,
62 int EVP_PKEY_get_bits(const EVP_PKEY *pkey) in EVP_PKEY_get_bits() argument
66 if (pkey != NULL) { in EVP_PKEY_get_bits()
67 size = pkey->cache.bits; in EVP_PKEY_get_bits()
68 if (pkey->ameth != NULL && pkey->ameth->pkey_bits != NULL) in EVP_PKEY_get_bits()
69 size = pkey->ameth->pkey_bits(pkey); in EVP_PKEY_get_bits()
74 int EVP_PKEY_get_security_bits(const EVP_PKEY *pkey) in EVP_PKEY_get_security_bits() argument
78 if (pkey != NULL) { in EVP_PKEY_get_security_bits()
79 size = pkey->cache.security_bits; in EVP_PKEY_get_security_bits()
80 if (pkey->ameth != NULL && pkey->ameth->pkey_security_bits != NULL) in EVP_PKEY_get_security_bits()
[all …]
Dpmeth_check.c37 keydata = evp_pkey_export_to_provider(ctx->pkey, ctx->libctx, in try_provided_check()
49 EVP_PKEY *pkey = ctx->pkey; in evp_pkey_public_check_combined() local
52 if (pkey == NULL) { in evp_pkey_public_check_combined()
61 if (pkey->type == EVP_PKEY_NONE) in evp_pkey_public_check_combined()
68 return ctx->pmeth->public_check(pkey); in evp_pkey_public_check_combined()
71 if (pkey->ameth == NULL || pkey->ameth->pkey_public_check == NULL) in evp_pkey_public_check_combined()
74 return pkey->ameth->pkey_public_check(pkey); in evp_pkey_public_check_combined()
93 EVP_PKEY *pkey = ctx->pkey; in evp_pkey_param_check_combined() local
96 if (pkey == NULL) { in evp_pkey_param_check_combined()
106 if (pkey->type == EVP_PKEY_NONE) in evp_pkey_param_check_combined()
[all …]
Dp_legacy.c25 int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) in EVP_PKEY_set1_RSA() argument
27 int ret = EVP_PKEY_assign_RSA(pkey, key); in EVP_PKEY_set1_RSA()
34 RSA *evp_pkey_get0_RSA_int(const EVP_PKEY *pkey) in evp_pkey_get0_RSA_int() argument
36 if (pkey->type != EVP_PKEY_RSA && pkey->type != EVP_PKEY_RSA_PSS) { in evp_pkey_get0_RSA_int()
40 return evp_pkey_get_legacy((EVP_PKEY *)pkey); in evp_pkey_get0_RSA_int()
43 const RSA *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey) in EVP_PKEY_get0_RSA() argument
45 return evp_pkey_get0_RSA_int(pkey); in EVP_PKEY_get0_RSA()
48 RSA *EVP_PKEY_get1_RSA(EVP_PKEY *pkey) in EVP_PKEY_get1_RSA() argument
50 RSA *ret = evp_pkey_get0_RSA_int(pkey); in EVP_PKEY_get1_RSA()
58 int EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) in EVP_PKEY_set1_EC_KEY() argument
[all …]
/third_party/libwebsockets/lib/tls/mbedtls/wrapper/library/
Dssl_pkey.c28 EVP_PKEY *pkey; in __EVP_PKEY_new() local
30 pkey = ssl_mem_zalloc(sizeof(EVP_PKEY)); in __EVP_PKEY_new()
31 if (!pkey) { in __EVP_PKEY_new()
37 pkey->method = ipk->method; in __EVP_PKEY_new()
39 pkey->method = EVP_PKEY_method(); in __EVP_PKEY_new()
42 ret = EVP_PKEY_METHOD_CALL(new, pkey, ipk, rngctx); in __EVP_PKEY_new()
48 return pkey; in __EVP_PKEY_new()
51 ssl_mem_free(pkey); in __EVP_PKEY_new()
67 void EVP_PKEY_free(EVP_PKEY *pkey) in EVP_PKEY_free() argument
69 SSL_ASSERT3(pkey); in EVP_PKEY_free()
[all …]
/third_party/openssl/crypto/dh/
Ddh_ameth.c34 static DH *d2i_dhp(const EVP_PKEY *pkey, const unsigned char **pp, in d2i_dhp() argument
38 int is_dhx = (pkey->ameth == &ossl_dhx_asn1_meth); in d2i_dhp()
48 static int i2d_dhp(const EVP_PKEY *pkey, const DH *a, unsigned char **pp) in i2d_dhp() argument
50 if (pkey->ameth == &ossl_dhx_asn1_meth) in i2d_dhp()
55 static void int_dh_free(EVP_PKEY *pkey) in int_dh_free() argument
57 DH_free(pkey->pkey.dh); in int_dh_free()
60 static int dh_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in dh_pub_decode() argument
85 if ((dh = d2i_dhp(pkey, &pm, pmlen)) == NULL) { in dh_pub_decode()
102 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, dh); in dh_pub_decode()
111 static int dh_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in dh_pub_encode() argument
[all …]
/third_party/node/deps/openssl/openssl/crypto/dh/
Ddh_ameth.c34 static DH *d2i_dhp(const EVP_PKEY *pkey, const unsigned char **pp, in d2i_dhp() argument
38 int is_dhx = (pkey->ameth == &ossl_dhx_asn1_meth); in d2i_dhp()
48 static int i2d_dhp(const EVP_PKEY *pkey, const DH *a, unsigned char **pp) in i2d_dhp() argument
50 if (pkey->ameth == &ossl_dhx_asn1_meth) in i2d_dhp()
55 static void int_dh_free(EVP_PKEY *pkey) in int_dh_free() argument
57 DH_free(pkey->pkey.dh); in int_dh_free()
60 static int dh_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in dh_pub_decode() argument
85 if ((dh = d2i_dhp(pkey, &pm, pmlen)) == NULL) { in dh_pub_decode()
102 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, dh); in dh_pub_decode()
111 static int dh_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in dh_pub_encode() argument
[all …]
/third_party/openssl/crypto/ec/
Dec_ameth.c68 static int eckey_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in eckey_pub_encode() argument
70 const EC_KEY *ec_key = pkey->pkey.ec; in eckey_pub_encode()
100 static int eckey_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in eckey_pub_decode() argument
123 EVP_PKEY_assign_EC_KEY(pkey, eckey); in eckey_pub_decode()
134 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec); in eckey_pub_cmp()
135 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec), in eckey_pub_cmp()
136 *pb = EC_KEY_get0_public_key(b->pkey.ec); in eckey_pub_cmp()
148 static int eckey_priv_decode_ex(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8, in eckey_priv_decode_ex() argument
156 EVP_PKEY_assign_EC_KEY(pkey, eckey); in eckey_priv_decode_ex()
162 static int eckey_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) in eckey_priv_encode() argument
[all …]
Decx_meth.c31 static int ecx_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in ecx_pub_encode() argument
33 const ECX_KEY *ecxkey = pkey->pkey.ecx; in ecx_pub_encode()
41 penc = OPENSSL_memdup(ecxkey->pubkey, KEYLEN(pkey)); in ecx_pub_encode()
47 if (!X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in ecx_pub_encode()
48 V_ASN1_UNDEF, NULL, penc, KEYLEN(pkey))) { in ecx_pub_encode()
56 static int ecx_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in ecx_pub_decode() argument
66 ecx = ossl_ecx_key_op(palg, p, pklen, pkey->ameth->pkey_id, in ecx_pub_decode()
70 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_pub_decode()
77 const ECX_KEY *akey = a->pkey.ecx; in ecx_pub_cmp()
78 const ECX_KEY *bkey = b->pkey.ecx; in ecx_pub_cmp()
[all …]
/third_party/node/deps/openssl/openssl/crypto/ec/
Dec_ameth.c68 static int eckey_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in eckey_pub_encode() argument
70 const EC_KEY *ec_key = pkey->pkey.ec; in eckey_pub_encode()
100 static int eckey_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in eckey_pub_decode() argument
123 EVP_PKEY_assign_EC_KEY(pkey, eckey); in eckey_pub_decode()
134 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec); in eckey_pub_cmp()
135 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec), in eckey_pub_cmp()
136 *pb = EC_KEY_get0_public_key(b->pkey.ec); in eckey_pub_cmp()
148 static int eckey_priv_decode_ex(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8, in eckey_priv_decode_ex() argument
156 EVP_PKEY_assign_EC_KEY(pkey, eckey); in eckey_priv_decode_ex()
162 static int eckey_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) in eckey_priv_encode() argument
[all …]
Decx_meth.c31 static int ecx_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in ecx_pub_encode() argument
33 const ECX_KEY *ecxkey = pkey->pkey.ecx; in ecx_pub_encode()
41 penc = OPENSSL_memdup(ecxkey->pubkey, KEYLEN(pkey)); in ecx_pub_encode()
47 if (!X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in ecx_pub_encode()
48 V_ASN1_UNDEF, NULL, penc, KEYLEN(pkey))) { in ecx_pub_encode()
56 static int ecx_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in ecx_pub_decode() argument
66 ecx = ossl_ecx_key_op(palg, p, pklen, pkey->ameth->pkey_id, in ecx_pub_decode()
70 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_pub_decode()
77 const ECX_KEY *akey = a->pkey.ecx; in ecx_pub_cmp()
78 const ECX_KEY *bkey = b->pkey.ecx; in ecx_pub_cmp()
[all …]
/third_party/openssl/crypto/dsa/
Ddsa_ameth.c29 static int dsa_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in dsa_pub_decode() argument
77 EVP_PKEY_assign_DSA(pkey, dsa); in dsa_pub_decode()
87 static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in dsa_pub_encode() argument
97 dsa = pkey->pkey.dsa; in dsa_pub_encode()
98 if (pkey->save_parameters in dsa_pub_encode()
150 static int dsa_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) in dsa_priv_decode() argument
157 EVP_PKEY_assign_DSA(pkey, dsa); in dsa_priv_decode()
163 static int dsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) in dsa_priv_encode() argument
170 if (pkey->pkey.dsa == NULL|| pkey->pkey.dsa->priv_key == NULL) { in dsa_priv_encode()
182 params->length = i2d_DSAparams(pkey->pkey.dsa, &params->data); in dsa_priv_encode()
[all …]
/third_party/node/deps/openssl/openssl/crypto/dsa/
Ddsa_ameth.c29 static int dsa_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in dsa_pub_decode() argument
77 EVP_PKEY_assign_DSA(pkey, dsa); in dsa_pub_decode()
87 static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in dsa_pub_encode() argument
97 dsa = pkey->pkey.dsa; in dsa_pub_encode()
98 if (pkey->save_parameters in dsa_pub_encode()
150 static int dsa_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) in dsa_priv_decode() argument
157 EVP_PKEY_assign_DSA(pkey, dsa); in dsa_priv_decode()
163 static int dsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) in dsa_priv_encode() argument
170 if (pkey->pkey.dsa == NULL|| pkey->pkey.dsa->priv_key == NULL) { in dsa_priv_encode()
182 params->length = i2d_DSAparams(pkey->pkey.dsa, &params->data); in dsa_priv_encode()
[all …]
/third_party/mbedtls/programs/
DMakefile87 pkey/dh_client \
88 pkey/dh_genprime \
89 pkey/dh_server \
90 pkey/ecdh_curve25519 \
91 pkey/ecdsa \
92 pkey/gen_key \
93 pkey/key_app \
94 pkey/key_app_writer \
95 pkey/mpi_demo \
96 pkey/pk_decrypt \
[all …]
D.gitignore23 pkey/dh_client
24 pkey/dh_genprime
25 pkey/dh_server
26 pkey/ecdh_curve25519
27 pkey/ecdsa
28 pkey/gen_key
29 pkey/key_app
30 pkey/key_app_writer
31 pkey/mpi_demo
32 pkey/pk_decrypt
[all …]
/third_party/openssl/crypto/x509/
Dx_pubkey.c35 EVP_PKEY *pkey; member
92 EVP_PKEY_free(pubkey->pkey); in x509_pubkey_ex_free()
161 EVP_PKEY_free(pubkey->pkey); in x509_pubkey_ex_d2i_ex()
162 pubkey->pkey = NULL; in x509_pubkey_ex_d2i_ex()
175 if ((ret = x509_pubkey_decode(&pubkey->pkey, pubkey)) == -1) { in x509_pubkey_ex_d2i_ex()
208 OSSL_DECODER_CTX_new_for_pkey(&pubkey->pkey, in x509_pubkey_ex_d2i_ex()
300 if (a->pkey != NULL) { in X509_PUBKEY_dup()
302 pubkey->pkey = EVP_PKEY_dup(a->pkey); in X509_PUBKEY_dup()
303 if (pubkey->pkey == NULL) { in X509_PUBKEY_dup()
305 if (x509_pubkey_decode(&pubkey->pkey, pubkey) <= 0) { in X509_PUBKEY_dup()
[all …]
/third_party/node/deps/openssl/openssl/crypto/x509/
Dx_pubkey.c35 EVP_PKEY *pkey; member
92 EVP_PKEY_free(pubkey->pkey); in x509_pubkey_ex_free()
161 EVP_PKEY_free(pubkey->pkey); in x509_pubkey_ex_d2i_ex()
162 pubkey->pkey = NULL; in x509_pubkey_ex_d2i_ex()
175 if ((ret = x509_pubkey_decode(&pubkey->pkey, pubkey)) == -1) { in x509_pubkey_ex_d2i_ex()
208 OSSL_DECODER_CTX_new_for_pkey(&pubkey->pkey, in x509_pubkey_ex_d2i_ex()
300 if (a->pkey != NULL) { in X509_PUBKEY_dup()
302 pubkey->pkey = EVP_PKEY_dup(a->pkey); in X509_PUBKEY_dup()
303 if (pubkey->pkey == NULL) { in X509_PUBKEY_dup()
305 if (x509_pubkey_decode(&pubkey->pkey, pubkey) <= 0) { in X509_PUBKEY_dup()
[all …]
/third_party/openssl/crypto/rsa/
Drsa_ameth.c29 static int rsa_param_encode(const EVP_PKEY *pkey, in rsa_param_encode() argument
32 const RSA *rsa = pkey->pkey.rsa; in rsa_param_encode()
53 static int rsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in rsa_pub_encode() argument
60 if (!rsa_param_encode(pkey, &str, &strtype)) in rsa_pub_encode()
62 penclen = i2d_RSAPublicKey(pkey->pkey.rsa, &penc); in rsa_pub_encode()
65 if (X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in rsa_pub_encode()
73 static int rsa_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in rsa_pub_decode() argument
90 switch (pkey->ameth->pkey_id) { in rsa_pub_decode()
102 if (!EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, rsa)) { in rsa_pub_decode()
115 if (((RSA_flags(a->pkey.rsa) & RSA_METHOD_FLAG_NO_CHECK)) in rsa_pub_cmp()
[all …]
/third_party/node/deps/openssl/openssl/crypto/rsa/
Drsa_ameth.c29 static int rsa_param_encode(const EVP_PKEY *pkey, in rsa_param_encode() argument
32 const RSA *rsa = pkey->pkey.rsa; in rsa_param_encode()
53 static int rsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in rsa_pub_encode() argument
60 if (!rsa_param_encode(pkey, &str, &strtype)) in rsa_pub_encode()
62 penclen = i2d_RSAPublicKey(pkey->pkey.rsa, &penc); in rsa_pub_encode()
65 if (X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in rsa_pub_encode()
73 static int rsa_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in rsa_pub_decode() argument
90 switch (pkey->ameth->pkey_id) { in rsa_pub_decode()
102 if (!EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, rsa)) { in rsa_pub_decode()
115 if (((RSA_flags(a->pkey.rsa) & RSA_METHOD_FLAG_NO_CHECK)) in rsa_pub_cmp()
[all …]
/third_party/openssl/demos/pkey/
DEVP_PKEY_RSA_keygen.c38 EVP_PKEY *pkey = NULL; in generate_rsa_key_long() local
87 if (EVP_PKEY_generate(genctx, &pkey) <= 0) { in generate_rsa_key_long()
96 return pkey; in generate_rsa_key_long()
110 EVP_PKEY *pkey = NULL; in generate_rsa_key_short() local
113 pkey = EVP_PKEY_Q_keygen(libctx, propq, "RSA", (size_t)bits); in generate_rsa_key_short()
115 if (pkey == NULL) in generate_rsa_key_short()
118 return pkey; in generate_rsa_key_short()
124 static int dump_key(const EVP_PKEY *pkey) in dump_key() argument
137 if (EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_RSA_N, &n) == 0) { in dump_key()
146 if (EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_RSA_E, &e) == 0) { in dump_key()
[all …]
/third_party/openssl/crypto/pkcs12/
Dp12_kiss.c18 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
21 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
24 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
33 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, in PKCS12_parse() argument
39 if (pkey != NULL) in PKCS12_parse()
40 *pkey = NULL; in PKCS12_parse()
82 if (!parse_pk12(p12, pass, -1, pkey, ocerts)) { in PKCS12_parse()
93 if (pkey != NULL && *pkey != NULL in PKCS12_parse()
98 match = X509_check_private_key(x, *pkey); in PKCS12_parse()
119 if (pkey != NULL) { in PKCS12_parse()
[all …]
/third_party/node/deps/openssl/openssl/crypto/pkcs12/
Dp12_kiss.c18 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
21 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
24 EVP_PKEY **pkey, STACK_OF(X509) *ocerts);
33 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, in PKCS12_parse() argument
39 if (pkey != NULL) in PKCS12_parse()
40 *pkey = NULL; in PKCS12_parse()
82 if (!parse_pk12(p12, pass, -1, pkey, ocerts)) { in PKCS12_parse()
93 if (pkey != NULL && *pkey != NULL in PKCS12_parse()
98 match = X509_check_private_key(x, *pkey); in PKCS12_parse()
119 if (pkey != NULL) { in PKCS12_parse()
[all …]
/third_party/openssl/test/
Devp_extra_test2.c365 EVP_PKEY *pkey = NULL; in test_dh_paramgen() local
377 && TEST_true(EVP_PKEY_paramgen(gctx, &pkey)) in test_dh_paramgen()
378 && TEST_ptr(pkey); in test_dh_paramgen()
383 ret = ret && TEST_ptr(gctx = EVP_PKEY_CTX_new_from_pkey(mainctx, pkey, NULL)) in test_dh_paramgen()
388 EVP_PKEY_free(pkey); in test_dh_paramgen()
450 EVP_PKEY *pkey = NULL; in test_d2i_AutoPrivateKey_ex() local
460 if (!TEST_ptr(pkey = d2i_AutoPrivateKey_ex(NULL, &p, input_len, mainctx, in test_d2i_AutoPrivateKey_ex()
463 || !TEST_int_eq(EVP_PKEY_get_id(pkey), expected_id)) in test_d2i_AutoPrivateKey_ex()
467 if (!TEST_true(EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_RSA_D, in test_d2i_AutoPrivateKey_ex()
474 if (!TEST_true(EVP_PKEY_get_octet_string_param(pkey, in test_d2i_AutoPrivateKey_ex()
[all …]

12345678910>>...47