/hardware/interfaces/security/keymint/support/include/keymint_support/ |
D | openssl_utils.h | 49 inline const EVP_MD* openssl_digest(Digest digest) { in openssl_digest() 51 case Digest::NONE: in openssl_digest() 53 case Digest::MD5: in openssl_digest() 55 case Digest::SHA1: in openssl_digest() 57 case Digest::SHA_2_224: in openssl_digest() 59 case Digest::SHA_2_256: in openssl_digest() 61 case Digest::SHA_2_384: in openssl_digest() 63 case Digest::SHA_2_512: in openssl_digest()
|
D | authorization_set.h | 300 AuthorizationSetBuilder& OaepMGFDigest(const std::vector<Digest>& digests); 301 AuthorizationSetBuilder& Digest(std::vector<Digest> digests); 325 AuthorizationSetBuilder& Digest(T&&... a) { in Digest() function 326 return Digest({std::forward<T>(a)...}); in Digest()
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 757 string MacMessage(const string& message, Digest digest, size_t mac_length) { in MacMessage() 761 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage() 764 void CheckHmacTestVector(const string& key, const string& message, Digest digest, in CheckHmacTestVector() 772 .Digest(digest), in CheckHmacTestVector() 1102 .Digest(Digest::NONE) in TEST_P() 1150 .Digest(Digest::NONE) in TEST_P() 1180 .Digest(Digest::NONE))); in TEST_P() 1191 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(190).Digest(Digest::NONE))); in TEST_P() 1205 .Digest(Digest::NONE))) in TEST_P() 1213 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(size).Digest(Digest::NONE))) in TEST_P() [all …]
|
D | openssl_utils.h | 34 inline const EVP_MD* openssl_digest(android::hardware::keymaster::V3_0::Digest digest) { in openssl_digest() 36 case android::hardware::keymaster::V3_0::Digest::NONE: in openssl_digest() 38 case android::hardware::keymaster::V3_0::Digest::MD5: in openssl_digest() 40 case android::hardware::keymaster::V3_0::Digest::SHA1: in openssl_digest() 42 case android::hardware::keymaster::V3_0::Digest::SHA_2_224: in openssl_digest() 44 case android::hardware::keymaster::V3_0::Digest::SHA_2_256: in openssl_digest() 46 case android::hardware::keymaster::V3_0::Digest::SHA_2_384: in openssl_digest() 48 case android::hardware::keymaster::V3_0::Digest::SHA_2_512: in openssl_digest()
|
D | keymaster_tags.h | 336 inline const char* stringify(Digest digest) { 338 case Digest::NONE: 340 case Digest::MD5: 342 case Digest::SHA1: 344 case Digest::SHA_2_224: 346 case Digest::SHA_2_256: 348 case Digest::SHA_2_384: 350 case Digest::SHA_2_512:
|
D | authorization_set.h | 291 AuthorizationSetBuilder& Digest(std::initializer_list<Digest> digests); 299 template <typename... T> AuthorizationSetBuilder& Digest(T&&... a) { in Digest() function 300 return Digest({std::forward<T>(a)...}); in Digest() 388 Authorization(TAG_DIGEST, Digest::NONE); in NoDigestOrPadding() 405 AuthorizationSetBuilder::Digest(std::initializer_list<V3_0::Digest> digests) { in Digest() function
|
D | key_param_output.h | 40 ::std::ostream& operator<<(::std::ostream& os, Digest value);
|
/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 627 .Digest(Digest::NONE) in TEST_P() 663 .Digest(Digest::NONE) in TEST_P() 694 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(key_size).Digest(Digest::NONE), in TEST_P() 725 .Digest(Digest::NONE))); in TEST_P() 739 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(key_size).Digest(Digest::NONE), in TEST_P() 744 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(190).Digest(Digest::NONE))); in TEST_P() 760 .Digest(Digest::NONE))); in TEST_P() 772 GenerateKey(AuthorizationSetBuilder().EcdsaSigningKey(size).Digest(Digest::NONE))) in TEST_P() 785 Digest digest; in TEST_P() 787 digest = Digest::SHA_2_256; in TEST_P() [all …]
|
D | KeymasterHidlTest.h | 167 string MacMessage(const string& message, Digest digest, size_t mac_length); 169 void CheckHmacTestVector(const string& key, const string& message, Digest digest, 214 std::vector<Digest> ValidDigests(bool withNone, bool withMD5); 215 std::vector<Digest> InvalidDigests();
|
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/ |
D | openssl_utils.h | 42 inline const EVP_MD* openssl_digest(android::hardware::keymaster::V4_0::Digest digest) { in openssl_digest() 44 case android::hardware::keymaster::V4_0::Digest::NONE: in openssl_digest() 46 case android::hardware::keymaster::V4_0::Digest::MD5: in openssl_digest() 48 case android::hardware::keymaster::V4_0::Digest::SHA1: in openssl_digest() 50 case android::hardware::keymaster::V4_0::Digest::SHA_2_224: in openssl_digest() 52 case android::hardware::keymaster::V4_0::Digest::SHA_2_256: in openssl_digest() 54 case android::hardware::keymaster::V4_0::Digest::SHA_2_384: in openssl_digest() 56 case android::hardware::keymaster::V4_0::Digest::SHA_2_512: in openssl_digest()
|
D | authorization_set.h | 293 AuthorizationSetBuilder& Digest(std::vector<Digest> digests); 301 AuthorizationSetBuilder& Digest(T&&... a) { in Digest() function 302 return Digest({std::forward<T>(a)...}); in Digest()
|
/hardware/interfaces/security/keymint/aidl/vts/functional/ |
D | DeviceUniqueAttestationTest.cpp | 76 .Digest(Digest::SHA_2_256) in TEST_P() 104 .Digest(Digest::SHA_2_256) in TEST_P() 131 .Digest(Digest::SHA_2_256) in TEST_P() 150 .Digest(Digest::SHA_2_256) in TEST_P() 188 .Digest(Digest::SHA_2_256) in TEST_P() 204 .Digest(Digest::SHA_2_256) in TEST_P() 253 .Digest(Digest::SHA_2_256) in TEST_P() 270 .Digest(Digest::SHA_2_256) in TEST_P() 323 .Digest(Digest::SHA_2_256) in TEST_P()
|
D | KeyMintAidlTestBase.cpp | 609 string KeyMintAidlTestBase::MacMessage(const string& message, Digest digest, size_t mac_length) { in MacMessage() 613 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage() 617 Digest digest, const string& expected_mac) { in CheckHmacTestVector() 624 .Digest(digest), in CheckHmacTestVector() 703 Digest digest = params.GetTagValue(TAG_DIGEST).value(); in LocalVerifyMessage() 710 if (digest == Digest::NONE) { in LocalVerifyMessage() 810 Digest digest = Digest::NONE; in LocalRsaEncryptMessage() 811 Digest mgf_digest = Digest::NONE; in LocalRsaEncryptMessage() 1148 vector<Digest> KeyMintAidlTestBase::ValidDigests(bool withNone, bool withMD5) { in ValidDigests() 1154 return {Digest::NONE, Digest::MD5, Digest::SHA1, in ValidDigests() [all …]
|
D | KeyMintAidlTestBase.h | 167 string MacMessage(const string& message, Digest digest, size_t mac_length); 169 void CheckHmacTestVector(const string& key, const string& message, Digest digest, 235 .Digest(Digest::SHA_2_256) 247 .Digest(Digest::NONE) 260 .Digest(Digest::SHA_2_256) 281 vector<Digest> ValidDigests(bool withNone, bool withMD5);
|
/hardware/interfaces/keymaster/4.1/vts/functional/ |
D | Keymaster4_1HidlTest.h | 77 .Digest(Digest::SHA_2_256) in CreateTestKeys() 88 .Digest(Digest::NONE) in CreateTestKeys() 99 .Digest(Digest::SHA_2_256) in CreateTestKeys() 122 .Digest(Digest::SHA_2_256)); in UseHmacKey() 130 AuthorizationSetBuilder().Digest(Digest::NONE).Padding(PaddingMode::NONE)); in UseRsaKey() 137 AuthorizationSetBuilder().Digest(Digest::SHA_2_256)); in UseEcdsaKey()
|
D | DeviceUniqueAttestationTest.cpp | 227 .Digest(Digest::SHA_2_256) in TEST_P() 244 .Digest(Digest::SHA_2_256) in TEST_P() 262 .Digest(Digest::SHA_2_256) in TEST_P() 297 .Digest(Digest::SHA_2_256) in TEST_P() 310 .Digest(Digest::SHA_2_256) in TEST_P() 344 .Digest(Digest::SHA_2_256) in TEST_P() 358 .Digest(Digest::SHA_2_256) in TEST_P() 399 .Digest(Digest::SHA_2_256) in TEST_P() 418 .Digest(Digest::SHA_2_256) in TEST_P()
|
/hardware/interfaces/security/keymint/aidl/android/hardware/security/keymint/ |
D | KeyParameterValue.aidl | 21 import android.hardware.security.keymint.Digest; 40 Digest digest;
|
D | Digest.aidl | 25 enum Digest { enum
|
/hardware/interfaces/keymaster/4.0/vts/performance/ |
D | Benchmark.cpp | 138 bool GenerateKey(Algorithm algorithm, int keySize, Digest digest = Digest::NONE, in GenerateKey() 148 .Digest(digest) 216 .Digest(getDigest(transform)); in getOperationParams() 374 Digest getDigest(string transform) { in getDigest() 376 return Digest::MD5; in getDigest() 379 return Digest::SHA1; in getDigest() 381 return Digest::SHA_2_224; in getDigest() 383 return Digest::SHA_2_256; in getDigest() 385 return Digest::SHA_2_384; in getDigest() 387 return Digest::SHA_2_512; in getDigest() [all …]
|
/hardware/interfaces/security/keymint/aidl/vts/performance/ |
D | KeyMintBenchmark.cpp | 122 Digest getDigest(string transform) { in getDigest() 124 return Digest::MD5; in getDigest() 127 return Digest::SHA1; in getDigest() 129 return Digest::SHA_2_224; in getDigest() 131 return Digest::SHA_2_256; in getDigest() 133 return Digest::SHA_2_384; in getDigest() 135 return Digest::SHA_2_512; in getDigest() 138 return Digest::SHA1; in getDigest() 140 return Digest::SHA_2_256; in getDigest() 142 return Digest::NONE; in getDigest() [all …]
|
/hardware/interfaces/security/keymint/aidl/aidl_api/android.hardware.security.keymint/current/android/hardware/security/keymint/ |
D | Digest.aidl | 37 enum Digest { enum
|
D | KeyParameterValue.aidl | 42 android.hardware.security.keymint.Digest digest;
|
/hardware/interfaces/security/keymint/aidl/aidl_api/android.hardware.security.keymint/1/android/hardware/security/keymint/ |
D | Digest.aidl | 37 enum Digest { enum
|
D | KeyParameterValue.aidl | 42 android.hardware.security.keymint.Digest digest;
|
/hardware/interfaces/security/keymint/support/ |
D | authorization_set.cpp | 199 Authorization(TAG_DIGEST, Digest::NONE); in NoDigestOrPadding() 227 AuthorizationSetBuilder& AuthorizationSetBuilder::Digest(std::vector<keymint::Digest> digests) { in Digest() function in aidl::android::hardware::security::keymint::AuthorizationSetBuilder 235 const std::vector<android::hardware::security::keymint::Digest>& digests) { in OaepMGFDigest()
|