diff --git a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/DeviceSecurityEventDataHeaderBase.java b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/DeviceSecurityEventDataHeaderBase.java index 9c912b6b..818395e5 100644 --- a/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/DeviceSecurityEventDataHeaderBase.java +++ b/HIRS_Utils/src/main/java/hirs/utils/tpm/eventlog/events/DeviceSecurityEventDataHeaderBase.java @@ -15,33 +15,40 @@ import java.nio.charset.StandardCharsets; * which implies the data is a DEVICE_SECURITY_EVENT_DATA or ..DATA2. * * HEADERS defined by PFP v1.06 Rev 52. - * The ** indicates fields that are common to both ..HEADER and ..HEADER2. + * Certain fields are common to both ..HEADER and ..HEADER2, and are noted below the structures. *

* typedef struct tdDEVICE_SECURITY_EVENT_DATA_HEADER { - * UINT8 ** Signature[16]; - * UINT16 ** Version; + * UINT8 Signature[16]; + * UINT16 Version; * UINT16 Length; * UINT32 SpdmHashAlg; - * UINT32 ** DeviceType; + * UINT32 DeviceType; * SPDM_MEASUREMENT_BLOCK SpdmMeasurementBlock; - * UINT64 ** DevicePathLength; - * UNIT8 ** DevicePath[DevicePathLength] + * UINT64 DevicePathLength; + * UNIT8 DevicePath[DevicePathLength] * } DEVICE_SECURITY_EVENT_DATA_HEADER; *

* typedef struct tdDEVICE_SECURITY_EVENT_DATA_HEADER2 { - NOT IMPLEMENTED YET - * UINT8 ** Signature[16]; - * UINT16 ** Version; + * UINT8 Signature[16]; + * UINT16 Version; * UINT8 AuthState; * UINT8 Reserved; * UINT32 Length; - * UINT32 ** DeviceType; + * UINT32 DeviceType; * UINT32 SubHeaderType; * UINT32 SubHeaderLength; * UINT32 SubHeaderUID; - * UINT64 ** DevicePathLength; - * UNIT8 ** DevicePath[DevicePathLength] + * UINT64 DevicePathLength; + * UNIT8 DevicePath[DevicePathLength] * } DEVICE_SECURITY_EVENT_DATA_HEADER2; *

+ * Fields common to both ..HEADER and ..HEADER2: + * Signature + * Version + * DeviceType + * DevicePathLength + * DevicePath + *

*/ public abstract class DeviceSecurityEventDataHeaderBase {