audk/SecurityPkg/Tcg/Tcg2Config
Wei6 Xu 0707d9296d SecurityPkg/Tcg2Config: Hide BIOS unsupported hash algorithm from UI
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4731

TCG2 configuration UI shows all the hash algorithms that TPM hardware
supports in the checkbox. If user only selects one algorithm that is
supported by TPM hardware but not supported by BIOS and uncheck the
others, the SyncPcrAllocationsAndPcrMask in Tcg2Pei will not be able
to decide a viable PCR to activate, then an assert occurs.

Add check against PcdTcg2HashAlgorithmBitmap when deciding whether
to suppress the hash algorithm checkbox to avoid user to select the
hash algorithm which may cause an assert.

Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Wei6 Xu <wei6.xu@intel.com>
Reviewed-by: Rahul Kumar <rahul1.kumar@intel.com>
Acked-by: Jiewen Yao <jiewen.yao@intel.com>
2024-04-15 15:18:50 +00:00
..
Tcg2Config.vfr SecurityPkg/Tcg2Config: remove TPM2_ChangEPS if it is not supported. 2020-07-28 09:56:25 +00:00
Tcg2ConfigDriver.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tcg2ConfigDxe.inf SecurityPkg Tcg2Config: Move common definitions to new Tcg2Internal.h 2019-09-17 09:39:03 +08:00
Tcg2ConfigDxe.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
Tcg2ConfigDxeExtra.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
Tcg2ConfigImpl.c SecurityPkg/Tcg2Config: Hide BIOS unsupported hash algorithm from UI 2024-04-15 15:18:50 +00:00
Tcg2ConfigImpl.h SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tcg2ConfigNvData.h SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tcg2ConfigPei.inf SecurityPkg Tcg2Config: Move common definitions to new Tcg2Internal.h 2019-09-17 09:39:03 +08:00
Tcg2ConfigPei.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
Tcg2ConfigPeiExtra.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
Tcg2ConfigPeim.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
Tcg2ConfigStrings.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
Tcg2Internal.h SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00
TpmDetection.c SecurityPkg: Apply uncrustify changes 2021-12-07 17:24:28 +00:00