Add UEFI2.5 HASH protocol implementation.
[mirror_edk2.git] / SecurityPkg / SecurityPkg.dsc
CommitLineData
0c18794e 1## @file\r
2# Security Module Package for All Architectures.\r
3#\r
4610b23a 4# Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.<BR>\r
0c18794e 5# This program and the accompanying materials\r
6# are licensed and made available under the terms and conditions of the BSD License\r
7# which accompanies this distribution. The full text of the license may be found at\r
8# http://opensource.org/licenses/bsd-license.php\r
9#\r
10# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12#\r
13##\r
14\r
15[Defines]\r
16 PLATFORM_NAME = SecurityPkg\r
17 PLATFORM_GUID = B2C4614D-AE76-47ba-B876-5988BFED064F\r
8fcdb5d4 18 PLATFORM_VERSION = 0.94\r
0c18794e 19 DSC_SPECIFICATION = 0x00010005\r
20 OUTPUT_DIRECTORY = Build/SecurityPkg\r
21 SUPPORTED_ARCHITECTURES = IA32|IPF|X64|EBC\r
22 BUILD_TARGETS = DEBUG|RELEASE\r
23 SKUID_IDENTIFIER = DEFAULT\r
24\r
25[LibraryClasses]\r
26 DebugLib|MdePkg/Library/BaseDebugLibNull/BaseDebugLibNull.inf\r
27 DebugPrintErrorLevelLib|MdePkg/Library/BaseDebugPrintErrorLevelLib/BaseDebugPrintErrorLevelLib.inf \r
28 BaseLib|MdePkg/Library/BaseLib/BaseLib.inf\r
29 SynchronizationLib|MdePkg/Library/BaseSynchronizationLib/BaseSynchronizationLib.inf\r
30 TimerLib|MdePkg/Library/BaseTimerLibNullTemplate/BaseTimerLibNullTemplate.inf\r
31 BaseMemoryLib|MdePkg/Library/BaseMemoryLib/BaseMemoryLib.inf\r
32 MemoryAllocationLib|MdePkg/Library/UefiMemoryAllocationLib/UefiMemoryAllocationLib.inf\r
33 PrintLib|MdePkg/Library/BasePrintLib/BasePrintLib.inf\r
34 UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf\r
c1d93242 35 PerformanceLib|MdePkg/Library/BasePerformanceLibNull/BasePerformanceLibNull.inf\r
0c18794e 36\r
37 DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf\r
38 UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf\r
39 UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf\r
40 DevicePathLib|MdePkg/Library/UefiDevicePathLib/UefiDevicePathLib.inf\r
41 UefiLib|MdePkg/Library/UefiLib/UefiLib.inf\r
42 DxeServicesTableLib|MdePkg/Library/DxeServicesTableLib/DxeServicesTableLib.inf\r
43 UefiRuntimeServicesTableLib|MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.inf\r
44 UefiRuntimeLib|MdePkg/Library/UefiRuntimeLib/UefiRuntimeLib.inf\r
5dbb6635
JY
45 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
46 OemHookStatusCodeLib|MdeModulePkg/Library/OemHookStatusCodeLibNull/OemHookStatusCodeLibNull.inf\r
0c18794e 47 HiiLib|MdeModulePkg/Library/UefiHiiLib/UefiHiiLib.inf\r
48 UefiHiiServicesLib|MdeModulePkg/Library/UefiHiiServicesLib/UefiHiiServicesLib.inf\r
49 PcdLib|MdePkg/Library/BasePcdLibNull/BasePcdLibNull.inf\r
0c18794e 50 IntrinsicLib|CryptoPkg/Library/IntrinsicLib/IntrinsicLib.inf\r
51 OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf\r
52 IoLib|MdePkg/Library/BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf\r
53 TpmCommLib|SecurityPkg/Library/TpmCommLib/TpmCommLib.inf\r
607599bf 54 PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecureLibNull.inf\r
55 TcgPhysicalPresenceLib|SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf\r
a332cfd3 56 TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasurementLib.inf\r
c1d93242
JY
57 Tpm12CommandLib|SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf\r
58 Tpm2CommandLib|SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf\r
59 TrEEPhysicalPresenceLib|SecurityPkg/Library/DxeTrEEPhysicalPresenceLib/DxeTrEEPhysicalPresenceLib.inf\r
4610b23a
JY
60 TcgPpVendorLib|SecurityPkg/Library/TcgPpVendorLibNull/TcgPpVendorLibNull.inf\r
61 TrEEPpVendorLib|SecurityPkg/Library/TrEEPpVendorLibNull/TrEEPpVendorLibNull.inf\r
0c18794e 62\r
63[LibraryClasses.common.PEIM]\r
64 PeimEntryPoint|MdePkg/Library/PeimEntryPoint/PeimEntryPoint.inf\r
65 PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf\r
66 PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLib/PeiServicesTablePointerLib.inf\r
67 HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf\r
68 MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf\r
3b947ef1 69 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/PeiCryptLib.inf\r
c1d93242 70 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf\r
5dbb6635 71 ReportStatusCodeLib|MdeModulePkg/Library/PeiReportStatusCodeLib/PeiReportStatusCodeLib.inf\r
c1d93242
JY
72 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
73 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf\r
0c18794e 74\r
75[LibraryClasses.common.DXE_DRIVER]\r
76 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
77 ReportStatusCodeLib|MdeModulePkg/Library/DxeReportStatusCodeLib/DxeReportStatusCodeLib.inf\r
3b947ef1 78 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
c1d93242
JY
79 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
80 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
81 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
0c18794e 82\r
83[LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.DXE_RUNTIME_DRIVER, LibraryClasses.common.DXE_SAL_DRIVER,]\r
9a000b46 84 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
0c18794e 85 DebugLib|MdePkg/Library/UefiDebugLibConOut/UefiDebugLibConOut.inf\r
c1d93242
JY
86 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
87 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
88 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
0c18794e 89\r
3b947ef1 90[LibraryClasses.common.DXE_RUNTIME_DRIVER]\r
a782428e 91 ReportStatusCodeLib|MdeModulePkg/Library/RuntimeDxeReportStatusCodeLib/RuntimeDxeReportStatusCodeLib.inf\r
3b947ef1 92 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/RuntimeCryptLib.inf\r
c1d93242
JY
93 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
94 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
95 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
3b947ef1 96\r
97[LibraryClasses.common.UEFI_DRIVER, LibraryClasses.common.UEFI_APPLICATION]\r
98 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/BaseCryptLib.inf\r
c1d93242
JY
99 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
100 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
101 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
3b947ef1 102\r
0c18794e 103[LibraryClasses.IPF.DXE_SAL_DRIVER]\r
104 ExtendedSalLib|MdePkg/Library/DxeRuntimeExtendedSalLib/DxeRuntimeExtendedSalLib.inf\r
3b947ef1 105 BaseCryptLib|CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/BaseCryptLibRuntimeCryptProtocol.inf\r
c1d93242
JY
106 HashLib|SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
107 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
108 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
0c18794e 109\r
110[LibraryClasses.common.DXE_SMM_DRIVER]\r
9a000b46 111 HobLib|MdePkg/Library/DxeHobLib/DxeHobLib.inf\r
0c18794e 112 SmmServicesTableLib|MdePkg/Library/SmmServicesTableLib/SmmServicesTableLib.inf\r
113 MemoryAllocationLib|MdePkg/Library/SmmMemoryAllocationLib/SmmMemoryAllocationLib.inf\r
a782428e 114 ReportStatusCodeLib|MdeModulePkg/Library/SmmReportStatusCodeLib/SmmReportStatusCodeLib.inf\r
9054e55a 115 SmmMemLib|MdePkg/Library/SmmMemLib/SmmMemLib.inf\r
0c18794e 116 BaseCryptLib|CryptoPkg/Library/BaseCryptLib/SmmCryptLib.inf\r
c1d93242
JY
117 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
118 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
0c18794e 119 \r
c1d93242
JY
120[PcdsDynamicDefault.common.DEFAULT]\r
121 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0xb6, 0xe5, 0x01, 0x8b, 0x19, 0x4f, 0xe8, 0x46, 0xab, 0x93, 0x1c, 0x53, 0x67, 0x1b, 0x90, 0xcc}\r
122 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2InitializationPolicy|1\r
123 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2SelfTestPolicy|1\r
124 gEfiSecurityPkgTokenSpaceGuid.PcdTpm2ScrtmPolicy|1\r
125 gEfiSecurityPkgTokenSpaceGuid.PcdTpmInitializationPolicy|1\r
126 gEfiSecurityPkgTokenSpaceGuid.PcdTpmScrtmPolicy|1\r
127\r
0c18794e 128[Components]\r
129 SecurityPkg/VariableAuthenticated/Pei/VariablePei.inf\r
130 SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.inf\r
68d151bb 131 #SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.inf\r
d0043e49 132 SecurityPkg/Library/DxeImageAuthenticationStatusLib/DxeImageAuthenticationStatusLib.inf\r
68d151bb
DG
133 #SecurityPkg/UserIdentification/UserIdentifyManagerDxe/UserIdentifyManagerDxe.inf\r
134 #SecurityPkg/UserIdentification/UserProfileManagerDxe/UserProfileManagerDxe.inf\r
0c18794e 135\r
136 #\r
137 # Application\r
138 #\r
139 SecurityPkg/Application/VariableInfo/VariableInfo.inf\r
3aa8dc6c 140 SecurityPkg/Application/RngTest/RngTest.inf\r
0c18794e 141\r
142 #\r
143 # TPM\r
144 #\r
145 SecurityPkg/Library/DxeTpmMeasureBootLib/DxeTpmMeasureBootLib.inf\r
cbcccd2c 146 SecurityPkg/Library/TpmCommLib/TpmCommLib.inf\r
c1d93242
JY
147 SecurityPkg/Library/DxeTcgPhysicalPresenceLib/DxeTcgPhysicalPresenceLib.inf\r
148 SecurityPkg/Library/Tpm12CommandLib/Tpm12CommandLib.inf\r
149 SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
150 SecurityPkg/Library/Tpm12DeviceLibTcg/Tpm12DeviceLibTcg.inf\r
cbcccd2c 151\r
0c18794e 152 SecurityPkg/Tcg/PhysicalPresencePei/PhysicalPresencePei.inf\r
0c18794e 153 SecurityPkg/Tcg/MemoryOverwriteControl/TcgMor.inf\r
c1d93242
JY
154\r
155 #\r
156 # TPM2\r
157 #\r
158 SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.inf\r
159 SecurityPkg/Library/DxeTrEEPhysicalPresenceLib/DxeTrEEPhysicalPresenceLib.inf\r
160\r
161 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterDxe.inf\r
162 SecurityPkg/Library/HashLibBaseCryptoRouter/HashLibBaseCryptoRouterPei.inf\r
163\r
164 SecurityPkg/Library/Tpm2CommandLib/Tpm2CommandLib.inf\r
165 SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
166 SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf\r
167 SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf\r
168 SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf\r
169 SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf\r
170\r
171 SecurityPkg/Library/HashLibTpm2/HashLibTpm2.inf\r
172\r
724dcbb2
JY
173 #\r
174 # Hash2\r
175 #\r
176 SecurityPkg/Hash2DxeCrypto/Hash2DxeCrypto.inf\r
177\r
178 #\r
179 # Other\r
180 #\r
1a53a034
MK
181 SecurityPkg/Library/DxeRsa2048Sha256GuidedSectionExtractLib/DxeRsa2048Sha256GuidedSectionExtractLib.inf\r
182 SecurityPkg/Library/PeiRsa2048Sha256GuidedSectionExtractLib/PeiRsa2048Sha256GuidedSectionExtractLib.inf\r
183 \r
cbcccd2c 184[Components.IA32, Components.X64, Components.IPF]\r
2001537d 185# SecurityPkg/UserIdentification/PwdCredentialProviderDxe/PwdCredentialProviderDxe.inf\r
68d151bb 186# SecurityPkg/UserIdentification/UsbCredentialProviderDxe/UsbCredentialProviderDxe.inf\r
cbcccd2c
LG
187 SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigDxe.inf\r
188 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableRuntimeDxe.inf\r
189\r
190 #\r
191 # TPM\r
192 #\r
193 SecurityPkg/Tcg/TcgPei/TcgPei.inf\r
194 SecurityPkg/Tcg/TcgDxe/TcgDxe.inf\r
0c18794e 195 SecurityPkg/Tcg/TcgConfigDxe/TcgConfigDxe.inf {\r
196 <LibraryClasses>\r
197 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
198 }\r
cbcccd2c 199\r
c1d93242
JY
200 #\r
201 # TPM2\r
202 #\r
203 SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf\r
204 SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf\r
205\r
206 SecurityPkg/Tcg/TrEEConfig/TrEEConfigPei.inf {\r
207 <LibraryClasses>\r
208 Tpm12DeviceLib|SecurityPkg/Library/Tpm12DeviceLibDTpm/Tpm12DeviceLibDTpm.inf\r
209 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpm.inf\r
210 }\r
211 SecurityPkg/Tcg/TrEEPei/TrEEPei.inf {\r
212 <LibraryClasses>\r
213 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterPei.inf\r
214 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf\r
215 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf\r
216 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf\r
217 }\r
218\r
219 SecurityPkg/Tcg/TrEEDxe/TrEEDxe.inf {\r
220 <LibraryClasses>\r
221 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibRouter/Tpm2DeviceLibRouterDxe.inf\r
222 NULL|SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2InstanceLibDTpm.inf\r
223 NULL|SecurityPkg/Library/HashInstanceLibSha1/HashInstanceLibSha1.inf\r
224 NULL|SecurityPkg/Library/HashInstanceLibSha256/HashInstanceLibSha256.inf\r
225 PcdLib|MdePkg/Library/DxePcdLib/DxePcdLib.inf\r
226 }\r
227 SecurityPkg/Tcg/TrEEConfig/TrEEConfigDxe.inf {\r
228 <LibraryClasses>\r
229 Tpm2DeviceLib|SecurityPkg/Library/Tpm2DeviceLibTrEE/Tpm2DeviceLibTrEE.inf\r
230 }\r
231\r
0c18794e 232[Components.IA32, Components.X64]\r
0c18794e 233 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableSmm.inf\r
234 SecurityPkg/VariableAuthenticated/RuntimeDxe/VariableSmmRuntimeDxe.inf\r
cbcccd2c 235 SecurityPkg/Tcg/TcgSmm/TcgSmm.inf\r
c1d93242 236 SecurityPkg/Tcg/TrEESmm/TrEESmm.inf\r
3aa8dc6c
LQ
237 #\r
238 # Random Number Generator\r
239 #\r
240 SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf\r
0c18794e 241\r
242[Components.IPF]\r
243 SecurityPkg/VariableAuthenticated/EsalVariableDxeSal/EsalVariableDxeSal.inf \r
244\r
0c18794e 245[BuildOptions]\r
246 MSFT:*_*_IA32_DLINK_FLAGS = /ALIGN:256\r
247 INTEL:*_*_IA32_DLINK_FLAGS = /ALIGN:256\r
248\r