edk2/SecurityPkg/Library/DxeTpm2MeasureBootLib
Richard Lyu 7c12d4359a SecurityPkg/DxeTpm2MeasureBootLib: Use GptLib parser
The previous commit introduced GptLib by extracting PartitionDxe's GPT
parsing and validation code. It provides a shared implementation for edk2
components that need to parse and validate GPT data consistently.

Update DxeTpm2MeasureBootLib to use GptLib when selecting on-disk GPT
data for measurement. Validate the current primary GPT or, when it is
invalid, validate the backup and the header at its AlternateLBA. Do not
extend PCR[5] if no valid header can be selected. The measurement therefore
uses GPT data read from disk at measurement time and applies the shared
parser and validation logic.

Ref: https://seclists.org/oss-sec/2026/q2/727
Signed-off-by: Richard Lyu <richard.lyu@suse.com>
2026-07-20 21:50:57 +00:00
..
InternalUnitTest SecurityPkg: DxeTpm2MeasureBootLib: SECURITY PATCH 4117/4118 symbol rename 2024-01-18 19:25:14 +00:00
DxeTpm2MeasureBootLib.c SecurityPkg/DxeTpm2MeasureBootLib: Use GptLib parser 2026-07-20 21:50:57 +00:00
DxeTpm2MeasureBootLib.inf SecurityPkg/DxeTpm2MeasureBootLib: Use GptLib parser 2026-07-20 21:50:57 +00:00
DxeTpm2MeasureBootLib.uni SecurityPkg: Replace BSD License with BSD+Patent License 2019-04-09 10:58:23 -07:00
DxeTpm2MeasureBootLibSanitization.c SecurityPkg: DxeTpm2MeasureBootLib: SECURITY PATCH 4117/4118 symbol rename 2024-01-18 19:25:14 +00:00
DxeTpm2MeasureBootLibSanitization.h SecurityPkg: Replace include guards with #pragma once 2026-02-23 21:01:28 +00:00