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 B79DB740035 for ; Wed, 1 May 2024 00:53:16 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=aMORX4+yxL6pZmxpuHt6T9ZQurC7J2p5ibQG6pdbcfg=; 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=1714524795; v=1; b=2O+UpxC12Po47XOZNzA78VOZTgDBs+KDnAFJNmAbCh1PjNJz7L/+xLwoMGABpJgvpULFnHYP IBwf2CzFg/9jefejA0mvZOBZhvUR85EXZjAaZ4URfNMSEmD4YVHnKkb1d9Z9yJHfU9rvFXzOEWj NH3ol1G11ZWicGtx1eJrAHZre23zoSp63fyLLhrV7qEHQFxdP+kPTawvH0C3fcDPdmcK5Xi9bOj cuEJeoVrHN6n8S1lvjypnPtJuDALRmgBtwuaICe3/ir4WHyJjSdMTBzFnGw+bwM9EkRYvqzO2EV XVj5RE8yicX2dpVS5ls5WchozoRSPT7J7Qkg84zxq0htw== X-Received: by 127.0.0.2 with SMTP id y0HWYY7687511xrcqOhjBnB2; Tue, 30 Apr 2024 17:53:15 -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.1840.1714524794765974123 for ; Tue, 30 Apr 2024 17:53:14 -0700 X-Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-6f3ea8f5471so2576172b3a.1 for ; Tue, 30 Apr 2024 17:53:14 -0700 (PDT) X-Gm-Message-State: X1Ahre99mTyB0njfmJzZ9SKfx7686176AA= X-Google-Smtp-Source: AGHT+IFqgI462ERS3PQNPEhEIwDjofCpNWxTtdq2ZteFJqGFkXgm0d8l7J3LvItpavT3GtCRpJufVcUFTxtGb3PdXg== X-Received: from dionnaglaze.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2ee6]) (user=dionnaglaze job=sendgmr) by 2002:a05:6a00:3a0d:b0:6ec:f266:d214 with SMTP id fj13-20020a056a003a0d00b006ecf266d214mr62758pfb.4.1714524793915; Tue, 30 Apr 2024 17:53:13 -0700 (PDT) Date: Wed, 1 May 2024 00:52:47 +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-3-dionnaglaze@google.com> Subject: [edk2-devel] [PATCH 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: Tue, 30 Apr 2024 17:53:14 -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=2O+UpxC1; 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 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 (#118450): https://edk2.groups.io/g/devel/message/118450 Mute This Topic: https://groups.io/mt/105833239/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-