Lines Matching refs:pkey
78 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
228 pkey = d2i_PUBKEY(NULL, &q, length); in d2i_RSA_PUBKEY()
229 if (!pkey) in d2i_RSA_PUBKEY()
231 key = EVP_PKEY_get1_RSA(pkey); in d2i_RSA_PUBKEY()
232 EVP_PKEY_free(pkey); in d2i_RSA_PUBKEY()
263 EVP_PKEY *pkey; in d2i_DSA_PUBKEY() local
267 pkey = d2i_PUBKEY(NULL, &q, length); in d2i_DSA_PUBKEY()
268 if (!pkey) in d2i_DSA_PUBKEY()
270 key = EVP_PKEY_get1_DSA(pkey); in d2i_DSA_PUBKEY()
271 EVP_PKEY_free(pkey); in d2i_DSA_PUBKEY()
302 EVP_PKEY *pkey; in d2i_EC_PUBKEY() local
306 pkey = d2i_PUBKEY(NULL, &q, length); in d2i_EC_PUBKEY()
307 if (!pkey) in d2i_EC_PUBKEY()
309 key = EVP_PKEY_get1_EC_KEY(pkey); in d2i_EC_PUBKEY()
310 EVP_PKEY_free(pkey); in d2i_EC_PUBKEY()