Lines Matching refs:key_
69 result->key_ = EVP_PKEY_new(); in Create()
70 if (!result->key_ || !EVP_PKEY_set1_RSA(result->key_, rsa_key.get())) in Create()
94 result->key_ = EVP_PKCS82PKEY(p8inf.get()); in CreateFromPrivateKeyInfo()
95 if (!result->key_ || EVP_PKEY_id(result->key_) != EVP_PKEY_RSA) in CreateFromPrivateKeyInfo()
107 copy->key_ = EVP_PKEY_up_ref(key); in CreateFromKey()
112 : key_(NULL) { in RSAPrivateKey()
116 if (key_) in ~RSAPrivateKey()
117 EVP_PKEY_free(key_); in ~RSAPrivateKey()
122 ScopedRSA rsa(EVP_PKEY_get1_RSA(key_)); in Copy()
125 copy->key_ = EVP_PKEY_new(); in Copy()
126 if (!EVP_PKEY_set1_RSA(copy->key_, rsa.get())) in Copy()
132 return ExportKey(key_, i2d_PKCS8PrivateKeyInfo_bio, output); in ExportPrivateKey()
136 return ExportKey(key_, i2d_PUBKEY_bio, output); in ExportPublicKey()