vendorcode/eltan/security: Align mboot with coreboot tpm
commit397ce3c45fc8d2469c07565879c09d8fb00626ec
authorWim Vervoorn <wvervoorn@eltan.com>
Wed, 30 Oct 2019 16:06:58 +0000 (30 17:06 +0100)
committerPatrick Georgi <pgeorgi@google.com>
Tue, 5 Nov 2019 15:01:37 +0000 (5 15:01 +0000)
tree8940487c56ddef7bb92a8fafc9c89ecdc4a4486d
parent8119841ec0da8ab088ed23961d3a3e4b25551f18
vendorcode/eltan/security: Align mboot with coreboot tpm

Align the eltan mboot support with coreboot tpm support to limit the amount of custom code.

We now only support SHA256 pcrs, only single a single digest will be handled in a call.
The pcr invalidation has been changed fixed values are now loaded while the correct algortihm is
selected.

BUG=N/A
TEST=tested on fbg1701

Change-Id: Id11389ca90c1e6121293353402a2dd464a2e6727
Signed-off-by: Wim Vervoorn <wvervoorn@eltan.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/36483
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Frans Hendriks <fhendriks@eltan.com>
src/mainboard/facebook/fbg1701/romstage.c
src/vendorcode/eltan/security/mboot/mboot.c
src/vendorcode/eltan/security/mboot/mboot.h
src/vendorcode/eltan/security/mboot/mboot_func.c