From nobody Tue Apr 30 13:14:41 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+52322+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52322+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1576638047; cv=none; d=zohomail.com; s=zohoarc; b=YWT5Kr6ryIwA34xpn3rZg+mv0MjmQmlPy2GkJ5sJpmHyjij7NNmFLTRM2bpD0Cd7LIY791PxBBldBOjVIBaeXJWHcQtIZtJtKp8guB6rh3T8M3vjUyfASp1mNbPMqVS3m+hn5J7vro32I9cuzuL5mWbE6rmhx0Sa9FlfHsbdL6Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1576638047; h=Content-Transfer-Encoding:Cc:Date:From:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Sender:Subject:To; bh=ivvCaDE+8C2zpznI38wMR7+U5mumFkFUCEY3ISj5Vhc=; b=Tded0kuEE/7uz+rvtnJKODriAopHw0HiLqKzA+Iq56j72/lWLz9euzCShR96AkkbMSrHPAIx9vC3hWsOs4LIUQ+8HAr9Azp/9m62L21D9qa4Nm266A6QYFz8Oz79hiI+2uP2p/N6oFFrnmup5Z036be/LdEexqgVjxRXVmBfkIc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+52322+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1576638047084644.0416156710853; Tue, 17 Dec 2019 19:00:47 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id tPMfYY1788612x2BACjgwq87; Tue, 17 Dec 2019 19:00:46 -0800 X-Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web12.5981.1576638045588541865 for ; Tue, 17 Dec 2019 19:00:45 -0800 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Dec 2019 19:00:45 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.69,327,1571727600"; d="scan'208";a="227717019" X-Received: from jyao1-mobl2.ccr.corp.intel.com ([10.254.209.77]) by orsmga002.jf.intel.com with ESMTP; 17 Dec 2019 19:00:44 -0800 From: "Yao, Jiewen" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao Subject: [edk2-devel] [PATCH] MdePkg/Spdm: fix Nonce structure error. Date: Wed, 18 Dec 2019 11:00:18 +0800 Message-Id: <20191218030018.18560-1-jiewen.yao@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,jiewen.yao@intel.com X-Gm-Message-State: y7tkbMOqHpuJxrIk6OzjFbxTx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1576638046; bh=h+w3vlGbNVlA1oVtoorcef59St9zQzc3weW/iDy6YPU=; h=Cc:Date:From:Reply-To:Subject:To; b=YWnHvR8yZoffEZBfGsBufG0R+EKnK2K3xq5qWNuPD0C6vq/AzRnB2MrdungFYbFqqir yIr6yzZJs/EJMwRtTIMbMXLeQQ+KQl+t2KfZJNNboXZrtDi5/KlCOEncQQZn1mxcFhwzz WNWbwF9Dx6Ji5F3zU8Of4m1oerkKWNwOPXU= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2427 Align to SPDM 1.0.0 specification. Fix Nonce data structure error. Cc: Michael D Kinney Cc: Liming Gao Signed-off-by: Jiewen Yao --- MdePkg/Include/IndustryStandard/Spdm.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MdePkg/Include/IndustryStandard/Spdm.h b/MdePkg/Include/Indust= ryStandard/Spdm.h index c05395fea7..38ec7748a7 100644 --- a/MdePkg/Include/IndustryStandard/Spdm.h +++ b/MdePkg/Include/IndustryStandard/Spdm.h @@ -1,6 +1,6 @@ /** @file 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). =20 Copyright (c) 2019, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent @@ -215,7 +215,7 @@ typedef struct { /// typedef struct { SPDM_MESSAGE_HEADER Header; - UINT32 Nonce; + UINT8 Nonce[32]; } SPDM_CHALLENGE_REQUEST; =20 /// @@ -224,7 +224,7 @@ typedef struct { typedef struct { SPDM_MESSAGE_HEADER Header; //UINT8 CertChainHash[DigestSize]; -//UINT32 Nonce; +//UINT8 Nonce[32]; //UINT8 MeasurementSummaryHash[DigestSize]; //UINT16 OpaqueLength; //UINT8 OpaqueData[OpaqueLength]; @@ -236,7 +236,7 @@ typedef struct { /// typedef struct { SPDM_MESSAGE_HEADER Header; - UINT32 Nonce; + UINT8 Nonce[32]; } SPDM_GET_MEASUREMENTS_REQUEST; =20 /// @@ -277,7 +277,7 @@ typedef struct { UINT8 NumberOfBlocks; UINT8 MeasurementRecordLength[3]; //UINT8 MeasurementRecord[MeasurementRecordLength]; -//UINT32 Nonce; +//UINT8 Nonce[32]; //UINT16 OpaqueLength; //UINT8 OpaqueData[OpaqueLength]; //UINT8 Signature[KeySize]; --=20 2.19.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#52322): https://edk2.groups.io/g/devel/message/52322 Mute This Topic: https://groups.io/mt/68781647/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-