Lines Matching refs:Digest
464 string KeymasterHidlTest::MacMessage(const string& message, Digest digest, size_t mac_length) { in MacMessage()
468 AuthorizationSetBuilder().Digest(digest).Authorization(TAG_MAC_LENGTH, mac_length)); in MacMessage()
471 void KeymasterHidlTest::CheckHmacTestVector(const string& key, const string& message, Digest digest, in CheckHmacTestVector()
479 .Digest(digest), in CheckHmacTestVector()
717 std::vector<Digest> KeymasterHidlTest::ValidDigests(bool withNone, bool withMD5) { in ValidDigests()
722 return {Digest::NONE, Digest::MD5, Digest::SHA1, in ValidDigests()
723 Digest::SHA_2_224, Digest::SHA_2_256, Digest::SHA_2_384, in ValidDigests()
724 Digest::SHA_2_512}; in ValidDigests()
726 return {Digest::NONE, Digest::SHA1, Digest::SHA_2_224, in ValidDigests()
727 Digest::SHA_2_256, Digest::SHA_2_384, Digest::SHA_2_512}; in ValidDigests()
730 return {Digest::MD5, Digest::SHA1, Digest::SHA_2_224, in ValidDigests()
731 Digest::SHA_2_256, Digest::SHA_2_384, Digest::SHA_2_512}; in ValidDigests()
733 return {Digest::SHA1, Digest::SHA_2_224, Digest::SHA_2_256, Digest::SHA_2_384, in ValidDigests()
734 Digest::SHA_2_512}; in ValidDigests()
739 return {Digest::NONE, Digest::SHA_2_256}; in ValidDigests()
741 return {Digest::SHA_2_256}; in ValidDigests()
751 std::vector<Digest> KeymasterHidlTest::InvalidDigests() { in InvalidDigests()