mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-22 13:14:26 +02:00
MdePkg/Spdm: fix Nonce structure error.
Align to SPDM 1.0.0 specification. Fix Nonce data structure error. Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
01b6090b75
commit
c7a0aca0ed
@ -1,6 +1,6 @@
|
|||||||
/** @file
|
/** @file
|
||||||
Definitions of Security Protocol & Data Model Specification (SPDM)
|
Definitions of Security Protocol & Data Model Specification (SPDM)
|
||||||
version 0.99a in Distributed Management Task Force (DMTF).
|
version 1.0.0 in Distributed Management Task Force (DMTF).
|
||||||
|
|
||||||
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
@ -215,7 +215,7 @@ typedef struct {
|
|||||||
///
|
///
|
||||||
typedef struct {
|
typedef struct {
|
||||||
SPDM_MESSAGE_HEADER Header;
|
SPDM_MESSAGE_HEADER Header;
|
||||||
UINT32 Nonce;
|
UINT8 Nonce[32];
|
||||||
} SPDM_CHALLENGE_REQUEST;
|
} SPDM_CHALLENGE_REQUEST;
|
||||||
|
|
||||||
///
|
///
|
||||||
@ -224,7 +224,7 @@ typedef struct {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
SPDM_MESSAGE_HEADER Header;
|
SPDM_MESSAGE_HEADER Header;
|
||||||
//UINT8 CertChainHash[DigestSize];
|
//UINT8 CertChainHash[DigestSize];
|
||||||
//UINT32 Nonce;
|
//UINT8 Nonce[32];
|
||||||
//UINT8 MeasurementSummaryHash[DigestSize];
|
//UINT8 MeasurementSummaryHash[DigestSize];
|
||||||
//UINT16 OpaqueLength;
|
//UINT16 OpaqueLength;
|
||||||
//UINT8 OpaqueData[OpaqueLength];
|
//UINT8 OpaqueData[OpaqueLength];
|
||||||
@ -236,7 +236,7 @@ typedef struct {
|
|||||||
///
|
///
|
||||||
typedef struct {
|
typedef struct {
|
||||||
SPDM_MESSAGE_HEADER Header;
|
SPDM_MESSAGE_HEADER Header;
|
||||||
UINT32 Nonce;
|
UINT8 Nonce[32];
|
||||||
} SPDM_GET_MEASUREMENTS_REQUEST;
|
} SPDM_GET_MEASUREMENTS_REQUEST;
|
||||||
|
|
||||||
///
|
///
|
||||||
@ -277,7 +277,7 @@ typedef struct {
|
|||||||
UINT8 NumberOfBlocks;
|
UINT8 NumberOfBlocks;
|
||||||
UINT8 MeasurementRecordLength[3];
|
UINT8 MeasurementRecordLength[3];
|
||||||
//UINT8 MeasurementRecord[MeasurementRecordLength];
|
//UINT8 MeasurementRecord[MeasurementRecordLength];
|
||||||
//UINT32 Nonce;
|
//UINT8 Nonce[32];
|
||||||
//UINT16 OpaqueLength;
|
//UINT16 OpaqueLength;
|
||||||
//UINT8 OpaqueData[OpaqueLength];
|
//UINT8 OpaqueData[OpaqueLength];
|
||||||
//UINT8 Signature[KeySize];
|
//UINT8 Signature[KeySize];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user