edk2/SecurityPkg/Library/HashLibTpm2/HashLibTpm2PeilessSecLib.inf
Levi Yun 9c651ef83a SecurityPkg/Library: introduce HashLibTpm2PeilessSec
PeilessSec couldn't use the HasLibTpm2 since:

  - HashLibTpm2 uses memory allocation/free for Hash interface.
    But in PeilessSecPhase doesn't support the free memory since
    the allocation of memory via MemoryAllocation APIs is allocated
    using HOB which couldn't be freed.

  - In SEC phase, it couldn't use DynamicPcd -- PcdHashMasks

  - PeilessSec utilises the algorithm passed in
    the SpecId event log handed off by TF-A

To address theses, introduce HashLibTpm2PeilessSec used for
measurements in the PeilessSec.

Signed-off-by: Yeoreum Yun <yeoreum.yun@arm.com>
2025-09-30 11:39:04 +00:00

47 lines
1 KiB
INI

## @file
# SEC library for measurement in PeilessSec.
#
# Copyright (c) 2025, Arm Limited. All rights reserved.<BR>
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
[Defines]
INF_VERSION = 0x0001001B
BASE_NAME = HashLib
FILE_GUID = 50f7ecfc-4dca-11f0-aa44-075999529161
MODULE_TYPE = BASE
VERSION_STRING = 1.0
LIBRARY_CLASS = HashLib|SEC
CONSTRUCTOR = HasLibTpm2PeilessSecLibConstructor
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = AARCH64
#
[Sources]
HashLibTpm2PeilessSecLib.c
[Packages]
ArmPkg/ArmPkg.dec
EmbeddedPkg/EmbeddedPkg.dec
MdeModulePkg/MdeModulePkg.dec
MdePkg/MdePkg.dec
SecurityPkg/SecurityPkg.dec
[LibraryClasses]
ArmLib
ArmFfaLib
BaseLib
BaseMemoryLib
DebugLib
HobLib
PrePiLib
Tpm2DeviceLib
Tpm2CommandLib
[Guids]
gTpmErrorHobGuid