From 5a64d2c5e1b4c51440e335fe0b2c66065082ccc6 Mon Sep 17 00:00:00 2001 From: Sami Mujawar Date: Thu, 18 Sep 2025 16:48:28 +0100 Subject: MdePkg: Add SHA-256 and SHA-512 measurement hash algorithm IDs The CCEL (CC Event Log) ACPI table records measurement logs for confidential computing platforms. Each measurement specifies the hash algorithm used, identified by a numeric constant. The edk2 Code First proposal "[Code First] Add supporting details of Arm Confidential Compute Architecture in UEFI spec" (#11383) https://github.com/tianocore/edk2/issues/11383 extends section 38.2 EFI_CC_MEASUREMENT_PROTOCOL to define algorithm IDs for: - SHA-256 (EFI_CC_BOOT_HASH_ALG_SHA256) - SHA-512 (EFI_CC_BOOT_HASH_ALG_SHA512) This enables CC types such as Arm CCA to record and interpret measurements using these hash algorithms. Add these definitions to the CC measurement header file to align with the updated specification. Signed-off-by: Sami Mujawar --- MdePkg/Include/Protocol/CcMeasurement.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MdePkg/Include/Protocol/CcMeasurement.h b/MdePkg/Include/Protocol/CcMeasurement.h index 5d9772ebe9..6d94e75d32 100644 --- a/MdePkg/Include/Protocol/CcMeasurement.h +++ b/MdePkg/Include/Protocol/CcMeasurement.h @@ -88,7 +88,9 @@ typedef UINT32 EFI_CC_MR_INDEX; #define ARMCCA_MR_INDEX_INVALID 4 #define EFI_CC_EVENT_LOG_FORMAT_TCG_2 0x00000002 +#define EFI_CC_BOOT_HASH_ALG_SHA256 0x00000002 #define EFI_CC_BOOT_HASH_ALG_SHA384 0x00000004 +#define EFI_CC_BOOT_HASH_ALG_SHA512 0x00000008 // // This bit is shall be set when an event shall be extended but not logged. -- cgit v1.2.3