Lines Matching refs:Digest
439 string KeymasterHidlTest::MacMessage(const string& message, Digest digest, size_t mac_length) { in MacMessage()
443 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage()
446 void KeymasterHidlTest::CheckHmacTestVector(const string& key, const string& message, Digest digest, in CheckHmacTestVector()
454 .Digest(digest), in CheckHmacTestVector()
710 std::vector<Digest> KeymasterHidlTest::ValidDigests(bool withNone, bool withMD5) { in ValidDigests()
716 return {Digest::NONE, Digest::MD5, Digest::SHA1, in ValidDigests()
717 Digest::SHA_2_224, Digest::SHA_2_256, Digest::SHA_2_384, in ValidDigests()
718 Digest::SHA_2_512}; in ValidDigests()
720 return {Digest::NONE, Digest::SHA1, Digest::SHA_2_224, in ValidDigests()
721 Digest::SHA_2_256, Digest::SHA_2_384, Digest::SHA_2_512}; in ValidDigests()
724 return {Digest::MD5, Digest::SHA1, Digest::SHA_2_224, in ValidDigests()
725 Digest::SHA_2_256, Digest::SHA_2_384, Digest::SHA_2_512}; in ValidDigests()
727 return {Digest::SHA1, Digest::SHA_2_224, Digest::SHA_2_256, Digest::SHA_2_384, in ValidDigests()
728 Digest::SHA_2_512}; in ValidDigests()
733 return {Digest::NONE, Digest::SHA_2_256}; in ValidDigests()
735 return {Digest::SHA_2_256}; in ValidDigests()
745 std::vector<Digest> KeymasterHidlTest::InvalidDigests() { in InvalidDigests()