From nobody Sat Feb 7 05:01:05 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+62755+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+62755+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1594979579; cv=none; d=zohomail.com; s=zohoarc; b=UqhJX2iudVKSIOMBYt5o6oOIblgiyaiSLCO5PYp4FLFF19WlFc+LAcUOsoxc8iB381WYBvftfI3MYI8cUxzQ6zB5S61Jm/Wi4PGzDntrO+SKmQYpmjnkUoNWC8An3pv7Q21KQ/zbA7X6wBKw3bowoRvwIBb6IGUXPDzBfyv3S3g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594979579; 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=MvQhpXvMIPRF7L6NpbmUqs5qvbfmyJNrUnWqWxBSdyI=; b=MdcDcdFEFnqz0gLX5g6+LGAia5dNdUQ2Opb1CYJwtgJWVj9WGoJUqfx6YpI86mynQ3isnyzRDlcjBbmyE9bIglXN8JulcKE+erh69RQkNavkL2dBSHG2oNJN0O15Ubkr/DgRt4JyalC7YxlYGyrCpe8lIN6jdEJjD61rIS/orkA= 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+62755+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 1594979579220705.5170189496777; Fri, 17 Jul 2020 02:52:59 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 2RbiYY1788612x4Tg3dqo0v5; Fri, 17 Jul 2020 02:52:58 -0700 X-Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.7556.1594975786198477911 for ; Fri, 17 Jul 2020 01:49:46 -0700 IronPort-SDR: 6+9qz0vgQcUvJjuBaPtdjtcOrN6zhRUUTdkP3+bs4L3ZPsUuZFj8wAK8QF36WpZBSo1gWec5gV 3ONFyKAyk95Q== X-IronPort-AV: E=McAfee;i="6000,8403,9684"; a="234410421" X-IronPort-AV: E=Sophos;i="5.75,362,1589266800"; d="scan'208";a="234410421" 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 fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2020 01:49:42 -0700 IronPort-SDR: wDOMnPbL38QpfVW761B4fTSDqeTbq38apTuu00pu6sXD4WXm+KNvoQGigqoTDh8zFEMri6+R/9 /XCoIcjXCCkg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,362,1589266800"; d="scan'208";a="460782690" X-Received: from shwdesssddpdqi.ccr.corp.intel.com ([10.239.9.10]) by orsmga005.jf.intel.com with ESMTP; 17 Jul 2020 01:49:40 -0700 From: "Qi Zhang" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Qi Zhang Subject: [edk2-devel] [PATCH v4 1/6] SecurityPkg/TcgPpi: Add TcgPpi header file. Date: Fri, 17 Jul 2020 16:49:30 +0800 Message-Id: <20200717084935.11067-2-qi1.zhang@intel.com> In-Reply-To: <20200717084935.11067-1-qi1.zhang@intel.com> References: <20200717084935.11067-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: PwOUCPjUVOyO4NgLokcGy4d4x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1594979578; bh=XNyEg6yzxav5EMAjZIBqgVgy5un9GKiGFDV4KqM8uCs=; h=Cc:Date:From:Reply-To:Subject:To; b=px/0sMcKzDaaqg+ifrqVsbU36O5oITLXALednxI9ESq0im5Ozin894ViOo92aItBOMA bx0PcPgMu+w/H/ciA0NC0zC5sAi+dUuwSTlZvn9q3HIW5LELwJeEMIQomYXqF+z4STrbd ySbfjJwj6xREKB0bZFC6ArSIy0M+EUbNAmI= 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 Reviewed-by: Jian J Wang --- 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 (#62755): https://edk2.groups.io/g/devel/message/62755 Mute This Topic: https://groups.io/mt/75608831/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-