From nobody Mon Feb 9 05:41:07 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+62486+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+62486+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1594725679; cv=none; d=zohomail.com; s=zohoarc; b=Sap/7+hoaMZHarDMsqePHAvCGcMYyYSaHrBv5s1RhRXYebO7wAvCM6NmYxQcBM73KP9FCN26bvwlGZ6TtRG2Tc4/3icbP5MjKgPixq+f/vSludfnuIwniQwmYQ1MRnfHY43cD/hSVwgA7yb0h5MjgquCutOmm9yBm7KzvAX59hU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594725679; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=bL9wquBFOnrp9avOOAVKWzZPD9FMc97JWACoc3Y6cn8=; b=jWFD/0YoJGPW9ELvtl2o+iUdjKHZv3lnZuPzqU2gBdSkzkk1OyrmCn9Y0ngQ4CIQ4RkUiUAlcR7UTlgnMYxIFlumZCDKoVPV/3SBrrh8YlMEPl0RK8VYP2J99MHQOkbbb/XjnbHHbNtfJMyCD3sG6RM6hKAXF0TXiOoWxGkA6bg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+62486+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 159472567996132.54053224295308; Tue, 14 Jul 2020 04:21:19 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id HkRiYY1788612xooNQ5yLqq4; Tue, 14 Jul 2020 04:21:19 -0700 X-Received: from mga18.intel.com (mga18.intel.com []) by mx.groups.io with SMTP id smtpd.web12.14679.1594709372852380864 for ; Mon, 13 Jul 2020 23:49:34 -0700 IronPort-SDR: S3WSQy8D+FSm8Opa7genFxVmdWMVBXJTcwWpIs+lQwCh1oy86Cxbq5N7PzCnZ3ZSjYDUdUOV+r oEB7NeydU1Ew== X-IronPort-AV: E=McAfee;i="6000,8403,9681"; a="136287702" X-IronPort-AV: E=Sophos;i="5.75,350,1589266800"; d="scan'208";a="136287702" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jul 2020 23:49:34 -0700 IronPort-SDR: O58UrUOy4yDExxhq01HEzqYKRRACm0HE7+IMiNI023bv811KEO+/qW0gZOTYhDcV4/HTa7QkzF iRllfQcXheHg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,350,1589266800"; d="scan'208";a="360292061" X-Received: from shwdesssddpdqi.ccr.corp.intel.com ([10.239.9.10]) by orsmga001.jf.intel.com with ESMTP; 13 Jul 2020 23:49:32 -0700 From: Qi Zhang To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Chao Zhang Subject: [edk2-devel] [PATCH 1/6] SecurityPkg/TcgPpi: Add TcgPpi header file. Date: Tue, 14 Jul 2020 14:49:17 +0800 Message-Id: <20200714064922.7025-2-qi1.zhang@intel.com> In-Reply-To: <20200714064922.7025-1-qi1.zhang@intel.com> References: <20200714064922.7025-1-qi1.zhang@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,qi1.zhang@intel.com X-Gm-Message-State: dCkfZpTHOMT4bsPruYsIJUojx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1594725679; bh=p+bgu3krjTnpZe4+j5CiUM+HWr4urmYdnGO3hgcQZmw=; h=Cc:Date:From:Reply-To:Subject:To; b=tgvuYWn7GJNZ8/KSB1k4vXrLAjnc+x+qyNQh8l+nLw/UTPCThn+0XByg5G8D5n43Rat MtNStope/KCPKogzRaI/OMgpWZ6cbiCR4YtZD6O9gAvkwEfrDld5tkJksaWelcYwthUli 0WV8A7SQatrYUrjITSunx+px8xLEfFIBRvE= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" From: Jiewen Yao REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2841 Cc: Jiewen Yao Cc: Jian J Wang Cc: Chao Zhang Signed-off-by: Jiewen Yao --- SecurityPkg/Include/Ppi/Tcg.h | 50 +++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 SecurityPkg/Include/Ppi/Tcg.h diff --git a/SecurityPkg/Include/Ppi/Tcg.h b/SecurityPkg/Include/Ppi/Tcg.h new file mode 100644 index 0000000000..4eacd57166 --- /dev/null +++ b/SecurityPkg/Include/Ppi/Tcg.h @@ -0,0 +1,50 @@ +/** @file + TCG PPI services. + +Copyright (c) 2020, Intel Corporation. All rights reserved.
+SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef _TCG_PPI_H_ +#define _TCG_PPI_H_ + +#include + +typedef struct _EDKII_TCG_PPI EDKII_TCG_PPI; + +/** + Tpm measure and log data, and extend the measurement result into a speci= fic PCR. + + @param[in] This Indicates the calling context + @param[in] HashData Physical address of the start of the data = buffer + to be hashed, extended, and logged. + @param[in] HashDataLen The length, in bytes, of the buffer refere= nced by HashData. + @param[in] NewEventHdr Pointer to a TCG_PCR_EVENT_HDR data struct= ure. + @param[in] NewEventData Pointer to the new event data. + + @retval EFI_SUCCESS Operation completed successfully. + @retval EFI_UNSUPPORTED TPM device not available. + @retval EFI_OUT_OF_RESOURCES Out of memory. + @retval EFI_DEVICE_ERROR The operation was unsuccessful. +**/ +typedef +EFI_STATUS +(EFIAPI *EDKII_TCG_HASH_LOG_EXTEND_EVENT)( + IN EDKII_TCG_PPI *This, + IN UINT8 *HashData, + IN UINTN HashDataLen, + IN TCG_PCR_EVENT_HDR *NewEventHdr, + IN UINT8 *NewEventData + ); + +/// +/// The EFI_TCG Protocol abstracts TCG activity. +/// +struct _EDKII_TCG_PPI { + EDKII_TCG_HASH_LOG_EXTEND_EVENT HashLogExtendEvent; +}; + +extern EFI_GUID gEdkiiTcgPpiGuid; + +#endif --=20 2.26.2.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#62486): https://edk2.groups.io/g/devel/message/62486 Mute This Topic: https://groups.io/mt/75496422/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-