Lines Matching refs:pkey
54 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
149 EVP_PKEY_assign_RSA(pkey, rsa); in TEST()
151 std::string pem = CertificateUtil::PKEYToPEM(pkey, "testing"); in TEST()
160 EVP_PKEY_free(pkey); in TEST()
166 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey(); in TEST() local
167 ASSERT_TRUE(pkey); in TEST()
168 EVP_PKEY_free(pkey); in TEST()
173 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey(); in TEST() local
174 ASSERT_TRUE(pkey); in TEST()
176 X509* x509 = CertificateUtil::GenerateSelfSignedCert(pkey, "test", 365); in TEST()
179 EVP_PKEY_free(pkey); in TEST()