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)