audk/SecurityPkg/Tcg
Rodrigo Gonzalez del Cueto 195f011973 SecurityPkg: Reallocate TPM Active PCRs based on platform support
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3515

In V4: Fixed patch format and uncrustify cleanup

In V3: Cleaned up comments, debug prints and updated patch to use the
new debug ENUM definitions.

- Replaced EFI_D_INFO with DEBUG_INFO.
- Replaced EFI_D_VERBOSE with DEBUG_VERBOSE.

In V2: Add case to RegisterHashInterfaceLib logic

RegisterHashInterfaceLib needs to correctly handle registering the HashLib
instance supported algorithm bitmap when PcdTpm2HashMask is set to zero.

The current implementation of SyncPcrAllocationsAndPcrMask() triggers
PCR bank reallocation only based on the intersection between
TpmActivePcrBanks and PcdTpm2HashMask.

When the software HashLibBaseCryptoRouter solution is used, no PCR bank
reallocation is occurring based on the supported hashing algorithms
registered by the HashLib instances.

Need to have an additional check for the intersection between the
TpmActivePcrBanks and the PcdTcg2HashAlgorithmBitmap populated by the
HashLib instances present on the platform's BIOS.

Signed-off-by: Rodrigo Gonzalez del Cueto <rodrigo.gonzalez.del.cueto@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
2021-12-17 15:03:43 +00:00
..
MemoryOverwriteControl SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
MemoryOverwriteRequestControlLock SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Opal/OpalPassword SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
PhysicalPresencePei SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tcg2Acpi SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tcg2Config SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tcg2Dxe SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tcg2Pei SecurityPkg: Reallocate TPM Active PCRs based on platform support 2021-12-17 15:03:43 +00:00
Tcg2PlatformDxe SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tcg2PlatformPei SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tcg2Smm SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
TcgConfigDxe SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
TcgDxe SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
TcgPei SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
TcgSmm SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00