Home
last modified time | relevance | path

Searched refs:Digest (Results 1 – 25 of 28) sorted by relevance

12

/system/security/keystore2/src/crypto/tests/
Dcertificate_utils_test.cpp59 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/
Dkeystore_utils.cpp121 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()
Dkeystore_cli_v2.cpp221 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/
Dcertificate_utils.cpp473 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/
Dparameter_conversion_test.cpp36 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()
Dkm_compat_type_conversion.h243 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 …]
Dcertificate_test.cpp39 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()
Dkm_compat.cpp41 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 …]
Dlib.rs32 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()
Dslot_test.cpp28 using ::aidl::android::hardware::security::keymint::Digest;
149 KMV1::makeKeyParameter(KMV1::TAG_DIGEST, Digest::SHA_2_256), in TEST()
/system/security/keystore2/src/
Dboot_level_keys.rs23 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()
Dmetrics_store.rs26 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 …]
Dkey_parameter.rs100 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/
Dcertificate_utils.h121 enum class Digest { enum
169 Algo algo, Padding padding, Digest digest);
/system/security/ondevice-signing/
DKeystoreHmacKey.cpp35 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()
DKeystoreKey.cpp37 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/
Dattestation_record_test.cpp89 .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/
Dauthorization_set.h249 AuthorizationSetBuilder& Digest(Digest digest) { return Authorization(TAG_DIGEST, digest); } in Digest() function
314 Authorization(TAG_DIGEST, Digest::NONE); in NoDigestOrPadding()
Dkeymaster_tags.h69 using ::android::hardware::keymaster::V3_0::Digest;
/system/libsysprop/srcs/android/sysprop/
DOtaProperties.sysprop52 # https://android.googlesource.com/platform/external/avb/+/master/README.md#The-VBMeta-Digest
/system/security/keystore/include/keystore/
Dkeymaster_types.h52 using keymaster::Digest;
/system/keymaster/ng/
DKeyMintUtils.cpp41 static_cast<Digest>(param.enumerated))}; in kmEnumParam2Aidl()
/system/security/keystore-engine/
Dkeystore2_engine.cpp214 KMV1::Digest::NONE)}; in keystore2_sign()
/system/hardware/interfaces/wifi/keystore/1.0/default/
Dkeystore.cpp261 KMV1::KeyParameterValue::make<KMV1::KeyParameterValue::digest>(KMV1::Digest::NONE)}; in keyStore2Sign()
/system/keymaster/contexts/
Dpure_soft_keymaster_context.cpp423 .Digest(KM_DIGEST_SHA_2_256) in UnwrapKey()

12