Home
last modified time | relevance | path

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

/system/keymaster/km_openssl/
Dopenssl_utils.cpp169 EC_KEY* ecKey = EVP_PKEY_get0_EC_KEY(pubKey.get()); in GetEcdsa256KeyFromCert() local
170 if (!ecKey) return TranslateLastOpenSslError(); in GetEcdsa256KeyFromCert()
171 const EC_POINT* jacobian_coords = EC_KEY_get0_public_key(ecKey); in GetEcdsa256KeyFromCert()
177 if (!EC_POINT_get_affine_coordinates_GFp(EC_KEY_get0_group(ecKey), jacobian_coords, x.get(), in GetEcdsa256KeyFromCert()
/system/keymaster/cppcose/
Dcppcose.cpp91 auto ecKey = EC_KEY_Ptr(EC_KEY_new()); in ecdh() local
93 if (ecKey.get() == nullptr || pkey.get() == nullptr) { in ecdh()
96 if (EC_KEY_set_group(ecKey.get(), group.get()) != 1) { in ecdh()
99 if (EC_KEY_set_public_key(ecKey.get(), point.get()) != 1) { in ecdh()
102 if (EVP_PKEY_set1_EC_KEY(pkey.get(), ecKey.get()) != 1) { in ecdh()
203 auto ecKey = EC_KEY_Ptr(EC_KEY_new()); in verifyEcdsaDigest() local
204 if (ecKey.get() == nullptr) { in verifyEcdsaDigest()
207 if (EC_KEY_set_group(ecKey.get(), group.get()) != 1) { in verifyEcdsaDigest()
210 if (EC_KEY_set_public_key(ecKey.get(), point.get()) != 1) { in verifyEcdsaDigest()
214 int rc = ECDSA_do_verify(digest.data(), digest.size(), sig.get(), ecKey.get()); in verifyEcdsaDigest()