Lines Matching refs:pkey
48 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()
94 static X509* MakeCertificate(EVP_PKEY* pkey, const SSLIdentityParams& params) { in MakeCertificate() argument
104 if (!X509_set_pubkey(x509, pkey)) in MakeCertificate()
138 if (!X509_sign(x509, pkey, EVP_sha256())) in MakeCertificate()
165 EVP_PKEY* pkey = MakeKey(key_params); in Generate() local
166 if (!pkey) { in Generate()
170 return new OpenSSLKeyPair(pkey); in Generate()
214 X509* x509 = MakeCertificate(key_pair->pkey(), actual_params); in Generate()
448 EVP_PKEY* pkey = in FromPEMStrings() local
452 if (!pkey) { in FromPEMStrings()
457 return new OpenSSLIdentity(new OpenSSLKeyPair(pkey), in FromPEMStrings()
473 SSL_CTX_use_PrivateKey(ctx, key_pair_->pkey()) != 1) { in ConfigureIdentity()