Home
last modified time | relevance | path

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

/system/keymaster/android_keymaster/
Dandroid_keymaster_utils.cpp45 keymaster_error_t EcKeySizeToCurve(uint32_t key_size_bits, keymaster_ec_curve_t* curve) { in EcKeySizeToCurve() argument
51 *curve = KM_EC_CURVE_P_224; in EcKeySizeToCurve()
55 *curve = KM_EC_CURVE_P_256; in EcKeySizeToCurve()
59 *curve = KM_EC_CURVE_P_384; in EcKeySizeToCurve()
63 *curve = KM_EC_CURVE_P_521; in EcKeySizeToCurve()
70 keymaster_error_t EcCurveToKeySize(keymaster_ec_curve_t curve, uint32_t* key_size_bits) { in EcCurveToKeySize() argument
71 switch (curve) { in EcCurveToKeySize()
/system/keymaster/tests/
Dnist_curve_key_exchange_test.cpp42 for (auto& curve : kEcCurves) { in TEST() local
44 AuthorizationSetBuilder().Authorization(TAG_EC_CURVE, curve)); in TEST()
46 NistCurveKeyExchange* alice_keyex = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
47 NistCurveKeyExchange* bob_keyex = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
80 for (auto& curve : kEcCurves) { in TEST() local
82 AuthorizationSetBuilder().Authorization(TAG_EC_CURVE, curve)); in TEST()
83 KeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
98 for (auto& curve : kEcCurves) { in TEST() local
100 EC_GROUP* group = ec_get_group(curve); in TEST()
114 AuthorizationSetBuilder().Authorization(TAG_EC_CURVE, curve)); in TEST()
[all …]
Decies_kem_test.cpp44 for (auto& curve : kEcCurves) { in TEST() local
46 .Authorization(TAG_EC_CURVE, curve) in TEST()
54 NistCurveKeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
/system/keymaster/km_openssl/
Dec_key_factory.cpp45 keymaster_ec_curve_t* curve, in GetCurveAndSize() argument
47 if (!key_description.GetTagValue(TAG_EC_CURVE, curve)) { in GetCurveAndSize()
53 keymaster_error_t error = EcKeySizeToCurve(*key_size_bits, curve); in GetCurveAndSize()
58 keymaster_error_t error = EcCurveToKeySize(*curve, key_size_bits); in GetCurveAndSize()
183 keymaster_ec_curve_t curve; in UpdateImportKeyDescription() local
184 if (!updated_description->GetTagValue(TAG_EC_CURVE, &curve)) { in UpdateImportKeyDescription()
186 } else if (curve_from_size != curve) { in UpdateImportKeyDescription()
Dnist_curve_key_exchange.cpp38 NistCurveKeyExchange* NistCurveKeyExchange::GenerateKeyExchange(keymaster_ec_curve_t curve) { in GenerateKeyExchange() argument
40 switch (curve) { in GenerateKeyExchange()
54 LOG_E("Not a NIST curve: %d", curve); in GenerateKeyExchange()
Dopenssl_utils.cpp46 EC_GROUP* ec_get_group(keymaster_ec_curve_t curve) { in ec_get_group() argument
47 switch (curve) { in ec_get_group()
/system/media/audio_utils/include/audio_utils/
DBalance.h49 std::function<float(float)> curve = [](float x) { return x * (x + 0.2f); })
51 , mCurve(normalize(std::move(curve))) { } in mRamp()
/system/bt/stack/smp/
Dp_256_ecc_pp.h56 extern elliptic_curve_t curve;
Dp_256_ecc_pp.cc31 elliptic_curve_t curve; variable
/system/keymaster/include/keymaster/km_openssl/
Dnist_curve_key_exchange.h48 static NistCurveKeyExchange* GenerateKeyExchange(keymaster_ec_curve_t curve);
Dec_key_factory.h63 keymaster_ec_curve_t* curve, uint32_t* key_size_bits);
Dopenssl_utils.h75 EC_GROUP* ec_get_group(keymaster_ec_curve_t curve);
/system/keymaster/legacy_support/
Dkeymaster1_legacy_support.cpp236 keymaster_ec_curve_t curve; in GenerateKey() local
237 if (key_description.GetTagValue(TAG_EC_CURVE, &curve)) { in GenerateKey()
240 keymaster_error_t error = EcCurveToKeySize(curve, &key_size_from_curve); in GenerateKey()
/system/security/keystore/
Dkey_config.proto57 // Which ec curve was selected if elliptic curve cryptography is in use
Doperation_config.proto59 // Which ec curve was selected if elliptic curve cryptography is in use
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h428 keymaster_error_t EcKeySizeToCurve(uint32_t key_size_bits, keymaster_ec_curve_t* curve);
429 keymaster_error_t EcCurveToKeySize(keymaster_ec_curve_t curve, uint32_t* key_size_bits);
/system/keymaster/contexts/
Dsoft_keymaster_device.cpp805 keymaster_ec_curve_t curve; in generate_key() local
807 request.key_description.GetTagValue(TAG_EC_CURVE, &curve)) { in generate_key()
810 keymaster_error_t error = EcCurveToKeySize(curve, &key_size_from_curve); in generate_key()