Home
last modified time | relevance | path

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

/system/keymaster/
Dec_key_factory.cpp83 keymaster_ec_curve_t ec_curve; in GenerateKey() local
85 keymaster_error_t error = GetCurveAndSize(authorizations, &ec_curve, &key_size); in GenerateKey()
90 } else if (!authorizations.Contains(TAG_EC_CURVE, ec_curve)) { in GenerateKey()
91 authorizations.push_back(TAG_EC_CURVE, ec_curve); in GenerateKey()
99 UniquePtr<EC_GROUP, EC_GROUP_Delete> group(ChooseGroup(ec_curve)); in GenerateKey()
101 LOG_E("Unable to get EC group for curve %d", ec_curve); in GenerateKey()
209 EC_GROUP* EcKeyFactory::ChooseGroup(keymaster_ec_curve_t ec_curve) { in ChooseGroup() argument
210 switch (ec_curve) { in ChooseGroup()
Dec_keymaster0_key.cpp46 keymaster_ec_curve_t ec_curve; in GenerateKey() local
48 keymaster_error_t error = GetCurveAndSize(key_description, &ec_curve, &key_size); in GenerateKey()
61 hw_enforced->push_back(TAG_EC_CURVE, ec_curve); in GenerateKey()
Dattestation_record.cpp87 ASN1_INTEGER* ec_curve; member
113 ASN1_EXP_OPT(KM_AUTH_LIST, ec_curve, ASN1_INTEGER, TAG_EC_CURVE.masked_tag()),
257 integer_ptr = &record->ec_curve; in build_auth_list()
405 keymaster_ec_curve_t ec_curve; in build_auth_list() local
412 keymaster_error_t error = EcKeySizeToCurve(key_size, &ec_curve); in build_auth_list()
420 if (!ASN1_INTEGER_set(value.get(), ec_curve)) in build_auth_list()
423 insert_integer(value.release(), &record->ec_curve, nullptr); in build_auth_list()
595 if (!get_enum(record->ec_curve, TAG_EC_CURVE, auth_list)) in extract_auth_list()
/system/keymaster/include/keymaster/
Dec_key_factory.h57 static EC_GROUP* ChooseGroup(keymaster_ec_curve_t ec_curve);