Home
last modified time | relevance | path

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

/system/keymaster/android_keymaster/
Dandroid_keymaster_utils.cpp43 keymaster_error_t EcKeySizeToCurve(uint32_t key_size_bits, keymaster_ec_curve_t* curve) { in EcKeySizeToCurve() argument
49 *curve = KM_EC_CURVE_P_224; in EcKeySizeToCurve()
53 *curve = KM_EC_CURVE_P_256; in EcKeySizeToCurve()
57 *curve = KM_EC_CURVE_P_384; in EcKeySizeToCurve()
61 *curve = KM_EC_CURVE_P_521; in EcKeySizeToCurve()
68 keymaster_error_t EcCurveToKeySize(keymaster_ec_curve_t curve, uint32_t* key_size_bits) { in EcCurveToKeySize() argument
69 switch (curve) { in EcCurveToKeySize()
Dremote_provisioning_utils.cpp46 CoseKeyCurve curve; member
52 return curve == other.curve && pubkey == other.pubkey; in operator ==()
95 auto curve = parsedPubKey->getIntValue(CoseKey::CURVE); in validateAndExtractEekPubAndId() local
96 if (!curve) { in validateAndExtractEekPubAndId()
107 KeyInfo matcher = {static_cast<CoseKeyCurve>(*curve), in validateAndExtractEekPubAndId()
/system/keymaster/tests/
Dnist_curve_key_exchange_test.cpp40 for (auto& curve : kEcCurves) { in TEST() local
42 AuthorizationSetBuilder().Authorization(TAG_EC_CURVE, curve)); in TEST()
44 NistCurveKeyExchange* alice_keyex = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
45 NistCurveKeyExchange* bob_keyex = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
78 for (auto& curve : kEcCurves) { in TEST() local
80 AuthorizationSetBuilder().Authorization(TAG_EC_CURVE, curve)); in TEST()
81 KeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
96 for (auto& curve : kEcCurves) { in TEST() local
98 EC_GROUP* group = ec_get_group(curve); in TEST()
112 AuthorizationSetBuilder().Authorization(TAG_EC_CURVE, curve)); in TEST()
[all …]
Decies_kem_test.cpp42 for (auto& curve : kEcCurves) { in TEST() local
44 .Authorization(TAG_EC_CURVE, curve) in TEST()
52 NistCurveKeyExchange* key_exchange = NistCurveKeyExchange::GenerateKeyExchange(curve); in TEST()
/system/keymaster/km_openssl/
Dec_key_factory.cpp50 keymaster_ec_curve_t* curve, in GetCurveAndSize() argument
52 if (!key_description.GetTagValue(TAG_EC_CURVE, curve)) { in GetCurveAndSize()
58 keymaster_error_t error = EcKeySizeToCurve(*key_size_bits, curve); in GetCurveAndSize()
63 keymaster_error_t error = EcCurveToKeySize(*curve, key_size_bits); in GetCurveAndSize()
226 keymaster_ec_curve_t curve; in UpdateImportKeyDescription() local
227 if (!updated_description->GetTagValue(TAG_EC_CURVE, &curve)) { in UpdateImportKeyDescription()
229 } 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.cpp48 EC_GROUP* ec_get_group(keymaster_ec_curve_t curve) { in ec_get_group() argument
49 switch (curve) { in ec_get_group()
Dattestation_record.cpp227 keymaster_error_t ec_key_size_to_eat_curve(uint32_t key_size_bits, int* curve) { in ec_key_size_to_eat_curve() argument
233 *curve = (int)EatEcCurve::P_224; in ec_key_size_to_eat_curve()
237 *curve = (int)EatEcCurve::P_256; in ec_key_size_to_eat_curve()
241 *curve = (int)EatEcCurve::P_384; in ec_key_size_to_eat_curve()
245 *curve = (int)EatEcCurve::P_521; in ec_key_size_to_eat_curve()
/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.h47 static NistCurveKeyExchange* GenerateKeyExchange(keymaster_ec_curve_t curve);
Dec_key_factory.h68 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/keymaster/cppcose/
Dcppcose.cpp301 auto& curve = senderCoseKey->asMap()->get(CoseKey::CURVE); in getSenderPubKeyFromCoseEncrypt() local
302 if (!curve || !curve->asInt() || curve->asInt()->value() != X25519) { in getSenderPubKeyFromCoseEncrypt()
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h240 keymaster_error_t EcKeySizeToCurve(uint32_t key_size_bits, keymaster_ec_curve_t* curve);
241 keymaster_error_t EcCurveToKeySize(keymaster_ec_curve_t curve, uint32_t* key_size_bits);
/system/security/keystore2/src/
Dremote_provisioning.rs393 .map(|(sec_level, curve)| ImplInfo { secLevel: *sec_level, supportedCurve: *curve }) in get_implementation_info()
/system/keymaster/contexts/
Dsoft_keymaster_device.cpp741 keymaster_ec_curve_t curve; in generate_key() local
743 request.key_description.GetTagValue(TAG_EC_CURVE, &curve)) { in generate_key()
746 keymaster_error_t error = EcCurveToKeySize(curve, &key_size_from_curve); in generate_key()