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 8E905D802AD for ; Mon, 6 May 2024 18:07:58 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=TwxDqBKg9lbR5KaZyyD7gY5OMqeRdbYjnKNot177o+w=; 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=1715018877; v=1; b=F/yMYTcLnngizyFZCiaxIAQEBUgPP6gXpRUnPX4pzoylTbP11imHnif7PHAyYqyf4Ld6Ei5O 6hch5w2idDJsNGHkzYUGvYXU2j4hfYUOZQYYD7j/XB2O/4uG42R8qJUk+VubSnXsMY3iRhK/DDn OYO28o+8oGcKODCTCrof3l1q9R9XpeL3+j1BAFpgZYRcKPWlC0XBymSGiFoEcgMKkHUyVrJeEjX 353ccezlGDsZaxRWFv+sxTuyJReTaHA3cSBrX+m1N62ZLSxlbW50HJ9MvgJafwc2TKzH8b6E0JA g/e2ECuHGbG9WaEyeJUKaUVEYNzqy3Q14wVWUjoBEkNGg== X-Received: by 127.0.0.2 with SMTP id ZqyCYY7687511xswshZ8iNmS; Mon, 06 May 2024 11:07:57 -0700 X-Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) by mx.groups.io with SMTP id smtpd.web11.1465.1715018876328551564 for ; Mon, 06 May 2024 11:07:56 -0700 X-Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-1ec43465046so21625535ad.1 for ; Mon, 06 May 2024 11:07:56 -0700 (PDT) X-Gm-Message-State: BZ9b6JwAMJsHF5ci9xCIexlux7686176AA= X-Google-Smtp-Source: AGHT+IGM/RupPv9WXnD5EE0BR2Hd7ceemqx0OSbaBOCsTZZ36tekzxB9MyeRS+22fI2z4HO9jMvQwx19i9gu5T7vtg== X-Received: from dionnaglaze.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2ee6]) (user=dionnaglaze job=sendgmr) by 2002:a17:902:e886:b0:1e0:c486:9af1 with SMTP id w6-20020a170902e88600b001e0c4869af1mr30850plg.12.1715018875517; Mon, 06 May 2024 11:07:55 -0700 (PDT) Date: Mon, 6 May 2024 18:07:45 +0000 In-Reply-To: <20240506180745.2139164-1-dionnaglaze@google.com> Mime-Version: 1.0 References: <20240506180745.2139164-1-dionnaglaze@google.com> Message-ID: <20240506180745.2139164-4-dionnaglaze@google.com> Subject: [edk2-devel] [PATCH v4 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: Mon, 06 May 2024 11:07:56 -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="F/yMYTcL"; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io; dmarc=pass (policy=none) header.from=groups.io The signatures for event2 or event3 are now valid TCG SP800155 event types. Fixes uncrustify formatting. Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Gerd Hoffmann Reviewed-by: Jiewen Yao Signed-off-by: Dionna Glaze --- OvmfPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/OvmfPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.c b/OvmfPkg/Tcg/TdTcg2Dxe/TdTcg2Dxe.c index 6ca29f5de0..5241f60891 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 ( - NewEventData, - TCG_Sp800_155_PlatformId_Event2_SIGNATURE, - sizeof (TCG_Sp800_155_PlatformId_Event2_SIGNATURE) - 1 - ) == 0)) + ((CompareMem ( + NewEventData, + TCG_Sp800_155_PlatformId_Event2_SIGNATURE, + sizeof (TCG_Sp800_155_PlatformId_Event2_SIGNATURE) - 1 + ) == 0) || + (CompareMem ( + NewEventData, + TCG_Sp800_155_PlatformId_Event3_SIGNATURE, + sizeof (TCG_Sp800_155_PlatformId_Event3_SIGNATURE) - 1 + ) == 0))) { return TRUE; } -- 2.45.0.rc1.225.g2a3ae87e7f-goog -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#118613): https://edk2.groups.io/g/devel/message/118613 Mute This Topic: https://groups.io/mt/105945155/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-