Home
last modified time | relevance | path

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

/system/security/keystore2/tests/
Dkeystore2_client_key_agreement_tests.rs39 ( $test_name:ident, $ec_curve:expr ) => {
42 perform_ec_key_agreement($ec_curve);
79 fn ec_curve_to_openrssl_curve_name(ec_curve: &EcCurve) -> Nid { in ec_curve_to_openrssl_curve_name()
80 match *ec_curve { in ec_curve_to_openrssl_curve_name()
91 fn perform_ec_key_agreement(ec_curve: EcCurve) { in perform_ec_key_agreement()
94 let openssl_ec_curve = ec_curve_to_openrssl_curve_name(&ec_curve); in perform_ec_key_agreement()
99 ec_curve, in perform_ec_key_agreement()
Dkeystore2_client_ec_key_tests.rs38 ( $test_name:ident, $digest:expr, $ec_curve:expr ) => {
41 perform_ec_sign_key_op_success(stringify!($test_name), $digest, $ec_curve);
47 ( $test_name:ident, $digest:expr, $ec_curve:expr ) => {
53 $ec_curve,
65 ec_curve: EcCurve, in create_ec_key_and_operation()
68 key_generations::generate_ec_key(sec_level, domain, nspace, alias, ec_curve, digest)?; in create_ec_key_and_operation()
77 fn perform_ec_sign_key_op_success(alias: &str, digest: Digest, ec_curve: EcCurve) { in perform_ec_sign_key_op_success()
87 ec_curve, in perform_ec_sign_key_op_success()
102 fn perform_ec_sign_key_op_with_none_or_md5_digest(alias: &str, digest: Digest, ec_curve: EcCurve) { in perform_ec_sign_key_op_with_none_or_md5_digest()
112 ec_curve, in perform_ec_sign_key_op_with_none_or_md5_digest()
[all …]
Dkeystore2_client_attest_key_tests.rs286 .ec_curve(EcCurve::P_256); in keystore2_ec_attest_key_with_multi_purpose_fail()
Dkeystore2_client_import_keys_tests.rs342 .ec_curve(EcCurve::P_224) // It doesn't match with key material. in keystore2_ec_import_key_fails_with_mismatch_curve_error()
/system/keymaster/km_openssl/
Dec_key_factory.cpp94 keymaster_ec_curve_t ec_curve; in GenerateKey() local
96 keymaster_error_t error = GetCurveAndSize(authorizations, &ec_curve, &key_size); in GenerateKey()
101 } else if (!authorizations.Contains(TAG_EC_CURVE, ec_curve)) { in GenerateKey()
102 authorizations.push_back(TAG_EC_CURVE, ec_curve); in GenerateKey()
110 if (ec_curve == KM_EC_CURVE_CURVE_25519) { in GenerateKey()
146 UniquePtr<EC_GROUP, EC_GROUP_Delete> group(ChooseGroup(ec_curve)); in GenerateKey()
148 LOG_E("Unable to get EC group for curve %d", ec_curve); in GenerateKey()
485 EC_GROUP* EcKeyFactory::ChooseGroup(keymaster_ec_curve_t ec_curve) { in ChooseGroup() argument
486 switch (ec_curve) { in ChooseGroup()
Dattestation_record.cpp475 int ec_curve; in build_eat_submod() local
481 keymaster_error_t error = ec_key_size_to_eat_curve(key_size, &ec_curve); in build_eat_submod()
484 submod->add(EatClaim::EC_CURVE, ec_curve); in build_eat_submod()
555 integer_ptr = &record->ec_curve; in build_auth_list()
776 keymaster_ec_curve_t ec_curve; in build_auth_list() local
784 keymaster_error_t error = EcKeySizeToCurve(key_size, &ec_curve); in build_auth_list()
792 if (!ASN1_INTEGER_set(value.get(), ec_curve)) { in build_auth_list()
796 insert_integer(value.release(), &record->ec_curve, nullptr); in build_auth_list()
1193 if (!get_enum(record->ec_curve, TAG_EC_CURVE, auth_list)) { in extract_auth_list()
/system/security/keystore2/test_utils/
Dkey_generations.rs347 .ec_curve(EcCurve::P_256); in generate_ec_p256_signing_key()
382 ec_curve: EcCurve, in generate_ec_key()
391 .ec_curve(ec_curve); in generate_ec_key()
611 ec_curve: EcCurve, in generate_ec_attestation_key()
618 .ec_curve(ec_curve) in generate_ec_attestation_key()
656 .ec_curve(EcCurve::P_256) in generate_ec_256_attested_key()
1054 ec_curve: EcCurve, in generate_ec_agree_key()
1065 .ec_curve(ec_curve); in generate_ec_agree_key()
Dauthorizations.rs60 pub fn ec_curve(mut self, e: EcCurve) -> Self { in ec_curve() method
/system/security/keystore2/aidl/android/security/metrics/
DKeyCreationWithGeneralInfo.aidl31 EcCurve ec_curve;
/system/keymaster/legacy_support/
Dec_keymaster1_key.cpp76 keymaster_ec_curve_t ec_curve; in GenerateKey() local
78 keymaster_error_t error = GetCurveAndSize(key_description, &ec_curve, &key_size); in GenerateKey()
/system/keymaster/include/keymaster/km_openssl/
Dec_key_factory.h73 static EC_GROUP* ChooseGroup(keymaster_ec_curve_t ec_curve);
Dattestation_record.h87 ASN1_INTEGER* ec_curve; member
137 ASN1_EXP_OPT(KM_AUTH_LIST, ec_curve, ASN1_INTEGER, TAG_EC_CURVE.masked_tag()),
/system/security/keystore2/src/
Dmetrics_store.rs183 ec_curve: MetricsEcCurve::EC_CURVE_UNSPECIFIED, in process_key_creation_event_stats()
278 key_creation_with_general_info.ec_curve = match e { in process_key_creation_event_stats()
/system/keymint/common/src/
Dtag.rs476 let ec_curve = get_ec_curve(params)?; in check_ec_gen_params() localVariable
478 let purpose = check_ec_params(ec_curve, params, sec_level)?; in check_ec_gen_params()
479 let keygen_info = match (ec_curve, purpose) { in check_ec_gen_params()