]> git.dujemihanovic.xyz Git - u-boot.git/commit
efi_loader: add PE/COFF image measurement
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Wed, 26 May 2021 03:09:58 +0000 (12:09 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 28 May 2021 14:17:01 +0000 (16:17 +0200)
commit163a0d7e2cbdbdf26d90ac8d30c0495b814f3245
treee7ea6a6d79f9e4769f7fcb0c0c909992954a2423
parent464010b0be09505aaf50ec208f996a6cf478a2dc
efi_loader: add PE/COFF image measurement

"TCG PC Client Platform Firmware Profile Specification"
requires to measure every attempt to load and execute
a OS Loader(a UEFI application) into PCR[4].
This commit adds the PE/COFF image measurement, extends PCR,
and appends measurement into Event Log.

Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Tested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Replace CONFIG_HASH_CALCULATE by CONFIG_HASH
Fix conversions between pointers and u64.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
include/efi_loader.h
include/efi_tcg2.h
include/tpm-v2.h
lib/efi_loader/Kconfig
lib/efi_loader/efi_image_loader.c
lib/efi_loader/efi_tcg2.c