From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id D425A740032 for ; Wed, 1 May 2024 00:53:18 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=hDavowc4ceODWTMDcBnr55/GAYxwNH/KgR1MOOI9DDY=; c=relaxed/simple; d=groups.io; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From:To:Cc:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type; s=20240206; t=1714524797; v=1; b=mDRvFbJvAjmfxM6NRUYG2jW0lRR2zYrh3H4UO56IZU6Ucj4xp9xGUkRJmmiQqPCBg5jJ3r0J FDCmqT+BWjZMcWZi+9AxkE+tYH9PJUpi06mmmG7TX4p5ynBn1ThDdSyq0RkQp4abxNKtMRmeH8A Wj9XgWPP7emq1Hsw8qfqUpT7IymxcIsK2sP2Qy5HW/gIcK1pr6eCxUv0/3R2Co/mekVPidIVTV8 n8LH8IQ4Gp8V5RuX8tYEHMWI1g1jLhtk75YlDNrOU1F7XG38H1Ly1eevaOI3upd7zNfD1YE0jF2 4QCHcM3fClRJ7tuZWwrq4bXKqqZWJJ4+6ztlFrN351SBA== X-Received: by 127.0.0.2 with SMTP id dD8pYY7687511xMnu8Gp0cAd; Tue, 30 Apr 2024 17:53:17 -0700 X-Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) by mx.groups.io with SMTP id smtpd.web11.1907.1714524796902017641 for ; Tue, 30 Apr 2024 17:53:17 -0700 X-Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-de5a378a948so8766154276.2 for ; Tue, 30 Apr 2024 17:53:16 -0700 (PDT) X-Gm-Message-State: VFF3YwDhHddCTUVPfPjU0zPux7686176AA= X-Google-Smtp-Source: AGHT+IGahzq6BqoCJl9rS1U0xb9LqlSmhIBgVc0H0ibztRFmqONRNRKkOeGlXyS+uEYxT4g0uzDuE9q1IxHnvNLDvQ== X-Received: from dionnaglaze.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2ee6]) (user=dionnaglaze job=sendgmr) by 2002:a05:6902:154d:b0:dce:5218:c89b with SMTP id r13-20020a056902154d00b00dce5218c89bmr156163ybu.5.1714524795558; Tue, 30 Apr 2024 17:53:15 -0700 (PDT) Date: Wed, 1 May 2024 00:52:48 +0000 In-Reply-To: <20240501005259.3759387-1-dionnaglaze@google.com> Mime-Version: 1.0 References: <20240501005259.3759387-1-dionnaglaze@google.com> Message-ID: <20240501005259.3759387-4-dionnaglaze@google.com> Subject: [edk2-devel] [PATCH 3/3] OvmfPkg: add sp800155Event3 support From: "Dionna Glaze via groups.io" To: devel@edk2.groups.io Cc: Dionna Glaze , Ard Biesheuvel , Jiewen Yao , Gerd Hoffmann 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 Resent-Date: Tue, 30 Apr 2024 17:53:17 -0700 Resent-From: dionnaglaze@google.com Reply-To: devel@edk2.groups.io,dionnaglaze@google.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: Content-Type: text/plain; charset="UTF-8" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=mDRvFbJv; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io The signatures for event2 or event3 are now valid TCG SP800155 event types. Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Gerd Hoffmann Signed-off-by: Dionna Glaze --- OvmfPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/OvmfPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.c b/OvmfPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.c index 6ca29f5de0..d487f5c715 100644 --- a/OvmfPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.c +++ b/OvmfPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.c @@ -821,11 +821,16 @@ Is800155Event ( { if ((((TCG_PCR_EVENT2_HDR *)NewEventHdr)->EventType == EV_NO_ACTION) && (NewEventSize >= sizeof (TCG_Sp800_155_PlatformId_Event2)) && - (CompareMem ( + ((CompareMem ( NewEventData, TCG_Sp800_155_PlatformId_Event2_SIGNATURE, sizeof (TCG_Sp800_155_PlatformId_Event2_SIGNATURE) - 1 - ) == 0)) + ) == 0) || + (CompareMem ( + NewEventData, + TCG_Sp800_155_PlatformId_Event3_SIGNATURE, + sizeof (TCG_Sp800_155_PlatformId_Event3_SIGNATURE) - 1 + ) == 0)))) { return TRUE; } -- 2.45.0.rc0.197.gbae5840b3b-goog -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118451): https://edk2.groups.io/g/devel/message/118451 Mute This Topic: https://groups.io/mt/105833240/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-