2011-09-02 09:49:32 +02:00
|
|
|
## @file
|
|
|
|
# Security Module Package for All Architectures.
|
|
|
|
#
|
2021-03-12 06:32:41 +01:00
|
|
|
# Copyright (c) 2009 - 2021, Intel Corporation. All rights reserved.<BR>
|
2020-02-28 15:23:27 +01:00
|
|
|
# (C) Copyright 2015-2020 Hewlett Packard Enterprise Development LP<BR>
|
2021-10-12 14:45:46 +02:00
|
|
|
# Copyright (c) 2022, Loongson Technology Corporation Limited. All rights reserved.<BR>
|
2022-10-28 17:32:55 +02:00
|
|
|
# Copyright (c) 2021 - 2022, Arm Limited. All rights reserved.<BR>
|
2019-04-04 01:06:56 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2011-09-02 09:49:32 +02:00
|
|
|
#
|
|
|
|
##
|
|
|
|
|
|
|
|
[Defines]
|
|
|
|
PLATFORM_NAME = SecurityPkg
|
|
|
|
PLATFORM_GUID = B2C4614D-AE76-47ba-B876-5988BFED064F
|
2018-01-22 09:52:29 +01:00
|
|
|
PLATFORM_VERSION = 0.98
|
2011-09-02 09:49:32 +02:00
|
|
|
DSC_SPECIFICATION = 0x00010005
|
|
|
|
OUTPUT_DIRECTORY = Build/SecurityPkg
|
2021-10-12 14:45:46 +02:00
|
|
|
SUPPORTED_ARCHITECTURES = IA32|X64|EBC|ARM|AARCH64|RISCV64|LOONGARCH64
|
2016-01-19 05:07:17 +01:00
|
|
|
BUILD_TARGETS = DEBUG|RELEASE|NOOPT
|
2011-09-02 09:49:32 +02:00
|
|
|
SKUID_IDENTIFIER = DEFAULT
|
|
|
|
|
2021-03-12 06:32:41 +01:00
|
|
|
!include MdePkg/MdeLibs.dsc.inc
|
|
|
|
|
2011-09-02 09:49:32 +02:00
|
|
|
[LibraryClasses]
|
|
|
|
DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf
|
2016-03-29 08:50:37 +02:00
|
|
|
DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf
|
2011-09-02 09:49:32 +02:00
|
|
|
BaseLib|MdePkg/Library/BaseLib/BaseLib.inf
|
|
|
|
SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf
|
|
|
|
TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf
|
|
|
|
BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf
|
|
|
|
MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf
|
|
|
|
PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf
|
|
|
|
UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
|
2013-09-18 07:31:18 +02:00
|
|
|
PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf
|
2016-07-13 14:28:15 +02:00
|
|
|
PeCoffLib|MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf
|
|
|
|
PeCoffExtraActionLib|MdePkg/Library/BasePeCoffExtraActionLibNull/BasePeCoffExtraActionLibNull.inf
|
2011-09-02 09:49:32 +02:00
|
|
|
|
|
|
|
DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf
|
|
|
|
UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
|
|
|
|
UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
|
|
|
|
DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf
|
|
|
|
UefiLib|MdePkg/Library/UefiLib/UefiLib.inf
|
|
|
|
DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf
|
|
|
|
UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf
|
|
|
|
UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf
|
2015-01-13 02:18:11 +01:00
|
|
|
ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
|
|
|
|
OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf
|
2011-09-02 09:49:32 +02:00
|
|
|
HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf
|
|
|
|
UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf
|
|
|
|
PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf
|
|
|
|
IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf
|
|
|
|
TpmCommLib|SecurityPkg/Library/TpmCommLib/TpmCommLib.inf
|
2011-09-27 10:44:33 +02:00
|
|
|
PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
|
|
|
|
TcgPhysicalPresenceLib|SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf
|
2012-11-27 06:16:15 +01:00
|
|
|
TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
|
2013-09-18 07:31:18 +02:00
|
|
|
Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
|
|
|
|
Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
Tcg2PhysicalPresenceLib|SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenceLib.inf
|
2015-01-12 04:16:49 +01:00
|
|
|
TcgPpVendorLib|SecurityPkg/Library/TcgPpVendorLibNull/TcgPpVendorLibNull.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
Tcg2PpVendorLib|SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
|
2015-10-09 08:03:26 +02:00
|
|
|
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
|
2016-03-29 08:50:37 +02:00
|
|
|
PciLib|MdePkg/Library/BasePciLibPciExpress/BasePciLibPciExpress.inf
|
2016-08-19 09:30:36 +02:00
|
|
|
PciSegmentLib|MdePkg/Library/BasePciSegmentLibPci/BasePciSegmentLibPci.inf
|
2016-03-29 08:50:37 +02:00
|
|
|
S3BootScriptLib|MdeModulePkg/Library/PiDxeS3BootScriptLib/DxeS3BootScriptLib.inf
|
|
|
|
SmbusLib|MdePkg/Library/BaseSmbusLibNull/BaseSmbusLibNull.inf
|
|
|
|
LockBoxLib|MdeModulePkg/Library/LockBoxNullLib/LockBoxNullLib.inf
|
|
|
|
PciExpressLib|MdePkg/Library/BasePciExpressLib/BasePciExpressLib.inf
|
|
|
|
TcgStorageCoreLib|SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCoreLib.inf
|
|
|
|
TcgStorageOpalLib|SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalLib.inf
|
2016-09-14 10:54:50 +02:00
|
|
|
ResetSystemLib|MdeModulePkg/Library/BaseResetSystemLibNull/BaseResetSystemLibNull.inf
|
2020-08-18 08:26:15 +02:00
|
|
|
TcgEventLogRecordLib|SecurityPkg/Library/TcgEventLogRecordLib/TcgEventLogRecordLib.inf
|
2021-03-05 05:14:15 +01:00
|
|
|
MmUnblockMemoryLib|MdePkg/Library/MmUnblockMemoryLib/MmUnblockMemoryLibNull.inf
|
2021-08-02 12:46:23 +02:00
|
|
|
SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
|
2022-04-12 00:07:34 +02:00
|
|
|
PlatformPKProtectionLib|SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
|
2021-08-02 12:46:24 +02:00
|
|
|
SecureBootVariableProvisionLib|SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
|
2022-05-16 09:42:15 +02:00
|
|
|
TdxLib|MdePkg/Library/TdxLib/TdxLib.inf
|
2023-05-08 06:20:51 +02:00
|
|
|
VariablePolicyHelperLib|MdeModulePkg/Library/VariablePolicyHelperLib/VariablePolicyHelperLib.inf
|
2011-09-02 09:49:32 +02:00
|
|
|
|
2021-08-02 12:46:32 +02:00
|
|
|
[LibraryClasses.ARM, LibraryClasses.AARCH64]
|
2018-11-01 16:06:11 +01:00
|
|
|
#
|
|
|
|
# It is not possible to prevent the ARM compiler for generic intrinsic functions.
|
2019-10-09 09:20:15 +02:00
|
|
|
# This library provides the intrinsic functions generate by a given compiler.
|
2018-11-01 16:06:11 +01:00
|
|
|
# And NULL mean link this library into all ARM images.
|
|
|
|
#
|
|
|
|
NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf
|
|
|
|
|
|
|
|
# Add support for GCC stack protector
|
|
|
|
NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
|
|
|
|
|
2021-11-02 02:10:50 +01:00
|
|
|
ArmSoftFloatLib|ArmPkg/Library/ArmSoftFloatLib/ArmSoftFloatLib.inf
|
|
|
|
|
2022-10-28 17:32:55 +02:00
|
|
|
ArmTrngLib|MdePkg/Library/BaseArmTrngLibNull/BaseArmTrngLibNull.inf
|
|
|
|
|
2021-11-02 02:10:50 +01:00
|
|
|
[LibraryClasses.ARM]
|
|
|
|
RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
|
|
|
|
|
|
|
|
[LibraryClasses.RISCV64]
|
|
|
|
RngLib|MdePkg/Library/BaseRngLibTimerLib/BaseRngLibTimerLib.inf
|
|
|
|
|
2022-05-16 09:42:15 +02:00
|
|
|
[LibraryClasses.X64.SEC]
|
|
|
|
HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
|
2022-06-05 03:02:46 +02:00
|
|
|
TpmMeasurementLib|SecurityPkg/Library/SecTpmMeasurementLib/SecTpmMeasurementLibTdx.inf
|
2022-05-16 09:42:15 +02:00
|
|
|
|
|
|
|
[LibraryClasses.X64.DXE_DRIVER]
|
|
|
|
HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
|
|
|
|
|
2011-09-02 09:49:32 +02:00
|
|
|
[LibraryClasses.common.PEIM]
|
|
|
|
PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf
|
|
|
|
PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf
|
|
|
|
PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf
|
|
|
|
HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf
|
|
|
|
MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf
|
2019-10-28 21:21:26 +01:00
|
|
|
!ifdef CONTINUOUS_INTEGRATION
|
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
|
|
|
|
!else
|
|
|
|
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
|
|
|
|
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
|
2012-07-20 05:36:21 +02:00
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf
|
2019-10-28 21:21:26 +01:00
|
|
|
!endif
|
2013-09-18 07:31:18 +02:00
|
|
|
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
|
2015-01-13 02:18:11 +01:00
|
|
|
ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf
|
2013-09-18 07:31:18 +02:00
|
|
|
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
|
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
Tcg2PhysicalPresenceLib|SecurityPkg/Library/PeiTcg2PhysicalPresenceLib/PeiTcg2PhysicalPresenceLib.inf
|
2020-07-22 10:21:07 +02:00
|
|
|
TpmMeasurementLib|SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.inf
|
2015-10-09 08:03:26 +02:00
|
|
|
RngLib|MdePkg/Library/BaseRngLib/BaseRngLib.inf
|
2011-09-02 09:49:32 +02:00
|
|
|
|
|
|
|
[LibraryClasses.common.DXE_DRIVER]
|
|
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
|
|
|
ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf
|
2019-10-28 21:21:26 +01:00
|
|
|
!ifdef CONTINUOUS_INTEGRATION
|
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
|
|
|
|
!else
|
|
|
|
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
|
|
|
|
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
|
2012-07-20 05:36:21 +02:00
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
2019-10-28 21:21:26 +01:00
|
|
|
!endif
|
2013-09-18 07:31:18 +02:00
|
|
|
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
|
|
|
|
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
|
2016-02-24 13:21:28 +01:00
|
|
|
FileExplorerLib|MdeModulePkg/Library/FileExplorerLib/FileExplorerLib.inf
|
2011-09-02 09:49:32 +02:00
|
|
|
|
|
|
|
[LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_SAL_DRIVER,]
|
2011-10-19 14:40:52 +02:00
|
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
2011-09-02 09:49:32 +02:00
|
|
|
DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf
|
2013-09-18 07:31:18 +02:00
|
|
|
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
|
|
|
|
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
|
2011-09-02 09:49:32 +02:00
|
|
|
|
2012-07-20 05:36:21 +02:00
|
|
|
[LibraryClasses.common.DXE_RUNTIME_DRIVER]
|
2015-01-13 02:23:15 +01:00
|
|
|
ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf
|
2019-10-28 21:21:26 +01:00
|
|
|
!ifdef CONTINUOUS_INTEGRATION
|
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
|
|
|
|
!else
|
|
|
|
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
|
|
|
|
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
|
2012-07-20 05:36:21 +02:00
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf
|
2019-10-28 21:21:26 +01:00
|
|
|
!endif
|
2013-09-18 07:31:18 +02:00
|
|
|
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
|
|
|
|
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
|
2012-07-20 05:36:21 +02:00
|
|
|
|
|
|
|
[LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION]
|
2019-10-28 21:21:26 +01:00
|
|
|
!ifdef CONTINUOUS_INTEGRATION
|
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
|
|
|
|
!else
|
|
|
|
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
|
|
|
|
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
|
2012-07-20 05:36:21 +02:00
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf
|
2019-10-28 21:21:26 +01:00
|
|
|
!endif
|
2013-09-18 07:31:18 +02:00
|
|
|
HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
|
2021-08-02 12:46:32 +02:00
|
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
2013-09-18 07:31:18 +02:00
|
|
|
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
|
2012-07-20 05:36:21 +02:00
|
|
|
|
2011-09-02 09:49:32 +02:00
|
|
|
[LibraryClasses.common.DXE_SMM_DRIVER]
|
2011-10-19 14:40:52 +02:00
|
|
|
HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf
|
2011-09-02 09:49:32 +02:00
|
|
|
SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf
|
2020-12-18 00:24:08 +01:00
|
|
|
MmServicesTableLib|MdePkg/Library/MmServicesTableLib/MmServicesTableLib.inf
|
2011-09-02 09:49:32 +02:00
|
|
|
MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf
|
2015-01-13 02:23:15 +01:00
|
|
|
ReportStatusCodeLib|MdeModulePkg/Library/SmmReportStatusCodeLib/SmmReportStatusCodeLib.inf
|
2015-02-02 15:43:28 +01:00
|
|
|
SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf
|
2019-10-28 21:21:26 +01:00
|
|
|
!ifdef CONTINUOUS_INTEGRATION
|
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLibNull/BaseCryptLibNull.inf
|
|
|
|
!else
|
|
|
|
IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf
|
|
|
|
OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf
|
2011-09-02 09:49:32 +02:00
|
|
|
BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf
|
2019-10-28 21:21:26 +01:00
|
|
|
!endif
|
2013-09-18 07:31:18 +02:00
|
|
|
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
|
|
|
|
Tcg2PhysicalPresenceLib|SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/SmmTcg2PhysicalPresenceLib.inf
|
2017-05-03 03:22:55 +02:00
|
|
|
SmmIoLib|MdePkg/Library/SmmIoLib/SmmIoLib.inf
|
2016-03-29 08:50:37 +02:00
|
|
|
|
2021-03-05 05:14:14 +01:00
|
|
|
[LibraryClasses.common.MM_STANDALONE]
|
|
|
|
StandaloneMmDriverEntryPoint|MdePkg/Library/StandaloneMmDriverEntryPoint/StandaloneMmDriverEntryPoint.inf
|
|
|
|
MmServicesTableLib|MdePkg/Library/StandaloneMmServicesTableLib/StandaloneMmServicesTableLib.inf
|
|
|
|
Tcg2PhysicalPresenceLib|SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/StandaloneMmTcg2PhysicalPresenceLib.inf
|
|
|
|
MemLib|StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf
|
|
|
|
HobLib|StandaloneMmPkg/Library/StandaloneMmHobLib/StandaloneMmHobLib.inf
|
|
|
|
MemoryAllocationLib|StandaloneMmPkg/Library/StandaloneMmMemoryAllocationLib/StandaloneMmMemoryAllocationLib.inf
|
|
|
|
|
2013-09-18 07:31:18 +02:00
|
|
|
[PcdsDynamicDefault.common.DEFAULT]
|
|
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0xb6, 0xe5, 0x01, 0x8b, 0x19, 0x4f, 0xe8, 0x46, 0xab, 0x93, 0x1c, 0x53, 0x67, 0x1b, 0x90, 0xcc}
|
|
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2InitializationPolicy|1
|
|
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2SelfTestPolicy|1
|
|
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2ScrtmPolicy|1
|
|
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpmInitializationPolicy|1
|
|
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpmScrtmPolicy|1
|
2015-08-13 10:24:17 +02:00
|
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2HashMask|3
|
|
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTcg2HashAlgorithmBitmap|3
|
2013-09-18 07:31:18 +02:00
|
|
|
|
2016-12-09 08:53:22 +01:00
|
|
|
[PcdsDynamicHii.common.DEFAULT]
|
|
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS
|
2016-12-23 09:55:32 +01:00
|
|
|
gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2ConfigFormSetGuid|0x8|3|NV,BS
|
2016-12-09 08:53:22 +01:00
|
|
|
|
2011-09-02 09:49:32 +02:00
|
|
|
[Components]
|
|
|
|
SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf
|
2012-09-13 10:34:32 +02:00
|
|
|
SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.inf
|
2011-09-02 09:49:32 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# TPM
|
|
|
|
#
|
|
|
|
SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf
|
2013-05-13 04:36:09 +02:00
|
|
|
SecurityPkg/Library/TpmCommLib/TpmCommLib.inf
|
2013-09-18 07:31:18 +02:00
|
|
|
SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf
|
|
|
|
SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf
|
|
|
|
SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
|
|
|
SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf
|
2013-05-13 04:36:09 +02:00
|
|
|
|
2011-09-02 09:49:32 +02:00
|
|
|
SecurityPkg/Tcg/PhysicalPresencePei/PhysicalPresencePei.inf
|
|
|
|
SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.inf
|
2013-09-18 07:31:18 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# TPM2
|
|
|
|
#
|
|
|
|
SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
SecurityPkg/Library/DxeTcg2PhysicalPresenceLib/DxeTcg2PhysicalPresenceLib.inf
|
|
|
|
SecurityPkg/Library/PeiTcg2PhysicalPresenceLib/PeiTcg2PhysicalPresenceLib.inf
|
2013-09-18 07:31:18 +02:00
|
|
|
|
|
|
|
SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf
|
|
|
|
SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf
|
|
|
|
|
|
|
|
SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
|
2013-09-18 07:31:18 +02:00
|
|
|
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
|
|
|
|
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
|
2020-12-18 07:31:21 +01:00
|
|
|
SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpmStandaloneMm.inf
|
2013-09-18 07:31:18 +02:00
|
|
|
SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
|
|
|
|
SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf
|
|
|
|
|
|
|
|
SecurityPkg/Library/HashLibTpm2/HashLibTpm2.inf
|
|
|
|
|
2021-09-13 16:21:06 +02:00
|
|
|
SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
|
2021-09-24 13:42:19 +02:00
|
|
|
SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLibNull/PeiDxeTpmPlatformHierarchyLib.inf
|
2021-09-13 16:21:06 +02:00
|
|
|
|
2016-03-29 08:50:37 +02:00
|
|
|
#
|
|
|
|
# TCG Storage.
|
|
|
|
#
|
|
|
|
SecurityPkg/Library/TcgStorageCoreLib/TcgStorageCoreLib.inf
|
|
|
|
SecurityPkg/Library/TcgStorageOpalLib/TcgStorageOpalLib.inf
|
|
|
|
|
2020-03-12 06:42:40 +01:00
|
|
|
#
|
|
|
|
# Variable Confidentiality & Integrity
|
|
|
|
#
|
2022-04-12 00:07:34 +02:00
|
|
|
SecurityPkg/Library/PlatformPKProtectionLibVarPolicy/PlatformPKProtectionLibVarPolicy.inf
|
2020-03-12 06:42:40 +01:00
|
|
|
|
2015-05-05 03:40:16 +02:00
|
|
|
#
|
|
|
|
# Other
|
|
|
|
#
|
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Dong, Guo <guo.dong@intel.com>
Add support for RSA 2048 SHA 256 signing and verification encoded in a PI FFS GUIDED Encapsulation Section. The primary use case of this feature is in support of signing and verification of encapsulated FVs for Recovery and Capsule Update, but can potentially be used for signing and verification of any content that can be stored in a PI conformant FFS file. Signing operations are performed from python scripts that wrap OpenSsl command line utilities. Verification operations are performed using the OpenSsl libraries in the CryptoPkg.
The guided encapsulation sections uses the UEFI 2.4 Specification defined GUID called EFI_CERT_TYPE_RSA2048_SHA256_GUID. The data layout for the encapsulation section starts with the UEFI 2.4 Specification defined structure called EFI_CERT_BLOCK_RSA_2048_SHA256 followed immediately by the data. The signing tool included in these patches performs encode/decode operations using this data layout. HashType is set to the UEFI 2.4 Specification defined GUID called EFI_HASH_ALGORITHM_SHA256_GUID.
MdePkg/Include/Guid/WinCertificate.h
=================================
//
// WIN_CERTIFICATE_UEFI_GUID.CertType
//
#define EFI_CERT_TYPE_RSA2048_SHA256_GUID \
{0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf } }
///
/// WIN_CERTIFICATE_UEFI_GUID.CertData
///
typedef struct {
EFI_GUID HashType;
UINT8 PublicKey[256];
UINT8 Signature[256];
} EFI_CERT_BLOCK_RSA_2048_SHA256;
MdePkg/Include/Protocol/Hash.h
=================================
#define EFI_HASH_ALGORITHM_SHA256_GUID \
{ \
0x51aa59de, 0xfdf2, 0x4ea3, {0xbc, 0x63, 0x87, 0x5f, 0xb7, 0x84, 0x2e, 0xe9 } \
}
The verification operations require the use of public key(s). A new PCD called gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer is added to the SecurityPkg that supports one or more SHA 256 hashes of the public keys. A SHA 256 hash is performed to minimize the FLASH overhead of storing the public keys. When a verification operation is performed, a SHA 256 hash is performed on EFI_CERT_BLOCK_RSA_2048_SHA256.PublicKey and a check is made to see if that hash matches any of the hashes in the new PCD. It is recommended that this PCD always be configured in the DSC file as storage type of [PcdsDynamixExVpd], so the public keys are stored in a protected read-only region.
While working on this feature, I noticed that the CRC32 signing and verification feature was incomplete. It only supported CRC32 based verification in the DXE Phase, so the attached patches also provide support for CRC32 based verification in the PEI Phase.
I also noticed that the most common method for incorporating guided section extraction libraries was to directly link them to the DXE Core, which is not very flexible. The attached patches also add a generic section extraction PEIM and a generic section extraction DXE driver that can each be linked against one or more section extraction libraries. This provides a platform developer with the option of providing section extraction services with the DXE Core or providing section extraction services with these generic PEIM/DXE Drivers.
Patch Summary
==============
1) BaseTools - Rsa2049Sha256Sign python script that can perform test signing or custom signing of PI FFS file GUIDed sections
a. Wrapper for a set of OpenSsl command line utility operations
b. OpenSsl command line tool must be installed in location that is in standard OS path or in path specified by OS environment variable called OPENSSL_PATH
c. Provides standard EDK II command line arguments for a tool that encodes/decodes guided encapsulation section
Rsa2048Sha256Sign - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.
usage: Rsa2048Sha256Sign -e|-d [options] <input_file>
positional arguments:
input_file specify the input filename
optional arguments:
-e encode file
-d decode file
-o filename, --output filename
specify the output filename
--private-key PRIVATEKEYFILE
specify the private key filename. If not specified, a
test signing key is used.
-v, --verbose increase output messages
-q, --quiet reduce output messages
--debug [0-9] set debug level
--version display the program version and exit
-h, --help display this help text
2) BaseTools - Rsa2049Sha256GenerateKeys python script that can generate new private/public key and PCD value that is SHA 256 hash of public key using OpenSsl command line utilities.
a. Wrapper for a set of OpenSsl command line utility operations
b. OpenSsl command line tool must be installed in location that is in standard path or in path specified by OS environment variable called OPENSSL_PATH
Rsa2048Sha256GenerateKeys - Copyright (c) 2013 - 2014, Intel Corporation. All rights reserved.
usage: Rsa2048Sha256GenerateKeys [options]
optional arguments:
-o [filename [filename ...]], --output [filename [filename ...]]
specify the output private key filename in PEM format
-i [filename [filename ...]], --input [filename [filename ...]]
specify the input private key filename in PEM format
--public-key-hash PUBLICKEYHASHFILE
specify the public key hash filename that is SHA 256
hash of 2048 bit RSA public key in binary format
--public-key-hash-c PUBLICKEYHASHCFILE
specify the public key hash filename that is SHA 256
hash of 2048 bit RSA public key in C structure format
-v, --verbose increase output messages
-q, --quiet reduce output messages
--debug [0-9] set debug level
--version display the program version and exit
-h, --help display this help text
3) BaseTools\Conf\tools_def.template
a. Define GUID/Tool to perform RSA 2048 SHA 256 test signing and instructions on how to use alternate private/public key
b. GUID is EFI_CERT_TYPE_RSA2048_SHA256_GUID
c. Tool is Rsa2049Sha256Sign
4) MdeModulePkg\Library\PeiCrc32GuidedSectionExtractionLib
a. Add peer for DxeCrc32GuidedSectionExtractionLib so both PEI and DXE phases can perform basic integrity checks of PEI and DXE components
5) MdeModulePkg\Universal\SectionExtractionPei
a. Generic PEIM that can link against one or more NULL section extraction library instances to provided one or more GUIDED Section Extraction PPIs
6) MdeModulePkg\Universal\SectionExtractionDxe
a. Generic DXE Driver that can link against one or more NULL section extraction library instances to provide one or more GUIDED Section Extraction Protocols.
7) SecurityPkg\Library\PeiRsa2048Sha256GuidedSectionExtractLib
a. NULL library instances that performs PEI phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg.
b. Based on algorithms from SecurityPkg Authenticated Variable services
c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer.
8) SecurityPkg\Library\DxeRsa2048Sha256GuidedSectionExtractLib
a. NULL library instances that performs DXE phase RSA 2048 SHA 256 signature verification using OpenSsl libraries from CryptoPkg.
b. Based on algorithms from SecurityPkg Authenticated Variable services
c. Uses public key from gEfiSecurityPkgTokenSpaceGuid.PcdRsa2048Sha256PublicKeyBuffer.
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15801 6f19259b-4bc3-4df7-8a09-765794883524
2014-08-14 08:31:34 +02:00
|
|
|
SecurityPkg/Library/DxeRsa2048Sha256GuidedSectionExtractLib/DxeRsa2048Sha256GuidedSectionExtractLib.inf
|
|
|
|
SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/PeiRsa2048Sha256GuidedSectionExtractLib.inf
|
2015-07-01 05:04:59 +02:00
|
|
|
|
2016-09-21 04:53:50 +02:00
|
|
|
SecurityPkg/Library/FmpAuthenticationLibPkcs7/FmpAuthenticationLibPkcs7.inf
|
|
|
|
SecurityPkg/Library/FmpAuthenticationLibRsa2048Sha256/FmpAuthenticationLibRsa2048Sha256.inf
|
|
|
|
|
2020-07-22 10:21:07 +02:00
|
|
|
SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.inf
|
2019-06-10 04:27:45 +02:00
|
|
|
SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf
|
|
|
|
SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf
|
|
|
|
SecurityPkg/Library/Tcg2PpVendorLibNull/Tcg2PpVendorLibNull.inf
|
|
|
|
SecurityPkg/Library/TcgPpVendorLibNull/TcgPpVendorLibNull.inf
|
2020-08-18 08:26:15 +02:00
|
|
|
SecurityPkg/Library/TcgEventLogRecordLib/TcgEventLogRecordLib.inf
|
2019-06-10 04:27:45 +02:00
|
|
|
|
2018-06-29 05:33:44 +02:00
|
|
|
[Components.IA32, Components.X64, Components.ARM, Components.AARCH64]
|
2015-07-01 05:04:59 +02:00
|
|
|
SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf
|
2021-08-02 12:46:32 +02:00
|
|
|
SecurityPkg/Library/SecureBootVariableLib/SecureBootVariableLib.inf
|
|
|
|
SecurityPkg/Library/SecureBootVariableProvisionLib/SecureBootVariableProvisionLib.inf
|
|
|
|
SecurityPkg/EnrollFromDefaultKeysApp/EnrollFromDefaultKeysApp.inf
|
|
|
|
SecurityPkg/VariableAuthenticated/SecureBootDefaultKeysDxe/SecureBootDefaultKeysDxe.inf
|
2015-07-01 05:04:59 +02:00
|
|
|
|
2022-10-28 17:32:58 +02:00
|
|
|
[Components.IA32, Components.X64, Components.AARCH64, Components.ARM]
|
2021-05-10 23:53:08 +02:00
|
|
|
#
|
|
|
|
# Random Number Generator
|
|
|
|
#
|
|
|
|
SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
|
|
|
|
|
2022-05-16 09:42:15 +02:00
|
|
|
[Components.X64]
|
|
|
|
SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
|
2022-06-05 03:02:46 +02:00
|
|
|
SecurityPkg/Library/SecTpmMeasurementLib/SecTpmMeasurementLibTdx.inf
|
2023-01-04 14:14:05 +01:00
|
|
|
SecurityPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
HashLib|SecurityPkg/Library/HashLibTdx/HashLibTdx.inf
|
|
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
|
|
}
|
2022-05-16 09:42:15 +02:00
|
|
|
|
2018-06-29 05:33:44 +02:00
|
|
|
[Components.IA32, Components.X64]
|
2013-05-13 04:36:09 +02:00
|
|
|
SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf
|
|
|
|
|
|
|
|
#
|
|
|
|
# TPM
|
|
|
|
#
|
|
|
|
SecurityPkg/Tcg/TcgPei/TcgPei.inf
|
|
|
|
SecurityPkg/Tcg/TcgDxe/TcgDxe.inf
|
2011-09-02 09:49:32 +02:00
|
|
|
SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDxe.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
|
|
|
}
|
2013-05-13 04:36:09 +02:00
|
|
|
|
2013-09-18 07:31:18 +02:00
|
|
|
#
|
|
|
|
# TPM2
|
|
|
|
#
|
|
|
|
SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
|
|
|
SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
2018-07-28 07:33:33 +02:00
|
|
|
SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
|
|
SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
SecurityPkg: introduce the SM3 digest algorithm
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
GITHUB: https://github.com/idesai/edk2/tree/enable_sm3_measured_boot_v6
EDK2 Support for SM3 digest algorithm is needed to enable TPM with SM3 PCR
banks. This digest algorithm is part of the China Crypto algorithm suite.
This integration has dependency on the openssl_1_1_1b integration into
edk2.
This patch add SM3 algorithm in the hashinstance library.
Delta in v7:
1. Dropped 95a040cff from v6 to address https://edk2.groups.io/g/devel/topic/
32454898?p=,,,20,0,0,0::Created,,sm3,20,2,0,32454898,ct=1&ct=1
2. Relocated SM3 GUID definition from MdePkg to SecurityPkg in 9728b54f4
Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian Wang <jian.j.wang@intel.com>
Signed-off-by: Imran Desai <imran.desai@intel.com>
Message-Id: <20190718225326.40839-2-imran.desai@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
2019-07-19 00:53:23 +02:00
|
|
|
SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
2013-09-18 07:31:18 +02:00
|
|
|
|
2015-08-13 10:24:17 +02:00
|
|
|
SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf
|
|
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf
|
|
|
|
}
|
|
|
|
SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf
|
|
|
|
NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
|
|
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
|
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
2018-06-06 05:24:54 +02:00
|
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
SecurityPkg: introduce the SM3 digest algorithm
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
GITHUB: https://github.com/idesai/edk2/tree/enable_sm3_measured_boot_v6
EDK2 Support for SM3 digest algorithm is needed to enable TPM with SM3 PCR
banks. This digest algorithm is part of the China Crypto algorithm suite.
This integration has dependency on the openssl_1_1_1b integration into
edk2.
This patch add SM3 algorithm in the hashinstance library.
Delta in v7:
1. Dropped 95a040cff from v6 to address https://edk2.groups.io/g/devel/topic/
32454898?p=,,,20,0,0,0::Created,,sm3,20,2,0,32454898,ct=1&ct=1
2. Relocated SM3 GUID definition from MdePkg to SecurityPkg in 9728b54f4
Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian Wang <jian.j.wang@intel.com>
Signed-off-by: Imran Desai <imran.desai@intel.com>
Message-Id: <20190718225326.40839-2-imran.desai@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
2019-07-19 00:53:23 +02:00
|
|
|
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
}
|
|
|
|
|
2021-09-13 16:21:06 +02:00
|
|
|
SecurityPkg/Tcg/Tcg2PlatformPei/Tcg2PlatformPei.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
|
|
|
|
}
|
|
|
|
|
2015-08-13 10:24:17 +02:00
|
|
|
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf
|
|
|
|
NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf
|
|
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf
|
|
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf
|
2018-06-06 05:24:54 +02:00
|
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha384/HashInstanceLibSha384.inf
|
|
|
|
NULL|SecurityPkg/Library/HashInstanceLibSha512/HashInstanceLibSha512.inf
|
SecurityPkg: introduce the SM3 digest algorithm
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1781
GITHUB: https://github.com/idesai/edk2/tree/enable_sm3_measured_boot_v6
EDK2 Support for SM3 digest algorithm is needed to enable TPM with SM3 PCR
banks. This digest algorithm is part of the China Crypto algorithm suite.
This integration has dependency on the openssl_1_1_1b integration into
edk2.
This patch add SM3 algorithm in the hashinstance library.
Delta in v7:
1. Dropped 95a040cff from v6 to address https://edk2.groups.io/g/devel/topic/
32454898?p=,,,20,0,0,0::Created,,sm3,20,2,0,32454898,ct=1&ct=1
2. Relocated SM3 GUID definition from MdePkg to SecurityPkg in 9728b54f4
Cc: Chao Zhang <chao.b.zhang@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian Wang <jian.j.wang@intel.com>
Signed-off-by: Imran Desai <imran.desai@intel.com>
Message-Id: <20190718225326.40839-2-imran.desai@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Jian J Wang <jian.j.wang@intel.com>
2019-07-19 00:53:23 +02:00
|
|
|
NULL|SecurityPkg/Library/HashInstanceLibSm3/HashInstanceLibSm3.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf
|
|
|
|
}
|
|
|
|
SecurityPkg/Tcg/Tcg2Config/Tcg2ConfigDxe.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.inf
|
|
|
|
}
|
|
|
|
|
2021-09-13 16:21:06 +02:00
|
|
|
SecurityPkg/Tcg/Tcg2PlatformDxe/Tcg2PlatformDxe.inf {
|
|
|
|
<LibraryClasses>
|
|
|
|
TpmPlatformHierarchyLib|SecurityPkg/Library/PeiDxeTpmPlatformHierarchyLib/PeiDxeTpmPlatformHierarchyLib.inf
|
|
|
|
}
|
|
|
|
|
2015-05-08 09:25:06 +02:00
|
|
|
#
|
|
|
|
# Hash2
|
|
|
|
#
|
|
|
|
SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf
|
2013-09-18 07:31:18 +02:00
|
|
|
|
2015-06-19 04:45:06 +02:00
|
|
|
#
|
|
|
|
# PKCS7 Verification
|
|
|
|
#
|
|
|
|
SecurityPkg/Pkcs7Verify/Pkcs7VerifyDxe/Pkcs7VerifyDxe.inf
|
|
|
|
|
2011-09-02 09:49:32 +02:00
|
|
|
[Components.IA32, Components.X64]
|
2015-07-28 09:20:58 +02:00
|
|
|
|
|
|
|
SecurityPkg/Tcg/MemoryOverwriteRequestControlLock/TcgMorLockSmm.inf
|
2013-05-13 04:36:09 +02:00
|
|
|
SecurityPkg/Tcg/TcgSmm/TcgSmm.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
SecurityPkg/Tcg/Tcg2Smm/Tcg2Smm.inf
|
2021-03-05 05:14:14 +01:00
|
|
|
SecurityPkg/Tcg/Tcg2Smm/Tcg2StandaloneMm.inf
|
|
|
|
SecurityPkg/Tcg/Tcg2Smm/Tcg2MmDependencyDxe.inf
|
2021-03-05 05:14:13 +01:00
|
|
|
SecurityPkg/Tcg/Tcg2Acpi/Tcg2Acpi.inf
|
2015-08-13 10:24:17 +02:00
|
|
|
SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/SmmTcg2PhysicalPresenceLib.inf
|
2020-12-18 00:24:08 +01:00
|
|
|
SecurityPkg/Library/SmmTcg2PhysicalPresenceLib/StandaloneMmTcg2PhysicalPresenceLib.inf
|
2018-03-14 14:52:11 +01:00
|
|
|
|
2016-03-29 08:50:37 +02:00
|
|
|
#
|
|
|
|
# Opal Password solution
|
|
|
|
#
|
2018-02-11 04:00:44 +01:00
|
|
|
SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordDxe.inf
|
|
|
|
SecurityPkg/Tcg/Opal/OpalPassword/OpalPasswordPei.inf
|
2016-03-29 08:50:37 +02:00
|
|
|
|
2019-01-15 09:33:09 +01:00
|
|
|
#
|
|
|
|
# HDD Password solution
|
|
|
|
#
|
|
|
|
SecurityPkg/HddPassword/HddPasswordDxe.inf
|
|
|
|
SecurityPkg/HddPassword/HddPasswordPei.inf
|
|
|
|
|
2019-05-10 04:22:46 +02:00
|
|
|
#
|
|
|
|
# Common FV checker/verifier/reporter
|
|
|
|
#
|
|
|
|
SecurityPkg/FvReportPei/FvReportPei.inf
|
|
|
|
|
2011-09-02 09:49:32 +02:00
|
|
|
[BuildOptions]
|
|
|
|
MSFT:*_*_IA32_DLINK_FLAGS = /ALIGN:256
|
|
|
|
INTEL:*_*_IA32_DLINK_FLAGS = /ALIGN:256
|
2016-08-01 08:13:48 +02:00
|
|
|
*_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES
|