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 4FD8F7803CC for ; Wed, 1 May 2024 16:10:38 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=5QDo/R1+9efKDBNp6w1Kbc7FPTRfKOWed6EdaEanGZI=; 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=1714579836; v=1; b=lDWskhtIA0sPmBlwyVD+6d0dgMly/keTY8lQ7TNxLUSzMICJjxxdxH/YQwyk/Ya2UnKAYo7b 0RMcKtGd8BvXr8ma3z6gpA836Rd8Sq8EkdDt1YpENwOm5tOjAIRq2uSRgPI4DrFoOXdiykd4mVj 1Bqg3xLSAjfZAxZTMmhQcSl//NXI33JSxnY9aNnHXGQCYokHjFZ/PzbnW3hzOJ7coaMKvFyrGbn a8AAvIRC6O9541VLHSiOGsl3KB6yvEpShNqxIwqZcuB7XSBOfz9+azGCiitn3FkkpcBPQTZuPKM qkO37PXt84CrSx3OI9KBQxoXQI7kfAkVuvd56gfan8Z7A== X-Received: by 127.0.0.2 with SMTP id 3whjYY7687511xIF4SCOgQFN; Wed, 01 May 2024 09:10:36 -0700 X-Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) by mx.groups.io with SMTP id smtpd.web10.295.1714579836023709850 for ; Wed, 01 May 2024 09:10:36 -0700 X-Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-1ec36e883f2so7652935ad.0 for ; Wed, 01 May 2024 09:10:35 -0700 (PDT) X-Gm-Message-State: V4QFIPSzcBhEvUtAjeu0kGaZx7686176AA= X-Google-Smtp-Source: AGHT+IHALENCJiLH0X1JRVzCkxEdMwCff31ysW4Fd+aAyQXr9VMlvLvwHTeMaSdIWnuyx/+WRxRGe+9k6eSrcWDbIg== X-Received: from dionnaglaze.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2ee6]) (user=dionnaglaze job=sendgmr) by 2002:a17:903:308c:b0:1e5:56e8:7bbd with SMTP id u12-20020a170903308c00b001e556e87bbdmr203plc.1.1714579834272; Wed, 01 May 2024 09:10:34 -0700 (PDT) Date: Wed, 1 May 2024 16:09:57 +0000 In-Reply-To: <20240501161010.372470-1-dionnaglaze@google.com> Mime-Version: 1.0 References: <20240501161010.372470-1-dionnaglaze@google.com> Message-ID: <20240501161010.372470-4-dionnaglaze@google.com> Subject: [edk2-devel] [PATCH v2 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: Wed, 01 May 2024 09:10:36 -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=lDWskhtI; 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 Reviewed-by: Jiewen Yao 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 (#118466): https://edk2.groups.io/g/devel/message/118466 Mute This Topic: https://groups.io/mt/105845526/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-