From c5647c6c3c12a7164f48651730a779fee3b634fc Mon Sep 17 00:00:00 2001 From: "Zhang, Chao B" Date: Sat, 4 Feb 2017 09:19:00 +0800 Subject: [PATCH] MdePkg: UefiTcgPlatform.h: Add TCG_PCR_EVENT2_HDR definition Add TCG_PCR_EVENT2_HDR definition. Follow TCG EFI Spec 2.0 00.13 Section 5.2 Crypto Agile Log Entry Format https://trustedcomputinggroup.org/wp-content/uploads/EFI-Protocol-Specification-rev13-160330final.pdf Cc: Long Qin Cc: Yao Jiewen Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao Zhang Reviewed-by: Long Qin --- MdePkg/Include/IndustryStandard/UefiTcgPlatform.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/MdePkg/Include/IndustryStandard/UefiTcgPlatform.h b/MdePkg/Include/IndustryStandard/UefiTcgPlatform.h index 8a3e1704af..adbc956f63 100644 --- a/MdePkg/Include/IndustryStandard/UefiTcgPlatform.h +++ b/MdePkg/Include/IndustryStandard/UefiTcgPlatform.h @@ -205,6 +205,17 @@ typedef struct tdTCG_PCR_EVENT2 { UINT8 Event[1]; } TCG_PCR_EVENT2; +// +// TCG PCR Event2 Header +// Follow TCG EFI Protocol Spec 5.2 Crypto Agile Log Entry Format +// +typedef struct tdTCG_PCR_EVENT2_HDR{ + TCG_PCRINDEX PCRIndex; + TCG_EVENTTYPE EventType; + TPML_DIGEST_VALUES Digests; + UINT32 EventSize; +} TCG_PCR_EVENT2_HDR; + // // Log Header Entry Data // -- 2.39.2