mbox series

[v2,0/3] Some tcgbios related fixes and updates

Message ID 20200330121029.866011-1-stefanb@linux.vnet.ibm.com
Headers show
Series Some tcgbios related fixes and updates | expand

Message

Stefan Berger March 30, 2020, 12:10 p.m. UTC
This series of patches modifies the logging of events so that only
active PCR banks are logged. An active PCR bank is recognized by
the pcrSelect[0] being != 0.

The vendorInfoSize was assumed to be u32 but it is u8.

Prepare the tcgbios for SHA3 hash algorithms that may be supported
by TPM2's some time in the future.

   Stefan

v1->v2:
   - added missing check for !sizeOfSelect

Stefan Berger (3):
  tcgbios: Only write logs for PCRs that are allocated
  tcgbios: Fix the vendorInfoSize to be of type uint8_t
  tcgbios: Add support for SHA3 type of algorithms

 lib/libtpm/tcgbios.c     | 65 ++++++++++++++++++++++++++++++----------
 lib/libtpm/tcgbios_int.h |  6 ++++
 2 files changed, 56 insertions(+), 15 deletions(-)