From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 4ED20740038 for ; Thu, 14 Dec 2023 23:39:35 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=e4AG2RHuYrP+ASUR9GoHQwygN3mj422XSLW0tvAadcw=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1702597173; v=1; b=bblNsiq9XfNyoF7YUjXMBVxiFVDFCjMBYmFMBbKUNsRk9G1xHvwLJvseuTBEEVeWg20Q7enk 9wkow0N5dIw6Nt+Srw2gD5kiYnD1VIVn5QzCja9DU5jEoqtE1aLk+0AoEz+gQdxjUyQbTq+8r4a inRmB0BbCv5VffXePH7KWH8o= X-Received: by 127.0.0.2 with SMTP id AvKUYY7687511xMdPB2sxa45; Thu, 14 Dec 2023 15:39:33 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web10.44959.1702597173128155634 for ; Thu, 14 Dec 2023 15:39:33 -0800 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A3525C15; Thu, 14 Dec 2023 15:40:17 -0800 (PST) X-Received: from beelzebub.ast.arm.com (unknown [10.118.29.240]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2D6C33F762; Thu, 14 Dec 2023 15:39:32 -0800 (PST) From: "Stuart Yoder" To: devel@edk2.groups.io, Edhaya.Chandran@arm.com, gaojie@byosoft.com.cn Cc: ilias.apalodimas@linaro.org, heinrich.schuchardt@canonical.com, Samer.El-Haj-Mahmoud@arm.com, Jiewen.Yao@intel.com Subject: [edk2-devel] [PATCH v1 0/6] Tests for TCG2 Protocol Date: Thu, 14 Dec 2023 17:39:15 -0600 Message-Id: <20231214233921.169624-1-stuart.yoder@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: 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,stuart.yoder@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: sFJNTiAhzzyPeSYvlY2wdvzpx7686176AA= Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=bblNsiq9; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=arm.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io This patch series adds tests for the TCG2 Protocol which is implemented b= y EDK2. The protocol is defined in chapter 6 in the TCG EFI Protocol Specificatio= n: https://trustedcomputinggroup.org/resource/tcg-efi-protocol-specification= / The definition of the test cases is in a specification that has been reviewed in 2022 by participants in the monthly Tianocore edk2-test bug t= riage meeting. That spec is here: https://github.com/stuyod01/edk2-test/blob/master/uefi-sct/Doc/UEFI-SCT-C= ase-Spec/30_Protocols_TCG2_Test.md Bugzilla ticket for this is: https://bugzilla.tianocore.org/show_bug.cgi?id=3D3736 The patches in this series are an updated version of code that has been in the Arm SystemReady ACS for several years, and have been used as part of SystemReady certifications. There are tests for functions EFI_TCG2_PROTOCOL.GetCapability EFI_TCG2_PROTOCOL.GetEventLog EFI_TCG2_PROTOCOL.HashLogExtendEvent EFI_TCG2_PROTOCOL.SubmitCommand EFI_TCG2_PROTOCOL.GetActivePcrBanks Joseph Hemann (6): uefi-sct/SctPkg: TCG2 Protocol: add header with TCG2 protocol definitions uefi-sct/SctPkg: TCG2 Protocol: add GetCapability Test uefi-sct/SctPkg: TCG2 Protocol: add GetActivePcrBanks test uefi-sct/SctPkg: TCG2 Protocol: add HashLogExtendEvent test uefi-sct/SctPkg: TCG2 Protocol: add GetEventLog test uefi-sct/SctPkg: TCG2 Protocol: add SubmitCommand test uefi-sct/SctPkg/CommonGenFramework.sh | 1 + uefi-sct/SctPkg/Config/Data/Category.ini | 7 + .../EFI/Protocol/TCG2/BlackBoxTest/Guid.c | 63 + .../EFI/Protocol/TCG2/BlackBoxTest/Guid.h | 112 ++ .../TCG2/BlackBoxTest/TCG2ProtocolBBTest.h | 217 +++ .../TCG2/BlackBoxTest/TCG2ProtocolBBTest.inf | 51 + .../TCG2ProtocolBBTestConformance.c | 1181 +++++++++++++++++ .../BlackBoxTest/TCG2ProtocolBBTestMain.c | 129 ++ uefi-sct/SctPkg/UEFI/Protocol/TCG2.h | 225 ++++ uefi-sct/SctPkg/UEFI/UEFI_SCT.dsc | 1 + 10 files changed, 1987 insertions(+) create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/TCG2/Black= BoxTest/Guid.c create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/TCG2/Black= BoxTest/Guid.h create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/TCG2/Black= BoxTest/TCG2ProtocolBBTest.h create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/TCG2/Black= BoxTest/TCG2ProtocolBBTest.inf create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/TCG2/Black= BoxTest/TCG2ProtocolBBTestConformance.c create mode 100644 uefi-sct/SctPkg/TestCase/UEFI/EFI/Protocol/TCG2/Black= BoxTest/TCG2ProtocolBBTestMain.c create mode 100644 uefi-sct/SctPkg/UEFI/Protocol/TCG2.h --=20 2.34.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#112565): https://edk2.groups.io/g/devel/message/112565 Mute This Topic: https://groups.io/mt/103181266/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-