cli/attestation: use const for PCR/TDX lengths

This commit is contained in:
Nils Hanke 2023-03-10 11:22:56 +01:00 committed by Malte Poll
parent d58b5f1c06
commit fe3622d982

View File

@ -49,6 +49,11 @@ const (
TDXIndexClusterID = RTMRIndexClusterID + 1
// RTMRIndexClusterID is the RTMR we extend to mark the node as initialized.
RTMRIndexClusterID = 2
// PCRMeasurementLength holds the length for valid PCR measurements (SHA256).
PCRMeasurementLength = 32
// TDXMeasurementLength holds the length for valid TDX measurements (SHA384).
TDXMeasurementLength = 48
)
// M are Platform Configuration Register (PCR) values that make up the Measurements.