Hi all Apologies on resending so fast. We are close to the release and some patches are needed. This is v2 of [0]
Not much changed, since v1. The major change is that I managed to split the code and headers file moving around as Heinrich asked for easier review Changes since v1: - Added a comment on why we return EFI_INVALID_PARAMETER on failures while EFI_DEVICE_ERROR would make more sense - Fixed some typos - split patch 4 to 2 patches - collected r-b tags The testing was ok again, and comparing the eventlog between versions had no changes -- aprt from PCR0 which is expected Ilias Apalodimas (8): tpm: fix the return code, if the eventlog buffer is full efi_loader: fix the return values on efi_tcg efi_loader: remove unused TCG algo definitions tpm: Move TCG headers into a separate file tpm: Move TCG functions into a separate file efi_loader: remove unneeded header files tpm: Untangle tpm2_get_pcr_info() tpm: allow the user to select the compiled algorithms boot/Kconfig | 4 + boot/bootm.c | 1 + include/efi_tcg2.h | 9 +- include/tpm-v2.h | 388 +++---------------- include/tpm_tcg2.h | 348 +++++++++++++++++ lib/Kconfig | 6 +- lib/Makefile | 2 + lib/efi_loader/efi_tcg2.c | 129 ++++--- lib/tpm-v2.c | 767 +++----------------------------------- lib/tpm_tcg2.c | 731 ++++++++++++++++++++++++++++++++++++ 10 files changed, 1262 insertions(+), 1123 deletions(-) create mode 100644 include/tpm_tcg2.h create mode 100644 lib/tpm_tcg2.c -- 2.45.2