Lines Matching refs:Digest
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()
1155 Digest::SHA_2_224, Digest::SHA_2_256, Digest::SHA_2_384, in ValidDigests()
1156 Digest::SHA_2_512}; in ValidDigests()
1158 return {Digest::NONE, Digest::SHA1, Digest::SHA_2_224, in ValidDigests()
1159 Digest::SHA_2_256, Digest::SHA_2_384, Digest::SHA_2_512}; in ValidDigests()
1162 return {Digest::MD5, Digest::SHA1, Digest::SHA_2_224, in ValidDigests()
1163 Digest::SHA_2_256, Digest::SHA_2_384, Digest::SHA_2_512}; in ValidDigests()
1165 return {Digest::SHA1, Digest::SHA_2_224, Digest::SHA_2_256, Digest::SHA_2_384, in ValidDigests()
1166 Digest::SHA_2_512}; in ValidDigests()
1171 return {Digest::NONE, Digest::SHA_2_256}; in ValidDigests()
1173 return {Digest::SHA_2_256}; in ValidDigests()
1210 AuthorizationSetBuilder().Authorization(TAG_MAC_LENGTH, 128).Digest(Digest::SHA_2_256)); in UseHmacKey()
1218 AuthorizationSetBuilder().Digest(Digest::NONE).Padding(PaddingMode::NONE)); in UseRsaKey()
1224 AuthorizationSetBuilder().Digest(Digest::SHA_2_256)); in UseEcdsaKey()