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 8D9A2AC02CF for ; Thu, 2 May 2024 00:50:55 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=0+yklWL4VfarYlNGTwEcpTfPBc4oMo9yZ4ovb0RUKxA=; 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=1714611054; v=1; b=yRJssHn6nZ0bL7ME3DkFFk3aJJ2Yi/RjvoXYnaJ9j2SvkmhyvUdGqyVm0OOAhbIz0INsb/XK UhSCYdx0yUHX9Ap4tIjzhy9D614EqBgl3DFU+Vse6rgavh3mZ/K3wraWWuixPEzcCsWdoMDZ4Ky JMVpgiN2tC7leQrVDthGoQ8WxzyIjtw14udsYJUqkH1xF1feqWevGxZjfX83iMngy2V7P6/U0cy lI3BbZRbIQIBKqi4bQQM/Ziw3+lT/DTi+TJIED7+065YgcYfS9wzG9/oJaL3/UG3zONOfrLlMA+ I0ID53lKQ0U1v9qQSLf/QLn1G+3J8vGN7F2sFVLZD/Kuw== X-Received: by 127.0.0.2 with SMTP id kW0ZYY7687511xwEx9hQi8QB; Wed, 01 May 2024 17:50:54 -0700 X-Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) by mx.groups.io with SMTP id smtpd.web10.2683.1714611048526892380 for ; Wed, 01 May 2024 17:50:48 -0700 X-Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-6f3e2ae6c23so5808592b3a.2 for ; Wed, 01 May 2024 17:50:48 -0700 (PDT) X-Gm-Message-State: RHJmit97UNjwL9ZodlkwyvIZx7686176AA= X-Google-Smtp-Source: AGHT+IFSFsIDH0btAwQMyt+rTGi4p5ESoENUAtaMrdqJSSz1S941X3vlzM5fEWt8GO+Rh1gwxXjF/kKTsbEijhHfDw== X-Received: from dionnaglaze.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2ee6]) (user=dionnaglaze job=sendgmr) by 2002:a05:6a00:1305:b0:6f3:ead3:c277 with SMTP id j5-20020a056a00130500b006f3ead3c277mr260408pfu.1.1714611047770; Wed, 01 May 2024 17:50:47 -0700 (PDT) Date: Thu, 2 May 2024 00:50:13 +0000 In-Reply-To: <20240502005041.825088-1-dionnaglaze@google.com> Mime-Version: 1.0 References: <20240502005041.825088-1-dionnaglaze@google.com> Message-ID: <20240502005041.825088-3-dionnaglaze@google.com> Subject: [edk2-devel] [PATCH v3 2/3] SecurityPkg: recognize sp800155Event3 event too From: "Dionna Glaze via groups.io" To: devel@edk2.groups.io Cc: Dionna Glaze , Jiewen Yao , Rahul Kumar 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 17:50:48 -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=yRJssHn6; 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: Jiewen Yao Cc: Rahul Kumar Reviewed-by: Jiewen Yao Signed-off-by: Dionna Glaze --- SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c index b8f50e25df..2f73237984 100644 --- a/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c +++ b/SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c @@ -812,11 +812,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 (#118487): https://edk2.groups.io/g/devel/message/118487 Mute This Topic: https://groups.io/mt/105854727/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-