## @file\r
-# The library instance provides security service of TPM measure boot.\r
+# Provides security service for TPM 1.2 measured boot\r
#\r
-# Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
-# This program and the accompanying materials\r
-# are licensed and made available under the terms and conditions of the BSD License\r
-# which accompanies this distribution. The full text of the license may be found at\r
-# http://opensource.org/licenses/bsd-license.php\r
-# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+# This library instance hooks LoadImage() API to measure every image that\r
+# is not measured in PEI phase. And, it will also measure GPT partition.\r
+#\r
+# Caution: This module requires additional review when modified.\r
+# This library will have external input - PE/COFF image and GPT partition.\r
+# This external input must be validated carefully to avoid security issues such\r
+# as buffer overflow or integer overflow.\r
+#\r
+# Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
+# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
##\r
\r
[Defines]\r
INF_VERSION = 0x00010005\r
BASE_NAME = DxeTpmMeasureBootLib\r
+ MODULE_UNI_FILE = DxeTpmMeasureBootLib.uni\r
FILE_GUID = 6C60C7D0-922A-4b7c-87D7-E503EDD73BBF\r
MODULE_TYPE = DXE_DRIVER\r
VERSION_STRING = 1.0\r
- LIBRARY_CLASS = NULL|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SAL_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER \r
+ LIBRARY_CLASS = NULL|DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER\r
CONSTRUCTOR = DxeTpmMeasureBootLibConstructor\r
\r
#\r
# The following information is for reference only and not required by the build tools.\r
#\r
-# VALID_ARCHITECTURES = IA32 X64 IPF EBC\r
+# VALID_ARCHITECTURES = IA32 X64 EBC\r
#\r
\r
[Sources]\r
PeCoffLib\r
BaseLib\r
SecurityManagementLib\r
+ HobLib\r
+\r
+[Guids]\r
+ gMeasuredFvHobGuid ## SOMETIMES_CONSUMES ## HOB\r
\r
[Protocols]\r
- gEfiTcgProtocolGuid ## CONSUMES\r
- gEfiFirmwareVolume2ProtocolGuid ## CONSUMES\r
- gEfiBlockIoProtocolGuid ## CONSUMES\r
- gEfiDiskIoProtocolGuid ## CONSUMES\r
- gEfiDevicePathToTextProtocolGuid ## SOMETIMES_CONSUMES (Only used in debug mode)\r
+ gEfiTcgProtocolGuid ## SOMETIMES_CONSUMES\r
+ gEfiFirmwareVolumeBlockProtocolGuid ## SOMETIMES_CONSUMES\r
+ gEfiBlockIoProtocolGuid ## SOMETIMES_CONSUMES\r
+ gEfiDiskIoProtocolGuid ## SOMETIMES_CONSUMES\r
+\r