From nobody Mon Feb 9 06:01:46 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+63077+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+63077+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1595402928; cv=none; d=zohomail.com; s=zohoarc; b=WVXtBo9OEWcdORS7PFzG+AYD9MG/Okking/Ag1xie+yS/r/yDsbsE+J7cI2u4z9vM0PtaZNst66oLZB0W9Mk9qYHONU9H8XXSLwzU1vsB5sQA7ena37JntRc1lMTeOkGn/ieahiSojEvusVKik/TpNJwPrL02fhzj5b8SILSwDY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1595402928; 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=RnIeQxVwc0rxYbbvg5WKSVK3e2lx3Htxggh4m7I9hjQ=; b=CNVnOkJMhrQFRFId/StwnmIYlAzAa3+O/oVb0yrflt84QQ72ipjfYy5UgGuo6lfzLWpH1NxURN1luviGHButnqf+hAG+fqy5r6zqAPQIjgEyu6rNKxIZIq0N3uJuLAXr23kPLP83aRlqvT6Fp10IMEvzTgVQ4m+nDfTuLb16h3o= 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+63077+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 1595402928475951.0985758992781; Wed, 22 Jul 2020 00:28:48 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id qUveYY1788612xktio1Xy4se; Wed, 22 Jul 2020 00:28:48 -0700 X-Received: from mga14.intel.com (mga14.intel.com []) by mx.groups.io with SMTP id smtpd.web11.13668.1595402925893209217 for ; Wed, 22 Jul 2020 00:28:47 -0700 IronPort-SDR: tqD0dd3H2NsFIibwKDXtrrCeE9j5+h1fh8FY6LCR71GCVy4pcpwTuEHT4oQLzVd7A4OaJTR1va yJNamFTx+OGA== X-IronPort-AV: E=McAfee;i="6000,8403,9689"; a="149450056" X-IronPort-AV: E=Sophos;i="5.75,381,1589266800"; d="scan'208";a="149450056" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jul 2020 00:28:47 -0700 IronPort-SDR: O3W6KFOiabeusPhNT5BIIVe9o2iAyGoyxNcOA2Okjq12ItEPjbCN7RGPzRZ9Gfm/P0U6fYmcMt bLNkqEYuE/zA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,381,1589266800"; d="scan'208";a="462363604" X-Received: from shwdesssddpdqi.ccr.corp.intel.com ([10.239.9.10]) by orsmga005.jf.intel.com with ESMTP; 22 Jul 2020 00:28:45 -0700 From: "Qi Zhang" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Qi Zhang Subject: [edk2-devel] [PATCH v6 1/6] SecurityPkg/TcgPpi: Add TcgPpi header file. Date: Wed, 22 Jul 2020 15:28:36 +0800 Message-Id: <20200722072841.12389-2-qi1.zhang@intel.com> In-Reply-To: <20200722072841.12389-1-qi1.zhang@intel.com> References: <20200722072841.12389-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: pZ5B6LrSXpu5KQTIZTzSkZIFx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1595402928; bh=3YCnewu7FWl4S0XzKdwOG2nT2307p3Rmqg0eaaHxY5M=; h=Cc:Date:From:Reply-To:Subject:To; b=DMYKX0F9q3Cc4XOfcXtATLtrfKOVYkyIZ0YbSZxep0E3mRhRvVq7YEfTFGV2R5eK9rb ZoSiougRod1pG7S7wmY7goQJxtnradHZk0F5RejRCxQkid1JES+vNp5Gkc7BPKaeheIqP G5tPIW+gtjKAGz0wPjIktnDn0UlFhIMYRWQ= 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: Qi Zhang Signed-off-by: Jiewen Yao --- SecurityPkg/Include/Ppi/Tcg.h | 60 +++++++++++++++++++++++++++++++++++ 1 file changed, 60 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..0e943f2465 --- /dev/null +++ b/SecurityPkg/Include/Ppi/Tcg.h @@ -0,0 +1,60 @@ +/** @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; + +// +// This bit is shall be set when HashData is the pre-hash digest. +// +#define EDKII_TCG_PRE_HASH 0x0000000000000001 + +/** + Tpm measure and log data, and extend the measurement result into a speci= fic PCR. + + @param[in] This Indicates the calling context + @param[in] Flags Bitmap providing additional information + @param[in] HashData If BIT0 of Flags is 0, it is physical addr= ess of the + start of the data buffer to be hashed, ext= ended, and logged. + If BIT0 of Flags is 1, it is physical addr= ess of the + start of the pre-hash data buffter to be e= xtended, and logged. + The pre-hash data format is TPML_DIGEST_VA= LUES. + @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 UINT64 Flags, + 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 (#63077): https://edk2.groups.io/g/devel/message/63077 Mute This Topic: https://groups.io/mt/75720096/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-