From 9ce755d05ed56753105bce6f4d75f4ddbc98cb26 Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Mon, 23 Jan 2023 18:31:27 -0600 Subject: security/vboot: Add store/validate methods for AMD VBIOS FMAP cache Add methods to store and retrieve the hash of the data stored in the VBIOS cache FMAP region. Add a dedicated index in TPM NVRAM to store the hash, and methods to calculate/read/write it. Modeled after mrc_cache_hash_tpm.{c,h} BUG=b:255812886 TEST=tested with rest of patch train Change-Id: I030017d3bf956b8593bc09073ad6545b80a5b52b Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/c/coreboot/+/72401 Tested-by: build bot (Jenkins) Reviewed-by: Martin L Roth --- src/security/vboot/secdata_mock.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/security/vboot/secdata_mock.c') diff --git a/src/security/vboot/secdata_mock.c b/src/security/vboot/secdata_mock.c index 57aed61a71..9d8c13d2ef 100644 --- a/src/security/vboot/secdata_mock.c +++ b/src/security/vboot/secdata_mock.c @@ -69,3 +69,13 @@ vb2_error_t antirollback_write_space_mrc_hash(uint32_t index, const uint8_t *dat { return VB2_SUCCESS; } + +vb2_error_t antirollback_read_space_vbios_hash(uint8_t *data, uint32_t size) +{ + return VB2_SUCCESS; +} + +vb2_error_t antirollback_write_space_vbios_hash(const uint8_t *data, uint32_t size) +{ + return VB2_SUCCESS; +} -- cgit v1.2.3