Home
last modified time | relevance | path

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

/hardware/interfaces/identity/support/src/
DIdentityCredentialSupport.cpp175 EC_KEY_Ptr ec_key(EC_KEY_new()); in generateP256Key() local
179 if (ec_key.get() == nullptr || pkey.get() == nullptr) { in generateP256Key()
184 if (EC_KEY_set_group(ec_key.get(), group.get()) != 1 || in generateP256Key()
185 EC_KEY_generate_key(ec_key.get()) != 1 || EC_KEY_check_key(ec_key.get()) < 0) { in generateP256Key()
190 if (EVP_PKEY_set1_EC_KEY(pkey.get(), ec_key.get()) != 1) { in generateP256Key()
780 auto ec_key = EC_KEY_Ptr(EC_KEY_new_by_curve_name(NID_X9_62_prime256v1)); in signEcDsaDigest() local
781 if (EC_KEY_set_private_key(ec_key.get(), bn.get()) != 1) { in signEcDsaDigest()
786 ECDSA_SIG* sig = ECDSA_do_sign(dataDigest.data(), dataDigest.size(), ec_key.get()); in signEcDsaDigest()
941 auto ec_key = EC_KEY_Ptr(EC_KEY_new()); in createEcKeyPair() local
943 if (ec_key.get() == nullptr || pkey.get() == nullptr) { in createEcKeyPair()
[all …]
/hardware/interfaces/security/keymint/support/
Dremote_prov_utils.cpp150 auto ec_key = EC_KEY_Ptr(EC_KEY_new()); in generateEc256KeyPair() local
151 if (ec_key.get() == nullptr) { in generateEc256KeyPair()
160 if (EC_KEY_set_group(ec_key.get(), group.get()) != 1 || in generateEc256KeyPair()
161 EC_KEY_generate_key(ec_key.get()) != 1 || EC_KEY_check_key(ec_key.get()) < 0) { in generateEc256KeyPair()
165 auto privKey = ecKeyGetPrivateKey(ec_key.get()); in generateEc256KeyPair()
168 auto pubKey = ecKeyGetPublicKey(ec_key.get()); in generateEc256KeyPair()