Home
last modified time | relevance | path

Searched refs:ecKey (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp660 auto ecKey = EC_KEY_Ptr(EC_KEY_new()); in certificateSignedByPublicKey() local
662 if (ecKey.get() == nullptr || pkey.get() == nullptr) { in certificateSignedByPublicKey()
666 if (EC_KEY_set_group(ecKey.get(), group.get()) != 1) { in certificateSignedByPublicKey()
670 if (EC_KEY_set_public_key(ecKey.get(), point.get()) != 1) { in certificateSignedByPublicKey()
674 if (EVP_PKEY_set1_EC_KEY(pkey.get(), ecKey.get()) != 1) { in certificateSignedByPublicKey()
734 auto ecKey = EC_KEY_Ptr(EC_KEY_new()); in checkEcDsaSignature() local
736 if (ecKey.get() == nullptr || pkey.get() == nullptr) { in checkEcDsaSignature()
740 if (EC_KEY_set_group(ecKey.get(), group.get()) != 1) { in checkEcDsaSignature()
744 if (EC_KEY_set_public_key(ecKey.get(), point.get()) != 1) { in checkEcDsaSignature()
748 if (EVP_PKEY_set1_EC_KEY(pkey.get(), ecKey.get()) != 1) { in checkEcDsaSignature()
[all …]
/hardware/interfaces/security/keymint/support/
Dremote_prov_utils.cpp56 ErrMsgOr<bytevec> ecKeyGetPrivateKey(const EC_KEY* ecKey) { in ecKeyGetPrivateKey() argument
58 const BIGNUM* bignum = EC_KEY_get0_private_key(ecKey); in ecKeyGetPrivateKey()
68 ErrMsgOr<bytevec> ecKeyGetPublicKey(const EC_KEY* ecKey) { in ecKeyGetPublicKey() argument
74 const EC_POINT* point = EC_KEY_get0_public_key(ecKey); in ecKeyGetPublicKey()
126 auto ecKey = EC_KEY_Ptr(EVP_PKEY_get1_EC_KEY(pubKey.get())); in getRawPublicKey() local
127 if (ecKey.get() == nullptr) { in getRawPublicKey()
130 return ecKeyGetPublicKey(ecKey.get()); in getRawPublicKey()
/hardware/interfaces/security/keymint/aidl/vts/functional/
DKeyMintAidlTestBase.cpp2238 EC_KEY_Ptr ecKey = EC_KEY_Ptr(EC_KEY_new()); in p256_pub_key() local
2239 ASSERT_NE(ecKey, nullptr); in p256_pub_key()
2242 ASSERT_EQ(EC_KEY_set_group(ecKey.get(), group.get()), 1); in p256_pub_key()
2248 ASSERT_EQ(EC_KEY_set_public_key(ecKey.get(), point.get()), 1); in p256_pub_key()
2252 EVP_PKEY_assign_EC_KEY(pubKey.get(), ecKey.release()); in p256_pub_key()
DKeyMintTest.cpp8487 auto ecKey = EC_KEY_Ptr(EC_KEY_new()); in GenerateLocalEcKey() local
8491 ASSERT_EQ(EC_KEY_set_group(ecKey.get(), group.get()), 1); in GenerateLocalEcKey()
8492 ASSERT_EQ(EC_KEY_generate_key(ecKey.get()), 1); in GenerateLocalEcKey()
8494 ASSERT_EQ(EVP_PKEY_set1_EC_KEY(localPrivKey->get(), ecKey.get()), 1); in GenerateLocalEcKey()