Home | History | Annotate | Download | only in util

Lines Matching refs:pkey

54   EVP_PKEY* pkey = EVP_PKEY_new();
76 EVP_PKEY_assign_RSA(pkey, rsa);
82 X509_set_pubkey(x509, pkey);
92 X509_sign(x509, pkey, EVP_sha256());
97 EVP_PKEY_free(pkey);
135 EVP_PKEY* pkey = CertificateUtil::PKEYFromPEM(pem, "testing");
137 ASSERT_TRUE(pkey);
139 RSA* rsa = EVP_PKEY_get1_RSA(pkey);
142 EVP_PKEY_free(pkey);
147 EVP_PKEY* pkey = EVP_PKEY_new();
149 EVP_PKEY_assign_RSA(pkey, rsa);
151 std::string pem = CertificateUtil::PKEYToPEM(pkey, "testing");
160 EVP_PKEY_free(pkey);
166 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey();
167 ASSERT_TRUE(pkey);
168 EVP_PKEY_free(pkey);
173 EVP_PKEY* pkey = CertificateUtil::GeneratePrivateKey();
174 ASSERT_TRUE(pkey);
176 X509* x509 = CertificateUtil::GenerateSelfSignedCert(pkey, "test", 365);
179 EVP_PKEY_free(pkey);