Home
last modified time | relevance | path

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

123456

/external/boringssl/src/crypto/evp/
Devp.c90 static void free_it(EVP_PKEY *pkey) { in free_it() argument
91 if (pkey->ameth && pkey->ameth->pkey_free) { in free_it()
92 pkey->ameth->pkey_free(pkey); in free_it()
93 pkey->pkey.ptr = NULL; in free_it()
94 pkey->type = EVP_PKEY_NONE; in free_it()
98 void EVP_PKEY_free(EVP_PKEY *pkey) { in EVP_PKEY_free() argument
99 if (pkey == NULL) { in EVP_PKEY_free()
103 if (!CRYPTO_refcount_dec_and_test_zero(&pkey->references)) { in EVP_PKEY_free()
107 free_it(pkey); in EVP_PKEY_free()
108 OPENSSL_free(pkey); in EVP_PKEY_free()
[all …]
Dp_dsa_asn1.c105 const DSA *dsa = key->pkey.dsa; in dsa_pub_encode()
170 const DSA *dsa = key->pkey.dsa; in dsa_priv_encode()
194 static int int_dsa_size(const EVP_PKEY *pkey) { in int_dsa_size() argument
195 return DSA_size(pkey->pkey.dsa); in int_dsa_size()
198 static int dsa_bits(const EVP_PKEY *pkey) { in dsa_bits() argument
199 return BN_num_bits(pkey->pkey.dsa->p); in dsa_bits()
202 static int dsa_missing_parameters(const EVP_PKEY *pkey) { in dsa_missing_parameters() argument
204 dsa = pkey->pkey.dsa; in dsa_missing_parameters()
225 if (!dup_bn_into(&to->pkey.dsa->p, from->pkey.dsa->p) || in dsa_copy_parameters()
226 !dup_bn_into(&to->pkey.dsa->q, from->pkey.dsa->q) || in dsa_copy_parameters()
[all …]
Dp_ed25519_asn1.c26 static void ed25519_free(EVP_PKEY *pkey) { in ed25519_free() argument
27 OPENSSL_free(pkey->pkey.ptr); in ed25519_free()
28 pkey->pkey.ptr = NULL; in ed25519_free()
31 static int set_pubkey(EVP_PKEY *pkey, const uint8_t pubkey[32]) { in set_pubkey() argument
40 ed25519_free(pkey); in set_pubkey()
41 pkey->pkey.ptr = key; in set_pubkey()
45 static int set_privkey(EVP_PKEY *pkey, const uint8_t privkey[64]) { in set_privkey() argument
54 ed25519_free(pkey); in set_privkey()
55 pkey->pkey.ptr = key; in set_privkey()
72 static int ed25519_pub_encode(CBB *out, const EVP_PKEY *pkey) { in ed25519_pub_encode() argument
[all …]
Dprint.c204 static int rsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, in rsa_pub_print() argument
206 return do_rsa_print(bp, pkey->pkey.rsa, indent, 0); in rsa_pub_print()
209 static int rsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, in rsa_priv_print() argument
211 return do_rsa_print(bp, pkey->pkey.rsa, indent, 1); in rsa_priv_print()
275 static int dsa_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, in dsa_param_print() argument
277 return do_dsa_print(bp, pkey->pkey.dsa, indent, 0); in dsa_param_print()
280 static int dsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, in dsa_pub_print() argument
282 return do_dsa_print(bp, pkey->pkey.dsa, indent, 1); in dsa_pub_print()
285 static int dsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, in dsa_priv_print() argument
287 return do_dsa_print(bp, pkey->pkey.dsa, indent, 2); in dsa_priv_print()
[all …]
Dp_ec_asn1.c69 const EC_KEY *ec_key = key->pkey.ec; in eckey_pub_encode()
130 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec); in eckey_pub_cmp()
131 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec), in eckey_pub_cmp()
132 *pb = EC_KEY_get0_public_key(b->pkey.ec); in eckey_pub_cmp()
165 const EC_KEY *ec_key = key->pkey.ec; in eckey_priv_encode()
191 static int int_ec_size(const EVP_PKEY *pkey) { in int_ec_size() argument
192 return ECDSA_size(pkey->pkey.ec); in int_ec_size()
195 static int ec_bits(const EVP_PKEY *pkey) { in ec_bits() argument
196 const EC_GROUP *group = EC_KEY_get0_group(pkey->pkey.ec); in ec_bits()
204 static int ec_missing_parameters(const EVP_PKEY *pkey) { in ec_missing_parameters() argument
[all …]
Dp_rsa_asn1.c79 !RSA_marshal_public_key(&key_bitstring, key->pkey.rsa) || in rsa_pub_encode()
112 return BN_cmp(b->pkey.rsa->n, a->pkey.rsa->n) == 0 && in rsa_pub_cmp()
113 BN_cmp(b->pkey.rsa->e, a->pkey.rsa->e) == 0; in rsa_pub_cmp()
125 !RSA_marshal_private_key(&private_key, key->pkey.rsa) || in rsa_priv_encode()
155 static int rsa_opaque(const EVP_PKEY *pkey) { in rsa_opaque() argument
156 return RSA_is_opaque(pkey->pkey.rsa); in rsa_opaque()
159 static int int_rsa_size(const EVP_PKEY *pkey) { in int_rsa_size() argument
160 return RSA_size(pkey->pkey.rsa); in int_rsa_size()
163 static int rsa_bits(const EVP_PKEY *pkey) { in rsa_bits() argument
164 return RSA_bits(pkey->pkey.rsa); in rsa_bits()
[all …]
Devp_extra_test.cc369 bssl::UniquePtr<EVP_PKEY> pkey(EVP_PKEY_new()); in LoadExampleRSAKey() local
370 if (!pkey || !EVP_PKEY_set1_RSA(pkey.get(), rsa.get())) { in LoadExampleRSAKey()
373 return pkey; in LoadExampleRSAKey()
377 bssl::UniquePtr<EVP_PKEY> pkey = LoadExampleRSAKey(); in TEST() local
378 ASSERT_TRUE(pkey); in TEST()
381 EVP_DigestSignInit(md_ctx.get(), NULL, EVP_sha256(), NULL, pkey.get())); in TEST()
389 EXPECT_EQ(static_cast<size_t>(EVP_PKEY_size(pkey.get())), sig_len); in TEST()
399 EVP_DigestVerifyInit(md_ctx.get(), NULL, EVP_sha256(), NULL, pkey.get())); in TEST()
405 bssl::UniquePtr<EVP_PKEY> pkey = LoadExampleRSAKey(); in TEST() local
407 ASSERT_TRUE(pkey); in TEST()
[all …]
Dp_ec.c120 EC_KEY *ec = ctx->pkey->pkey.ec; in pkey_ec_sign()
139 return ECDSA_verify(0, tbs, tbslen, sig, siglen, ctx->pkey->pkey.ec); in pkey_ec_verify()
149 if (!ctx->pkey || !ctx->peerkey) { in pkey_ec_derive()
154 eckey = ctx->pkey->pkey.ec; in pkey_ec_derive()
162 pubkey = EC_KEY_get0_public_key(ctx->peerkey->pkey.ec); in pkey_ec_derive()
208 static int pkey_ec_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) { in pkey_ec_keygen() argument
209 if (ctx->pkey == NULL) { in pkey_ec_keygen()
215 !EC_KEY_set_group(ec, EC_KEY_get0_group(ctx->pkey->pkey.ec)) || in pkey_ec_keygen()
220 EVP_PKEY_assign_EC_KEY(pkey, ec); in pkey_ec_keygen()
Devp_ctx.c87 static EVP_PKEY_CTX *evp_pkey_ctx_new(EVP_PKEY *pkey, ENGINE *e, int id) { in evp_pkey_ctx_new() argument
92 if (!pkey || !pkey->ameth) { in evp_pkey_ctx_new()
95 id = pkey->ameth->pkey_id; in evp_pkey_ctx_new()
117 if (pkey) { in evp_pkey_ctx_new()
118 EVP_PKEY_up_ref(pkey); in evp_pkey_ctx_new()
119 ret->pkey = pkey; in evp_pkey_ctx_new()
124 EVP_PKEY_free(ret->pkey); in evp_pkey_ctx_new()
133 EVP_PKEY_CTX *EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e) { in EVP_PKEY_CTX_new() argument
134 return evp_pkey_ctx_new(pkey, e, -1); in EVP_PKEY_CTX_new()
148 EVP_PKEY_free(ctx->pkey); in EVP_PKEY_CTX_free()
[all …]
Dp_rsa.c164 ctx->tbuf = OPENSSL_malloc(EVP_PKEY_size(pk->pkey)); in setup_tbuf()
174 RSA *rsa = ctx->pkey->pkey.rsa; in pkey_rsa_sign()
175 const size_t key_len = EVP_PKEY_size(ctx->pkey); in pkey_rsa_sign()
213 RSA *rsa = ctx->pkey->pkey.rsa; in pkey_rsa_verify()
230 const size_t key_len = EVP_PKEY_size(ctx->pkey); in pkey_rsa_verify()
246 RSA *rsa = ctx->pkey->pkey.rsa; in pkey_rsa_verify_recover()
247 const size_t key_len = EVP_PKEY_size(ctx->pkey); in pkey_rsa_verify_recover()
310 RSA *rsa = ctx->pkey->pkey.rsa; in pkey_rsa_encrypt()
311 const size_t key_len = EVP_PKEY_size(ctx->pkey); in pkey_rsa_encrypt()
342 RSA *rsa = ctx->pkey->pkey.rsa; in pkey_rsa_decrypt()
[all …]
/external/linux-kselftest/tools/testing/selftests/x86/
Dprotection_keys.c427 u32 pkey_get(int pkey, unsigned long flags) in pkey_get() argument
435 __func__, pkey, flags, 0, 0); in pkey_get()
438 shifted_pkru = (pkru >> (pkey * PKRU_BITS_PER_PKEY)); in pkey_get()
449 int pkey_set(int pkey, unsigned long rights, unsigned long flags) in pkey_set() argument
461 new_pkru &= ~(mask << (pkey * PKRU_BITS_PER_PKEY)); in pkey_set()
463 new_pkru |= (rights << (pkey * PKRU_BITS_PER_PKEY)); in pkey_set()
468 __func__, pkey, rights, flags, 0, __rdpkru(), old_pkru); in pkey_set()
472 void pkey_disable_set(int pkey, int flags) in pkey_disable_set() argument
480 pkey, flags); in pkey_disable_set()
483 pkey_rights = pkey_get(pkey, syscall_flags); in pkey_disable_set()
[all …]
/external/google-tv-pairing-protocol/cpp/tests/polo/util/
Dcertificateutiltest.cc54 EVP_PKEY* pkey = EVP_PKEY_new(); in TEST() local
76 EVP_PKEY_assign_RSA(pkey, rsa); in TEST()
82 X509_set_pubkey(x509, pkey); in TEST()
92 X509_sign(x509, pkey, EVP_sha256()); in TEST()
97 EVP_PKEY_free(pkey); in TEST()
135 EVP_PKEY* pkey = CertificateUtil::PKEYFromPEM(pem, "testing"); in TEST() local
137 ASSERT_TRUE(pkey); in TEST()
139 RSA* rsa = EVP_PKEY_get1_RSA(pkey); in TEST()
142 EVP_PKEY_free(pkey); in TEST()
147 EVP_PKEY* pkey = EVP_PKEY_new(); in TEST() local
[all …]
/external/vboot_reference/tests/
Dvb21_host_key_tests.c38 struct vb2_packed_private_key *pkey; in private_key_tests() local
94 pkey = (struct vb2_packed_private_key *)buf; in private_key_tests()
105 pkey->c.magic = VB2_MAGIC_PACKED_KEY; in private_key_tests()
112 pkey->c.desc_size++; in private_key_tests()
118 pkey->key_size += pkey->c.total_size; in private_key_tests()
124 pkey->c.struct_version_major++; in private_key_tests()
130 pkey->c.struct_version_minor++; in private_key_tests()
136 pkey->key_size -= 32; in private_key_tests()
142 pkey->sig_alg = VB2_SIG_NONE; in private_key_tests()
172 struct vb2_packed_key *pkey; in public_key_tests() local
[all …]
/external/vboot_reference/host/lib21/
Dhost_key.c90 const struct vb2_packed_private_key *pkey = in vb2_private_key_unpack() local
103 if (pkey->c.magic != VB2_MAGIC_PACKED_PRIVATE_KEY) in vb2_private_key_unpack()
110 if (vb2_verify_common_member(pkey, &min_offset, in vb2_private_key_unpack()
111 pkey->key_offset, pkey->key_size)) in vb2_private_key_unpack()
119 if (pkey->c.struct_version_major != in vb2_private_key_unpack()
129 key->sig_alg = pkey->sig_alg; in vb2_private_key_unpack()
130 key->hash_alg = pkey->hash_alg; in vb2_private_key_unpack()
131 key->guid = pkey->guid; in vb2_private_key_unpack()
134 if (pkey->sig_alg == VB2_SIG_NONE) { in vb2_private_key_unpack()
135 if (pkey->key_size != 0) { in vb2_private_key_unpack()
[all …]
/external/vboot_reference/firmware/lib21/
Dpacked_key.c49 const struct vb2_packed_key *pkey = in vb2_unpack_key() local
56 if (pkey->c.magic != VB2_MAGIC_PACKED_KEY) in vb2_unpack_key()
64 rv = vb2_verify_common_member(pkey, &min_offset, in vb2_unpack_key()
65 pkey->key_offset, pkey->key_size); in vb2_unpack_key()
74 if (pkey->c.struct_version_major != VB2_PACKED_KEY_VERSION_MAJOR) in vb2_unpack_key()
78 key->hash_alg = pkey->hash_alg; in vb2_unpack_key()
82 key->sig_alg = pkey->sig_alg; in vb2_unpack_key()
89 (const uint8_t *)pkey + pkey->key_offset, in vb2_unpack_key()
90 pkey->key_size); in vb2_unpack_key()
96 key->desc = vb2_common_desc(pkey); in vb2_unpack_key()
[all …]
/external/boringssl/src/ssl/
Dssl_privkey.cc79 static int ssl_set_pkey(CERT *cert, EVP_PKEY *pkey) { in ssl_set_pkey() argument
80 if (!ssl_is_key_type_supported(pkey->type)) { in ssl_set_pkey()
88 !ssl_cert_check_private_key(cert, pkey)) { in ssl_set_pkey()
93 EVP_PKEY_up_ref(pkey); in ssl_set_pkey()
94 cert->privatekey = pkey; in ssl_set_pkey()
142 static int pkey_supports_algorithm(const SSL *ssl, EVP_PKEY *pkey, in pkey_supports_algorithm() argument
146 EVP_PKEY_id(pkey) != alg->pkey_type) { in pkey_supports_algorithm()
160 EC_KEY_get0_group(EVP_PKEY_get0_EC_KEY(pkey))) != alg->curve)) { in pkey_supports_algorithm()
168 static int setup_ctx(SSL *ssl, EVP_MD_CTX *ctx, EVP_PKEY *pkey, uint16_t sigalg, in setup_ctx() argument
170 if (!pkey_supports_algorithm(ssl, pkey, sigalg)) { in setup_ctx()
[all …]
/external/boringssl/src/crypto/x509/
Dx_pubkey.c78 EVP_PKEY_free(pubkey->pkey); in pubkey_cb()
90 int X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey)
101 !EVP_marshal_public_key(&cbb, pkey) ||
142 if (key->pkey != NULL) { in X509_PUBKEY_get()
144 EVP_PKEY_up_ref(key->pkey); in X509_PUBKEY_get()
145 return key->pkey; in X509_PUBKEY_get()
164 if (key->pkey) { in X509_PUBKEY_get()
167 ret = key->pkey; in X509_PUBKEY_get()
169 key->pkey = ret; in X509_PUBKEY_get()
224 EVP_PKEY *pkey; in d2i_RSA_PUBKEY() local
[all …]
Dalgorithm.c69 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(ctx->pctx); in x509_digest_sign_algorithm() local
70 if (pkey == NULL) { in x509_digest_sign_algorithm()
75 if (EVP_PKEY_id(pkey) == EVP_PKEY_RSA) { in x509_digest_sign_algorithm()
86 if (EVP_PKEY_id(pkey) == EVP_PKEY_ED25519) { in x509_digest_sign_algorithm()
100 EVP_PKEY_id(pkey))) { in x509_digest_sign_algorithm()
108 (EVP_PKEY_id(pkey) == EVP_PKEY_RSA) ? V_ASN1_NULL : V_ASN1_UNDEF; in x509_digest_sign_algorithm()
114 EVP_PKEY *pkey) { in x509_digest_verify_init() argument
124 if (pkey_nid != EVP_PKEY_id(pkey)) { in x509_digest_verify_init()
132 return x509_rsa_pss_to_ctx(ctx, sigalg, pkey); in x509_digest_verify_init()
139 return EVP_DigestVerifyInit(ctx, NULL, NULL, NULL, pkey); in x509_digest_verify_init()
[all …]
Dx509.c93 ASN1_TYPE_set(priv->pkey, pmtype, oct); in OPENSSL_DECLARE_ERROR_REASON()
113 if (p8->pkey->type == V_ASN1_OCTET_STRING) { in PKCS8_pkey_get0()
116 *pk = p8->pkey->value.octet_string->data; in PKCS8_pkey_get0()
117 *ppklen = p8->pkey->value.octet_string->length; in PKCS8_pkey_get0()
119 } else if (p8->pkey->type == V_ASN1_SEQUENCE) { in PKCS8_pkey_get0()
122 *pk = p8->pkey->value.sequence->data; in PKCS8_pkey_get0()
123 *ppklen = p8->pkey->value.sequence->length; in PKCS8_pkey_get0()
Dx_all.c80 int X509_sign(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) in X509_sign() argument
84 x->sig_alg, x->signature, x->cert_info, pkey, md)); in X509_sign()
95 int X509_REQ_sign(X509_REQ *x, EVP_PKEY *pkey, const EVP_MD *md) in X509_REQ_sign() argument
98 x->signature, x->req_info, pkey, md)); in X509_REQ_sign()
108 int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md) in X509_CRL_sign() argument
112 x->sig_alg, x->signature, x->crl, pkey, md)); in X509_CRL_sign()
123 int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md) in NETSCAPE_SPKI_sign() argument
126 x->signature, x->spkac, pkey, md)); in NETSCAPE_SPKI_sign()
129 int NETSCAPE_SPKI_verify(NETSCAPE_SPKI *x, EVP_PKEY *pkey) in NETSCAPE_SPKI_verify() argument
132 x->signature, x->spkac, pkey)); in NETSCAPE_SPKI_verify()
[all …]
/external/boringssl/src/include/openssl/
Devp.h90 OPENSSL_EXPORT void EVP_PKEY_free(EVP_PKEY *pkey);
93 OPENSSL_EXPORT int EVP_PKEY_up_ref(EVP_PKEY *pkey);
98 OPENSSL_EXPORT int EVP_PKEY_is_opaque(const EVP_PKEY *pkey);
113 OPENSSL_EXPORT int EVP_PKEY_missing_parameters(const EVP_PKEY *pkey);
119 OPENSSL_EXPORT int EVP_PKEY_size(const EVP_PKEY *pkey);
124 OPENSSL_EXPORT int EVP_PKEY_bits(EVP_PKEY *pkey);
128 OPENSSL_EXPORT int EVP_PKEY_id(const EVP_PKEY *pkey);
145 OPENSSL_EXPORT int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key);
146 OPENSSL_EXPORT int EVP_PKEY_assign_RSA(EVP_PKEY *pkey, RSA *key);
147 OPENSSL_EXPORT RSA *EVP_PKEY_get0_RSA(EVP_PKEY *pkey);
[all …]
/external/webrtc/webrtc/base/
Dopensslidentity.cc48 EVP_PKEY* pkey = EVP_PKEY_new(); in MakeKey() local
53 if (!pkey || !exponent || !rsa || in MakeKey()
56 !EVP_PKEY_assign_RSA(pkey, rsa)) { in MakeKey()
57 EVP_PKEY_free(pkey); in MakeKey()
68 if (!pkey || !ec_key || !EC_KEY_generate_key(ec_key) || in MakeKey()
69 !EVP_PKEY_assign_EC_KEY(pkey, ec_key)) { in MakeKey()
70 EVP_PKEY_free(pkey); in MakeKey()
78 EVP_PKEY_free(pkey); in MakeKey()
83 EVP_PKEY_free(pkey); in MakeKey()
89 return pkey; in MakeKey()
[all …]
/external/python/cpython3/Modules/
Dhashtable.c108 _Py_hashtable_hash_ptr(struct _Py_hashtable_t *ht, const void *pkey) in _Py_hashtable_hash_ptr() argument
112 _Py_HASHTABLE_READ_KEY(ht, pkey, key); in _Py_hashtable_hash_ptr()
118 _Py_hashtable_compare_direct(_Py_hashtable_t *ht, const void *pkey, in _Py_hashtable_compare_direct() argument
122 return (memcmp(pkey, pkey2, ht->key_size) == 0); in _Py_hashtable_compare_direct()
254 size_t key_size, const void *pkey) in _Py_hashtable_get_entry() argument
262 key_hash = ht->hash_func(ht, pkey); in _Py_hashtable_get_entry()
266 if (entry->key_hash == key_hash && ht->compare_func(ht, pkey, entry)) in _Py_hashtable_get_entry()
275 _Py_hashtable_pop_entry(_Py_hashtable_t *ht, size_t key_size, const void *pkey, in _Py_hashtable_pop_entry() argument
284 key_hash = ht->hash_func(ht, pkey); in _Py_hashtable_pop_entry()
289 if (entry->key_hash == key_hash && ht->compare_func(ht, pkey, entry)) in _Py_hashtable_pop_entry()
[all …]
/external/google-tv-pairing-protocol/cpp/src/polo/util/
Dcertificateutil.cc57 EVP_PKEY* pkey = PEM_read_bio_PrivateKey(bio, NULL, 0, &passphrase[0]); in PKEYFromPEM() local
60 return pkey; in PKEYFromPEM()
63 std::string CertificateUtil::PKEYToPEM(EVP_PKEY* pkey, in PKEYToPEM() argument
66 PEM_write_bio_PrivateKey(bio, pkey, EVP_des_ede3_cbc(), NULL, 0, 0, in PKEYToPEM()
80 EVP_PKEY* pkey = EVP_PKEY_new(); in GeneratePrivateKey() local
82 EVP_PKEY_assign_RSA(pkey, rsa); in GeneratePrivateKey()
83 return pkey; in GeneratePrivateKey()
86 X509* CertificateUtil::GenerateSelfSignedCert(EVP_PKEY* pkey, in GenerateSelfSignedCert() argument
94 X509_set_pubkey(x509, pkey); in GenerateSelfSignedCert()
101 X509_sign(x509, pkey, EVP_sha256()); in GenerateSelfSignedCert()
/external/boringssl/src/crypto/pkcs8/
Dpkcs8_x509.c83 if (key->pkey && key->pkey->type == V_ASN1_OCTET_STRING && in pkey_cb()
84 key->pkey->value.octet_string) { in pkey_cb()
85 OPENSSL_cleanse(key->pkey->value.octet_string->data, in pkey_cb()
86 key->pkey->value.octet_string->length); in pkey_cb()
95 ASN1_SIMPLE(PKCS8_PRIV_KEY_INFO, pkey, ASN1_ANY),
122 PKCS8_PRIV_KEY_INFO *EVP_PKEY2PKCS8(EVP_PKEY *pkey) { in EVP_PKEY2PKCS8() argument
127 !EVP_marshal_private_key(&cbb, pkey) || in EVP_PKEY2PKCS8()
161 EVP_PKEY *pkey = NULL; in PKCS8_decrypt() local
172 pkey = PKCS8_parse_encrypted_private_key(&cbs, pass, pass_len); in PKCS8_decrypt()
173 if (pkey == NULL || CBS_len(&cbs) != 0) { in PKCS8_decrypt()
[all …]

123456