]> git.proxmox.com Git - mirror_edk2.git/commit
SecurityPkg: Correct NumberOfPCRBanks calculation.
authorYao, Jiewen <jiewen.yao@intel.com>
Mon, 18 Jan 2016 05:49:39 +0000 (05:49 +0000)
committerjyao1 <jyao1@Edk2>
Mon, 18 Jan 2016 05:49:39 +0000 (05:49 +0000)
commita3cad6f86701b951998cc656ac03f8e8dc5f0f98
tree87cfd4a5641b1d8fed8d22b6b8c1dea9d7f76632
parent87361c6a54e52a61e85c3605dc57c924e5ae3870
SecurityPkg: Correct NumberOfPCRBanks calculation.

Previously, NumberOfPCRBanks is calculated based on TPM
capability. However, there might be a case that TPM hardware
support 1 algorithm, but BIOS does not support and BIOS
mask it via PCD. This causes the conflict between
HashAlgorithmBitmap and NumberOfPCRBanks.
So we move the NumberOfPCRBanks calculation based on
HashAlgorithmBitmap to make sure the data is consistent.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com>
Reviewed-by: "Zhang, Chao B" <chao.b.zhang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19660 6f19259b-4bc3-4df7-8a09-765794883524
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c