Merge "Correct UseHmacKey parameter" into rvc-dev

This commit is contained in:
TreeHugger Robot 2020-04-15 02:19:58 +00:00 committed by Android (Google) Code Review
commit ecd5e55cc1

View file

@ -115,7 +115,9 @@ class Keymaster4_1HidlTest : public V4_0::test::KeymasterHidlTest {
ErrorCode UseHmacKey(const HidlBuf& hmacKeyBlob) { ErrorCode UseHmacKey(const HidlBuf& hmacKeyBlob) {
auto [result, mac, out_params] = auto [result, mac, out_params] =
ProcessMessage(hmacKeyBlob, KeyPurpose::SIGN, "1234567890123456", ProcessMessage(hmacKeyBlob, KeyPurpose::SIGN, "1234567890123456",
AuthorizationSetBuilder().Authorization(TAG_MAC_LENGTH, 128)); AuthorizationSetBuilder()
.Authorization(TAG_MAC_LENGTH, 128)
.Digest(Digest::SHA_2_256));
return result; return result;
} }