• Home
  • Raw
  • Download

Lines Matching refs:pkey

59     UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new());  in key_material()  local
60 if (pkey.get() == NULL) in key_material()
63 if (!InternalToEvp(pkey.get())) in key_material()
66 *size = i2d_PrivateKey(pkey.get(), NULL /* key_data*/); in key_material()
72 i2d_PrivateKey(pkey.get(), &tmp); in key_material()
86 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in formatted_key_material() local
87 if (!InternalToEvp(pkey.get())) in formatted_key_material()
90 int key_data_length = i2d_PUBKEY(pkey.get(), NULL); in formatted_key_material()
99 if (i2d_PUBKEY(pkey.get(), &tmp) != key_data_length) { in formatted_key_material()
142 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in GenerateKey() local
143 if (rsa_key.get() == NULL || pkey.get() == NULL) { in GenerateKey()
160 RsaKey* RsaKey::ImportKey(const AuthorizationSet& key_description, EVP_PKEY* pkey, in ImportKey() argument
166 UniquePtr<RSA, RSA_Delete> rsa_key(EVP_PKEY_get1_RSA(pkey)); in ImportKey()
245 bool RsaKey::EvpToInternal(const EVP_PKEY* pkey) { in EvpToInternal() argument
246 rsa_key_.reset(EVP_PKEY_get1_RSA(const_cast<EVP_PKEY*>(pkey))); in EvpToInternal()
250 bool RsaKey::InternalToEvp(EVP_PKEY* pkey) const { in InternalToEvp()
251 return EVP_PKEY_set1_RSA(pkey, rsa_key_.get()) == 1; in InternalToEvp()
291 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in GenerateKey() local
292 if (dsa_key.get() == NULL || pkey.get() == NULL) { in GenerateKey()
366 DsaKey* DsaKey::ImportKey(const AuthorizationSet& key_description, EVP_PKEY* pkey, in ImportKey() argument
372 UniquePtr<DSA, DSA_Delete> dsa_key(EVP_PKEY_get1_DSA(pkey)); in ImportKey()
449 bool DsaKey::EvpToInternal(const EVP_PKEY* pkey) { in EvpToInternal() argument
450 dsa_key_.reset(EVP_PKEY_get1_DSA(const_cast<EVP_PKEY*>(pkey))); in EvpToInternal()
454 bool DsaKey::InternalToEvp(EVP_PKEY* pkey) const { in InternalToEvp()
455 return EVP_PKEY_set1_DSA(pkey, dsa_key_.get()) == 1; in InternalToEvp()
471 UniquePtr<EVP_PKEY, EVP_PKEY_Delete> pkey(EVP_PKEY_new()); in GenerateKey() local
472 if (ecdsa_key.get() == NULL || pkey.get() == NULL) { in GenerateKey()
499 EcdsaKey* EcdsaKey::ImportKey(const AuthorizationSet& key_description, EVP_PKEY* pkey, in ImportKey() argument
505 UniquePtr<EC_KEY, ECDSA_Delete> ecdsa_key(EVP_PKEY_get1_EC_KEY(pkey)); in ImportKey()
617 bool EcdsaKey::EvpToInternal(const EVP_PKEY* pkey) { in EvpToInternal() argument
618 ecdsa_key_.reset(EVP_PKEY_get1_EC_KEY(const_cast<EVP_PKEY*>(pkey))); in EvpToInternal()
622 bool EcdsaKey::InternalToEvp(EVP_PKEY* pkey) const { in InternalToEvp()
623 return EVP_PKEY_set1_EC_KEY(pkey, ecdsa_key_.get()) == 1; in InternalToEvp()