commit | febf8e62563008075b1c6c8b2c1fb3f0d01cc0da | [log] [tgz] |
---|---|---|
author | Shawn Willden <swillden@google.com> | Wed Jun 02 13:52:39 2021 -0600 |
committer | Shawn Willden <swillden@google.com> | Wed Jun 02 13:52:39 2021 -0600 |
tree | 90e58285fb1285aab790ce034cb692f40454159e | |
parent | b0381209436ea74397087f6c85eedc0b0b7f3d33 [diff] |
Correct handling of keystore-prefixed blobs. keystore2 adds some blob prefixes to TrustyKeymaster key blobs, with a byte to indicate whether the blob is hardware-backed or a software blob. The Trusty KeymasterContext had the values of this indicator byte inverted, causing Trusty KeyMint to interpret software blobs as hardware and vice versa, making it incapable of using either. Bug: 177729159 Test: VtsAidlKeyMintTargetTest Change-Id: I26083e7d375c9dc85966181508c3611eadc16c14