Home
last modified time | relevance | path

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

/system/security/keystore-engine/
Decdsa_meth.cpp55 const BIGNUM*, const BIGNUM*, EC_KEY *eckey) { in keystore_ecdsa_do_sign() argument
56 ALOGV("keystore_ecdsa_do_sign(%p, %d, %p)", dgst, dlen, eckey); in keystore_ecdsa_do_sign()
58 uint8_t* key_id = reinterpret_cast<uint8_t*>(EC_KEY_get_key_method_data(eckey, in keystore_ecdsa_do_sign()
74 int num = ECDSA_size(eckey); in keystore_ecdsa_do_sign()
102 ALOGV("keystore_ecdsa_do_sign(%p, %d, %p) => returning %p len %zu", dgst, dlen, eckey, in keystore_ecdsa_do_sign()
125 Unique_EC_KEY eckey(EVP_PKEY_get1_EC_KEY(pkey)); in ecdsa_pkey_setup() local
126 void* oldData = EC_KEY_insert_key_method_data(eckey.get(), in ecdsa_pkey_setup()
133 ECDSA_set_method(eckey.get(), &keystore_ecdsa_meth); in ecdsa_pkey_setup()
140 ECDSA_DATA *ecdsa = ecdsa_check(eckey.get()); in ecdsa_pkey_setup()
/system/security/softkeymaster/
Dkeymaster_openssl.cpp306 Unique_EC_KEY eckey(EC_KEY_new()); in generate_ec_keypair() local
307 if (eckey.get() == NULL) { in generate_ec_keypair()
312 if (EC_KEY_set_group(eckey.get(), group.get()) != 1) { in generate_ec_keypair()
317 if (EC_KEY_generate_key(eckey.get()) != 1 || EC_KEY_check_key(eckey.get()) < 0) { in generate_ec_keypair()
322 if (EVP_PKEY_assign_EC_KEY(pkey, eckey.get()) == 0) { in generate_ec_keypair()
326 release_because_ownership_transferred(eckey); in generate_ec_keypair()
513 Unique_EC_KEY eckey(EVP_PKEY_get1_EC_KEY(pkey)); in sign_ec() local
514 if (eckey.get() == NULL) { in sign_ec()
519 unsigned int ecdsaSize = ECDSA_size(eckey.get()); in sign_ec()
527 if (ECDSA_sign(0, data, dataLength, tmp, &ecdsaSize, eckey.get()) <= 0) { in sign_ec()
[all …]