/system/security/keystore2/src/crypto/tests/ |
D | certificate_utils_test.cpp | 59 const EVP_MD* getMD(Digest digest) { in getMD() 61 case Digest::SHA1: in getMD() 63 case Digest::SHA224: in getMD() 65 case Digest::SHA256: in getMD() 67 case Digest::SHA384: in getMD() 69 case Digest::SHA512: in getMD() 74 std::array<Digest, 5> digests = { 75 Digest::SHA1, Digest::SHA224, Digest::SHA256, Digest::SHA384, Digest::SHA512, 78 static const char* toString(Digest d) { in toString() 80 case Digest::SHA1: in toString() [all …]
|
/system/security/keystore/ |
D | keystore_utils.cpp | 121 params->push_back(TAG_DIGEST, Digest::NONE); in add_legacy_key_authorizations() 122 params->push_back(TAG_DIGEST, Digest::MD5); in add_legacy_key_authorizations() 123 params->push_back(TAG_DIGEST, Digest::SHA1); in add_legacy_key_authorizations() 124 params->push_back(TAG_DIGEST, Digest::SHA_2_224); in add_legacy_key_authorizations() 125 params->push_back(TAG_DIGEST, Digest::SHA_2_256); in add_legacy_key_authorizations() 126 params->push_back(TAG_DIGEST, Digest::SHA_2_384); in add_legacy_key_authorizations() 127 params->push_back(TAG_DIGEST, Digest::SHA_2_512); in add_legacy_key_authorizations()
|
D | keystore_cli_v2.cpp | 221 keymint::Digest::SHA_2_256); in verifyAuthenticationKeyAttributes() 302 .Digest(keymint::Digest::SHA_2_256) in loadOrCreateAndVerifyAuthenticationKey() 403 .Digest(keymint::Digest::SHA_2_256) in encryptWithAuthentication() 477 .Digest(keymint::Digest::SHA_2_256) in decryptWithAuthentication() 598 .Digest(keymint::Digest::SHA_2_256) in GetRSASignParameters() 603 parameters.Digest(keymint::Digest::SHA_2_224) in GetRSASignParameters() 604 .Digest(keymint::Digest::SHA_2_384) in GetRSASignParameters() 605 .Digest(keymint::Digest::SHA_2_512); in GetRSASignParameters() 622 .Digest(keymint::Digest::SHA_2_256) in GetECDSAParameters() 625 parameters.Digest(keymint::Digest::SHA_2_224) in GetECDSAParameters() [all …]
|
/system/security/keystore2/src/crypto/ |
D | certificate_utils.cpp | 473 std::variant<CertUtilsError, ASN1_STRING_Ptr> buildRsaPssParameter(Digest digest) { in buildRsaPssParameter() 482 case Digest::SHA1: in buildRsaPssParameter() 484 case Digest::SHA224: in buildRsaPssParameter() 487 case Digest::SHA256: in buildRsaPssParameter() 490 case Digest::SHA384: in buildRsaPssParameter() 493 case Digest::SHA512: in buildRsaPssParameter() 520 CertUtilsError makeAndSetAlgo(X509_ALGOR* algo_field, Algo algo, Padding padding, Digest digest) { in makeAndSetAlgo() 530 case Digest::SHA1: in makeAndSetAlgo() 533 case Digest::SHA224: in makeAndSetAlgo() 536 case Digest::SHA256: in makeAndSetAlgo() [all …]
|
/system/security/keystore2/src/km_compat/ |
D | parameter_conversion_test.cpp | 36 TEST_ENUM_CONVERSION(Digest, NONE); in TEST() 37 TEST_ENUM_CONVERSION(Digest, MD5); in TEST() 38 TEST_ENUM_CONVERSION(Digest, SHA1); in TEST() 39 TEST_ENUM_CONVERSION(Digest, SHA_2_224); in TEST() 40 TEST_ENUM_CONVERSION(Digest, SHA_2_256); in TEST() 41 TEST_ENUM_CONVERSION(Digest, SHA_2_384); in TEST() 42 TEST_ENUM_CONVERSION(Digest, SHA_2_512); in TEST()
|
D | km_compat_type_conversion.h | 243 static V4_0::Digest convert(KMV1::Digest d) { in convert() 245 case KMV1::Digest::NONE: in convert() 246 return V4_0::Digest::NONE; in convert() 247 case KMV1::Digest::MD5: in convert() 248 return V4_0::Digest::MD5; in convert() 249 case KMV1::Digest::SHA1: in convert() 250 return V4_0::Digest::SHA1; in convert() 251 case KMV1::Digest::SHA_2_224: in convert() 252 return V4_0::Digest::SHA_2_224; in convert() 253 case KMV1::Digest::SHA_2_256: in convert() [all …]
|
D | certificate_test.cpp | 39 using ::aidl::android::hardware::security::keymint::Digest; 102 KMV1::makeKeyParameter(KMV1::TAG_DIGEST, Digest::SHA_2_256), in TEST() 145 KMV1::makeKeyParameter(KMV1::TAG_DIGEST, Digest::SHA_2_256), in TEST() 160 KMV1::makeKeyParameter(KMV1::TAG_DIGEST, Digest::SHA_2_256), in TEST()
|
D | km_compat.cpp | 41 using ::aidl::android::hardware::security::keymint::Digest; 1038 static std::variant<keystore::Digest, KMV1::ErrorCode> getKeystoreDigest(Digest digest) { in getKeystoreDigest() 1040 case Digest::SHA1: in getKeystoreDigest() 1041 return keystore::Digest::SHA1; in getKeystoreDigest() 1042 case Digest::SHA_2_224: in getKeystoreDigest() 1043 return keystore::Digest::SHA224; in getKeystoreDigest() 1044 case Digest::SHA_2_256: in getKeystoreDigest() 1045 case Digest::NONE: in getKeystoreDigest() 1046 return keystore::Digest::SHA256; in getKeystoreDigest() 1047 case Digest::SHA_2_384: in getKeystoreDigest() [all …]
|
D | lib.rs | 32 Algorithm::Algorithm, BeginResult::BeginResult, BlockMode::BlockMode, Digest::Digest, 96 KeyParameter { tag: Tag::DIGEST, value: KeyParameterValue::Digest(Digest::SHA_2_256) }, in generate_rsa_key() 405 KeyParameter { tag: Tag::DIGEST, value: KeyParameterValue::Digest(Digest::SHA_2_256) } in test_get_key_characteristics()
|
D | slot_test.cpp | 28 using ::aidl::android::hardware::security::keymint::Digest; 149 KMV1::makeKeyParameter(KMV1::TAG_DIGEST, Digest::SHA_2_256), in TEST()
|
/system/security/keystore2/src/ |
D | boot_level_keys.rs | 23 Algorithm::Algorithm, Digest::Digest, KeyParameter::KeyParameter as KmKeyParameter, 58 KeyParameterValue::Digest(Digest::SHA_2_256).into(), in get_level_zero_key() 104 KeyParameterValue::Digest(Digest::SHA_2_256).into(), in get_level_zero_key()
|
D | metrics_store.rs | 26 Algorithm::Algorithm, BlockMode::BlockMode, Digest::Digest, EcCurve::EcCurve, 265 KsKeyParamValue::Digest(d) => { in process_key_creation_event_stats() 394 KsKeyParamValue::Digest(d) => { in process_key_operation_event_stats() 455 fn compute_digest_bitmap(digest_bitmap: &mut i32, digest: Digest) { in compute_digest_bitmap() argument 457 Digest::NONE => { in compute_digest_bitmap() 460 Digest::MD5 => { in compute_digest_bitmap() 463 Digest::SHA1 => { in compute_digest_bitmap() 466 Digest::SHA_2_224 => { in compute_digest_bitmap() 469 Digest::SHA_2_256 => { in compute_digest_bitmap() 472 Digest::SHA_2_384 => { in compute_digest_bitmap() [all …]
|
D | key_parameter.rs | 100 Algorithm::Algorithm, BlockMode::BlockMode, Digest::Digest, EcCurve::EcCurve, 165 implement_associate_primitive_for_aidl_enum! {Digest} 798 #[key_param(tag = DIGEST, field = Digest)] 799 Digest(Digest), 1047 Tag::DIGEST => return KmKeyParameterValue::Digest(Default::default()), in get_field_by_tag_type() 1082 | (&KmKeyParameterValue::Digest(_), KmKeyParameterValue::Digest(_)) in check_field_matches_tag_type()
|
/system/security/keystore2/src/crypto/include/ |
D | certificate_utils.h | 121 enum class Digest { enum 169 Algo algo, Padding padding, Digest digest);
|
/system/security/ondevice-signing/ |
D | KeystoreHmacKey.cpp | 35 using android::hardware::security::keymint::Digest; 88 digest.value = KeyParameterValue::make<KeyParameterValue::digest>(Digest::SHA_2_256); in createKey() 169 digest.value = KeyParameterValue::make<KeyParameterValue::digest>(Digest::SHA_2_256); in getVerifyOpParameters() 195 digest.value = KeyParameterValue::make<KeyParameterValue::digest>(Digest::SHA_2_256); in getSignOpParameters()
|
D | KeystoreKey.cpp | 37 using android::hardware::security::keymint::Digest; 90 digest.value = KeyParameterValue::make<KeyParameterValue::digest>(Digest::SHA_2_256); in createKey() 277 digest.value = KeyParameterValue::make<KeyParameterValue::digest>(Digest::SHA_2_256); in getSignOpParameters()
|
/system/keymaster/tests/ |
D | attestation_record_test.cpp | 89 .Digest(KM_DIGEST_SHA_2_256) in TEST() 90 .Digest(KM_DIGEST_SHA_2_384) in TEST() 170 .Digest(KM_DIGEST_SHA_2_256) in TEST() 171 .Digest(KM_DIGEST_SHA_2_384) in TEST()
|
/system/keymaster/ng/include/ |
D | authorization_set.h | 249 AuthorizationSetBuilder& Digest(Digest digest) { return Authorization(TAG_DIGEST, digest); } in Digest() function 314 Authorization(TAG_DIGEST, Digest::NONE); in NoDigestOrPadding()
|
D | keymaster_tags.h | 69 using ::android::hardware::keymaster::V3_0::Digest;
|
/system/libsysprop/srcs/android/sysprop/ |
D | OtaProperties.sysprop | 52 # https://android.googlesource.com/platform/external/avb/+/master/README.md#The-VBMeta-Digest
|
/system/security/keystore/include/keystore/ |
D | keymaster_types.h | 52 using keymaster::Digest;
|
/system/keymaster/ng/ |
D | KeyMintUtils.cpp | 41 static_cast<Digest>(param.enumerated))}; in kmEnumParam2Aidl()
|
/system/security/keystore-engine/ |
D | keystore2_engine.cpp | 214 KMV1::Digest::NONE)}; in keystore2_sign()
|
/system/hardware/interfaces/wifi/keystore/1.0/default/ |
D | keystore.cpp | 261 KMV1::KeyParameterValue::make<KMV1::KeyParameterValue::digest>(KMV1::Digest::NONE)}; in keyStore2Sign()
|
/system/keymaster/contexts/ |
D | pure_soft_keymaster_context.cpp | 423 .Digest(KM_DIGEST_SHA_2_256) in UnwrapKey()
|