MA-15487 Pass correct verified boot/key hash to keymaster
authorJi Luo <ji.luo@nxp.com>
Thu, 19 Sep 2019 10:40:06 +0000 (18:40 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:18 +0000 (09:49 +0800)
commit8d166453cf859dcb459b6e0cf09cbcc4fb6d739a
treedc2c8798414eddf8371aa5314bfeef1bff7e31e1
parenta45dca90ff92f548f157f8739a76f249ca8241cb
MA-15487 Pass correct verified boot/key hash to keymaster

Keymaster 4 HAL will require correct verified boot hash and
verified key hash for keymaster boot parameters. Here the
verified boot hash should be the sha256 hash of the vbmeta
image, and the verified key hash should be the sha256 hash
of vbmeta public key.

In unlocked state, the verified key hash should be passed
with 32-byte '\0' string.

Test: VtsHalKeymasterV4_0Target#AttestationTest.EcAttestation
      VtsHalKeymasterV4_0Target#AttestationTest.RsaAttestation

Change-Id: I869f6625123200ec265b854a3a378dd841c947a7
Signed-off-by: Ji Luo <ji.luo@nxp.com>
(cherry picked from commit 5255073374df88177805682dc6901e0fd63b1576)
(cherry picked from commit fa0fcc654fc825073d9ecd0cb1f8c014eac6a4a1)
drivers/fastboot/fb_fsl/fb_fsl_boot.c