audk/SecurityPkg/Library
Star Zeng 9fe9cf9acb SecurityPkg HashLibRouter: Avoid incorrect PcdTcg2HashAlgorithmBitmap
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=244

Currently, when software HashLib (HashLibBaseCryptoRouter) and related
HashInstanceLib instances are used, PcdTcg2HashAlgorithmBitmap is
expected to be configured to 0 in platform dsc.
But PcdTcg2HashAlgorithmBitmap has default value 0xFFFFFFFF in
SecurityPkg.dec, and some platforms forget to configure it to 0 or
still configure it to 0xFFFFFFFF in platform dsc, that will make final
PcdTcg2HashAlgorithmBitmap value incorrect.

This patch is to add CONSTRUCTOR in HashLib (HashLibBaseCryptoRouter)
and PcdTcg2HashAlgorithmBitmap will be set to 0 in the CONSTRUCTOR.

Current HASH_LIB_PEI_ROUTER_GUID HOB created in
HashLibBaseCryptoRouterPei is shared between modules that link
HashLibBaseCryptoRouterPei.
To avoid mutual interference, separated HASH_LIB_PEI_ROUTER_GUID HOBs
with gEfiCallerIdGuid Identifier will be created for those modules.

This patch is also to add check in HashLib (HashLibBaseCryptoRouter)
for the mismatch of supported HashMask between modules that may link
different HashInstanceLib instances, warning will be reported if
mismatch is found.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Chao Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
2017-02-08 18:52:07 +08:00
..
AuthVariableLib SecurityPkg/AuthVariableLib: rebase to ARRAY_SIZE() 2016-10-27 11:15:20 +02:00
DxeDeferImageLoadLib SecurityPkg: Fix typos in comments 2016-11-15 15:45:31 +08:00
DxeImageAuthenticationStatusLib
DxeImageVerificationLib SecurityPkg: Tcg2Dxe: Use UEFI_VARIABLE_DATA 2017-01-25 10:24:14 +08:00
DxeRsa2048Sha256GuidedSectionExtractLib SecurityPkg: Fix typos in comments 2016-11-15 15:45:31 +08:00
DxeTcg2PhysicalPresenceLib SecurityPkg: Tcg2PhysicalPresence: Define TCG2 PP Flags Initial Pcd 2016-12-29 09:45:15 +08:00
DxeTcgPhysicalPresenceLib Revert old "Enable BlockSid related PP actions" patch series. 2016-11-23 16:30:03 +08:00
DxeTpm2MeasureBootLib
DxeTpmMeasureBootLib
DxeTpmMeasurementLib
DxeTrEEPhysicalPresenceLib
FmpAuthenticationLibPkcs7 SecurityPkg/FmpAuthenticationLib: Refine to compare with same type 2017-01-12 21:26:29 +08:00
FmpAuthenticationLibRsa2048Sha256 SecurityPkg/FmpAuthenticationLib: Refine to compare with same type 2017-01-12 21:26:29 +08:00
HashInstanceLibSha1 SecurityPkg: Fix typo 'Ihis' with 'This' in codes 2016-10-18 09:41:56 +08:00
HashInstanceLibSha256 SecurityPkg: Fix typo 'Ihis' with 'This' in codes 2016-10-18 09:41:56 +08:00
HashLibBaseCryptoRouter SecurityPkg HashLibRouter: Avoid incorrect PcdTcg2HashAlgorithmBitmap 2017-02-08 18:52:07 +08:00
HashLibTpm2 SecurityPkg: Fix typo 'Ihis' with 'This' in codes 2016-10-18 09:41:56 +08:00
OpalPasswordSupportLib
PeiRsa2048Sha256GuidedSectionExtractLib SecurityPkg: Fix typos in comments 2016-11-15 15:45:31 +08:00
PeiTcg2PhysicalPresenceLib SecurityPkg Tcg2PPLib: Support BlockSID related actions 2016-11-28 14:50:42 +08:00
PlatformSecureLibNull
SmmTcg2PhysicalPresenceLib SecurityPkg Tcg2PPLib: Support BlockSID related actions 2016-11-28 14:50:42 +08:00
Tcg2PpVendorLibNull
TcgPpVendorLibNull
TcgStorageCoreLib SecurityPkg TcgStorageCoreLib: ASSERT to ensure 'ByteSeq' is not NULL 2016-11-22 16:31:44 +08:00
TcgStorageOpalLib SecurityPkg: Fix typos in comments 2016-11-15 15:45:31 +08:00
Tpm2CommandLib SecurityPkg: Tcg2Smm: TPM2 Vendor specific HID 2016-12-29 09:45:13 +08:00
Tpm2DeviceLibDTpm SecurityPkg: Fix typo 'Ihis' with 'This' in codes 2016-10-18 09:41:56 +08:00
Tpm2DeviceLibRouter SecurityPkg: Fix typo 'Ihis' with 'This' in codes 2016-10-18 09:41:56 +08:00
Tpm2DeviceLibTcg2 SecurityPkg: Fix typo 'Ihis' with 'This' in codes 2016-10-18 09:41:56 +08:00
Tpm2DeviceLibTrEE SecurityPkg: Fix typo 'Ihis' with 'This' in codes 2016-10-18 09:41:56 +08:00
Tpm12CommandLib SecurityPkg/Tpm12CommandLib: Always check response returnCode 2017-01-25 14:18:30 -08:00
Tpm12DeviceLibDTpm
Tpm12DeviceLibTcg SecurityPkg: Fix typo 'Ihis' with 'This' in codes 2016-10-18 09:41:56 +08:00
TpmCommLib
TrEEPpVendorLibNull