/system/keymaster/android_keymaster/ |
D | android_keymaster_utils.cpp | 43 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()
|
D | remote_provisioning_utils.cpp | 46 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/ |
D | nist_curve_key_exchange_test.cpp | 40 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 …]
|
D | ecies_kem_test.cpp | 42 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/ |
D | ec_key_factory.cpp | 50 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()
|
D | nist_curve_key_exchange.cpp | 38 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()
|
D | openssl_utils.cpp | 48 EC_GROUP* ec_get_group(keymaster_ec_curve_t curve) { in ec_get_group() argument 49 switch (curve) { in ec_get_group()
|
D | attestation_record.cpp | 227 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/ |
D | Balance.h | 49 std::function<float(float)> curve = [](float x) { return x * (x + 0.2f); }) 51 , mCurve(normalize(std::move(curve))) { } in mRamp()
|
/system/bt/stack/smp/ |
D | p_256_ecc_pp.h | 56 extern elliptic_curve_t curve;
|
D | p_256_ecc_pp.cc | 31 elliptic_curve_t curve; variable
|
/system/keymaster/include/keymaster/km_openssl/ |
D | nist_curve_key_exchange.h | 47 static NistCurveKeyExchange* GenerateKeyExchange(keymaster_ec_curve_t curve);
|
D | ec_key_factory.h | 68 keymaster_ec_curve_t* curve, uint32_t* key_size_bits);
|
D | openssl_utils.h | 75 EC_GROUP* ec_get_group(keymaster_ec_curve_t curve);
|
/system/keymaster/legacy_support/ |
D | keymaster1_legacy_support.cpp | 236 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/ |
D | cppcose.cpp | 301 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/ |
D | android_keymaster_utils.h | 240 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/ |
D | remote_provisioning.rs | 393 .map(|(sec_level, curve)| ImplInfo { secLevel: *sec_level, supportedCurve: *curve }) in get_implementation_info()
|
/system/keymaster/contexts/ |
D | soft_keymaster_device.cpp | 741 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()
|