summaryrefslogtreecommitdiff
path: root/SecurityPkg/Library/HashLibTpm2/HashLibTpm2PeilessSecLib.c
AgeCommit message (Collapse)AuthorFilesLines
9 daysSecurityPkg: Remove Globals from HashLibTpm2PeilessSecrdiaz1-251/+222
Updated the HashLibTpm2PeilessSec library to no longer use globals in SEC. Changed the code to query the relevant information each time it was needed either through the TPM or Transfer List. Signed-off-by: Raymond Diaz <raymonddiaz@microsoft.com>
2025-11-29SecurityPkg/HashLibTpm2: Fix unused variable usageMike Beaton1-3/+1
There is an unused variable in SecurityPkg/Library/HashLibTpm2/HashLibTpm2PeilessSecLib.c which is spotted by CLANG builds. The correct fix here is not to just remove the unused assignment, but rather to fix the line following it, which should have been using the unused value in the way that it now does. Fixes: https://github.com/tianocore/edk2/commit/9c651ef83a74d83219075316aa5d1c189ed608c8 Co-authored-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
2025-09-30SecurityPkg/Library: introduce HashLibTpm2PeilessSecLevi Yun1-0/+623
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>