Merge "Correct UseHmacKey parameter" into rvc-dev
This commit is contained in:
commit
ecd5e55cc1
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue