mbox series

[0/3,v2] extend EFI_TCG2_PROTOCOL support

Message ID 20201130094742.2088573-1-ilias.apalodimas@linaro.org
Headers show
Series extend EFI_TCG2_PROTOCOL support | expand


Ilias Apalodimas Nov. 30, 2020, 9:47 a.m. UTC

This is v2 of [1].
The issues regarding comments have been addressed and all of the 
newly added structures now have Sphinx style comments.

Changes since v1:
- Eventlog size is now a Kconfig instead of a #define. The default
  size has been kept to 4096b
- Replaced struct tpm_digest with u8 digest[TPM2_SHA1_DIGEST_SIZE].
  This is effectively the same thing, but closer to what the spec defines
- Add Sphinx style comments on new structs
- Remove _put_unaligned_le usage from u8 values
- Remove definitions of algorithms that were duplicated by mistake in 

[1] https://lists.denx.de/pipermail/u-boot/2020-November/433629.html

Ilias Apalodimas (3):
  tpm: Add tpm2 headers for TCG2 eventlog support
  efi_loader: Introduce eventlog support for TCG2_PROTOCOL
  cmd: efidebug: Add support for TCG2 final events table

 cmd/efidebug.c             |   4 +
 include/efi_api.h          |   4 +
 include/efi_tcg2.h         |  71 ++++-
 include/tpm-v2.h           |  82 ++++++
 lib/efi_loader/Kconfig     |   9 +
 lib/efi_loader/efi_setup.c |  12 +-
 lib/efi_loader/efi_tcg2.c  | 553 +++++++++++++++++++++++++++++++++++--
 7 files changed, 711 insertions(+), 24 deletions(-)