mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:23:37 +00:00
Relax HMAC computation check
This KM4 key agreement check is causing some pain on early units that aren't completely provisioned in both locked and non-Green (unlocked) states. This doesn't impact KM3 devices (Pixel 2016/2017 etc.) Bug: 110301629 Change-Id: I5a737ac8a335863b1099c29cf3c0496adeb41e15
This commit is contained in:
committed by
Chris Fries
parent
f3d1d3aed3
commit
a1c4e0ec5d
@@ -164,10 +164,10 @@ static void computeHmac(const Keymaster::KeymasterSet& keymasters,
|
||||
sharingCheck = curSharingCheck;
|
||||
firstKeymaster = false;
|
||||
}
|
||||
CHECK(curSharingCheck == sharingCheck)
|
||||
<< "HMAC computation failed for " << *keymaster //
|
||||
<< " Expected: " << sharingCheck //
|
||||
<< " got: " << curSharingCheck;
|
||||
if (curSharingCheck != sharingCheck)
|
||||
LOG(WARNING) << "HMAC computation failed for " << *keymaster //
|
||||
<< " Expected: " << sharingCheck //
|
||||
<< " got: " << curSharingCheck;
|
||||
});
|
||||
CHECK(rc.isOk()) << "Failed to communicate with " << *keymaster
|
||||
<< " error: " << rc.description();
|
||||
|
||||
Reference in New Issue
Block a user