Home
last modified time | relevance | path

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

/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp780 auto ec_key = EC_KEY_Ptr(EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)); in signEcDsa() local
781 if (EC_KEY_set_private_key(ec_key.get(), bn.get()) != 1) { in signEcDsa()
787 ECDSA_SIG* sig = ECDSA_do_sign(digest.data(), digest.size(), ec_key.get()); in signEcDsa()
914 auto ec_key = ::keymaster::EC_KEY_Ptr(EC_KEY_new()); in createEcKeyPairAndAttestation() local
918 if (ec_key.get() == nullptr || pkey.get() == nullptr) { in createEcKeyPairAndAttestation()
923 if (EC_KEY_set_group(ec_key.get(), group.get()) != 1 || in createEcKeyPairAndAttestation()
924 EC_KEY_generate_key(ec_key.get()) != 1 || EC_KEY_check_key(ec_key.get()) < 0) { in createEcKeyPairAndAttestation()
929 if (EVP_PKEY_set1_EC_KEY(pkey.get(), ec_key.get()) != 1) { in createEcKeyPairAndAttestation()
959 auto ec_key = EC_KEY_Ptr(EC_KEY_new()); in createEcKeyPair() local
961 if (ec_key.get() == nullptr || pkey.get() == nullptr) { in createEcKeyPair()
[all …]