The following two patches add a menu item to the TPM 2.0 menu that allows a user to activate and deactivate the PCR banks the attached TPM 2.0 supports.
This operation has to be done while in the firmware.
Stefan
v2->v3: - Activate the selection of activate PCR banks right from the menu - Undo some other changes, such as #define in src/utils.h
v1->v2: - Refactor existing function for looking up the buffer size a hash needs to use a table instead; we extend the table then in patch 2
Stefan Berger (2): tcgbios: Use table to convert hash to buffer size tcgbios: Implement TPM 2.0 menu item to activate and deactivate PCR banks
src/std/tcg.h | 17 ++++ src/tcgbios.c | 264 +++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 268 insertions(+), 13 deletions(-)