diff options
author | Wei6 Xu <wei6.xu@intel.com> | 2024-04-12 15:14:40 +0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-04-15 15:18:50 +0000 |
commit | 0707d9296d7536c5baf43b23d70eafce10b1ab03 (patch) | |
tree | 06d37d9249864d2ab671cb006bdb28d6feabb58f /BaseTools/Source | |
parent | e25808f5018ea601d0adf1d6d10c1cb3cb6a050b (diff) | |
download | edk2-0707d9296d7536c5baf43b23d70eafce10b1ab03.zip edk2-0707d9296d7536c5baf43b23d70eafce10b1ab03.tar.gz edk2-0707d9296d7536c5baf43b23d70eafce10b1ab03.tar.bz2 |
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>
Diffstat (limited to 'BaseTools/Source')
0 files changed, 0 insertions, 0 deletions