Home
last modified time | relevance | path

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

/system/security/softkeymaster/
Dkeymaster_openssl.cpp300 Unique_EC_KEY eckey(EC_KEY_new()); in generate_ec_keypair() local
301 if (eckey.get() == NULL) { in generate_ec_keypair()
306 if (EC_KEY_set_group(eckey.get(), group.get()) != 1) { in generate_ec_keypair()
311 if (EC_KEY_generate_key(eckey.get()) != 1 || EC_KEY_check_key(eckey.get()) < 0) { in generate_ec_keypair()
316 if (EVP_PKEY_assign_EC_KEY(pkey, eckey.get()) == 0) { in generate_ec_keypair()
320 release_because_ownership_transferred(eckey); in generate_ec_keypair()
507 Unique_EC_KEY eckey(EVP_PKEY_get1_EC_KEY(pkey)); in sign_ec() local
508 if (eckey.get() == NULL) { in sign_ec()
513 unsigned int ecdsaSize = ECDSA_size(eckey.get()); in sign_ec()
521 if (ECDSA_sign(0, data, dataLength, tmp, &ecdsaSize, eckey.get()) <= 0) { in sign_ec()
[all …]