Lines Matching refs:pkey
65 EVP_PKEY *pkey = NULL; in convert_x509() local
85 pkey = X509_get_pubkey(cert); in convert_x509()
86 if (!pkey) { in convert_x509()
91 rsa = EVP_PKEY_get1_RSA(pkey); in convert_x509()
111 if (pkey) { in convert_x509()
112 EVP_PKEY_free(pkey); in convert_x509()
127 EVP_PKEY* pkey = EVP_PKEY_new(); in generate_key() local
129 if (!pkey || !exponent || !rsa) { in generate_key()
136 EVP_PKEY_set1_RSA(pkey, rsa); in generate_key()
144 if (!PEM_write_PrivateKey(f, pkey, NULL, NULL, 0, NULL, NULL)) { in generate_key()
159 EVP_PKEY_free(pkey); in generate_key()