From 97707f12fdabf5fab5942504dab711a665854942 Mon Sep 17 00:00:00 2001 From: Eddie James Date: Tue, 24 Oct 2023 10:43:49 -0500 Subject: tpm: Support boot measurements Add TPM2 functions to support boot measurement. This includes starting up the TPM, initializing/appending the event log, and measuring the U-Boot version. Much of the code was used in the EFI subsystem, so remove it there and use the common functions. Signed-off-by: Eddie James For the API moving around from EFI -> u-boot core Reviewed-by: Ilias Apalodimas For EFI testing Tested-by: Ilias Apalodimas Signed-off-by: Ilias Apalodimas --- lib/Kconfig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/Kconfig') diff --git a/lib/Kconfig b/lib/Kconfig index 79cf9ef..bc106e2 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -431,6 +431,10 @@ config TPM bool "Trusted Platform Module (TPM) Support" depends on DM imply DM_RNG + select SHA1 + select SHA256 + select SHA384 + select SHA512 help This enables support for TPMs which can be used to provide security features for your board. The TPM can be connected via LPC or I2C -- cgit v1.1