Validate some fields in PE image to make sure not access violation for later code.
[mirror_edk2.git] / SecurityPkg / Library / DxeTpmMeasureBootLib / DxeTpmMeasureBootLib.inf
1 ## @file
2 # The library instance provides security service of TPM measure boot.
3 #
4 # Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
5 # This program and the accompanying materials
6 # are licensed and made available under the terms and conditions of the BSD License
7 # which accompanies this distribution. The full text of the license may be found at
8 # http://opensource.org/licenses/bsd-license.php
9 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11 #
12 ##
13
14 [Defines]
15 INF_VERSION = 0x00010005
16 BASE_NAME = DxeTpmMeasureBootLib
17 FILE_GUID = 6C60C7D0-922A-4b7c-87D7-E503EDD73BBF
18 MODULE_TYPE = DXE_DRIVER
19 VERSION_STRING = 1.0
20 LIBRARY_CLASS = NULL|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER
21 CONSTRUCTOR = DxeTpmMeasureBootLibConstructor
22
23 #
24 # The following information is for reference only and not required by the build tools.
25 #
26 # VALID_ARCHITECTURES = IA32 X64 IPF EBC
27 #
28
29 [Sources]
30 DxeTpmMeasureBootLib.c
31
32 [Packages]
33 MdePkg/MdePkg.dec
34 MdeModulePkg/MdeModulePkg.dec
35 SecurityPkg/SecurityPkg.dec
36 CryptoPkg/CryptoPkg.dec
37
38 [LibraryClasses]
39 BaseMemoryLib
40 DebugLib
41 MemoryAllocationLib
42 DevicePathLib
43 UefiBootServicesTableLib
44 BaseCryptLib
45 PeCoffLib
46 BaseLib
47 SecurityManagementLib
48
49 [Protocols]
50 gEfiTcgProtocolGuid ## CONSUMES
51 gEfiFirmwareVolume2ProtocolGuid ## CONSUMES
52 gEfiBlockIoProtocolGuid ## CONSUMES
53 gEfiDiskIoProtocolGuid ## CONSUMES
54 gEfiDevicePathToTextProtocolGuid ## SOMETIMES_CONSUMES (Only used in debug mode)