mirror of https://github.com/acidanthera/audk.git
0707d9296d
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> |
||
---|---|---|
.. | ||
Tcg2Config.vfr | ||
Tcg2ConfigDriver.c | ||
Tcg2ConfigDxe.inf | ||
Tcg2ConfigDxe.uni | ||
Tcg2ConfigDxeExtra.uni | ||
Tcg2ConfigImpl.c | ||
Tcg2ConfigImpl.h | ||
Tcg2ConfigNvData.h | ||
Tcg2ConfigPei.inf | ||
Tcg2ConfigPei.uni | ||
Tcg2ConfigPeiExtra.uni | ||
Tcg2ConfigPeim.c | ||
Tcg2ConfigStrings.uni | ||
Tcg2Internal.h | ||
TpmDetection.c |