diff options
| author | Sami Mujawar <sami.mujawar@arm.com> | 2025-09-18 16:48:28 +0100 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2026-07-03 09:26:33 +0000 |
| commit | 5a64d2c5e1b4c51440e335fe0b2c66065082ccc6 (patch) | |
| tree | f2d1d954d9655df4e263cf402b70df863996406f | |
| parent | 3b2350f2c15233aa8f1f89202e183ab4cdf715b2 (diff) | |
| download | edk2-5a64d2c5e1b4c51440e335fe0b2c66065082ccc6.tar.gz edk2-5a64d2c5e1b4c51440e335fe0b2c66065082ccc6.zip | |
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 <sami.mujawar@arm.com>
| -rw-r--r-- | MdePkg/Include/Protocol/CcMeasurement.h | 2 |
1 files changed, 2 insertions, 0 deletions
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.
|
