From nobody Mon Feb 9 09:22:26 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+62749+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+62749+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1594979575; cv=none; d=zohomail.com; s=zohoarc; b=CapQdY4uUjInvpfM3O+T/DkTuMx9U+rzCi8yJGI7YbSHQx0TZLC2/HJ2L+VKtDFob5+ZPhtFyoXEXfudamfDDkcpj2EounMTik1sA+m0SUnGDWqZG66Adn3UBRYVUJc9rWlVCEmV74CL0oFrV5dlgFZiWxwi6P2WcNpVKYQg+y8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594979575; 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=CGnWjSYf/RiZWeXsfwCeOBkPj5L8uW0lGyWVxZPGfmM=; b=Fs/EW0rhk8UC90Qs9aP3GDBbYztzmRxBgC6aDFBnU44rjzvvLD4hcR5V6LQR5o4kU8GXooucWnAJ/BnAXzj7L2w4DBfjmP4TfN2bk9KL4yyyEuqIOzKh05mTc/roWwE+ZibBtA4t+x/JqVnnBBXPkzHSFCSgEVESedGhBCVCynk= 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+62749+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 1594979575883123.31176052424166; Fri, 17 Jul 2020 02:52:55 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id RyGrYY1788612xV2vGZ35FKF; Fri, 17 Jul 2020 02:52:55 -0700 X-Received: from mga12.intel.com (mga12.intel.com []) by mx.groups.io with SMTP id smtpd.web10.6793.1594971201528724190 for ; Fri, 17 Jul 2020 00:33:22 -0700 IronPort-SDR: QH4578YSqTyYynJC0fB5qYV9VnteohyXjM9H1Lt+VkIwO5KCYANlCOsQOFPspMvyGBRPbegeS6 8lZI/jQ+1kuQ== X-IronPort-AV: E=McAfee;i="6000,8403,9684"; a="129113484" X-IronPort-AV: E=Sophos;i="5.75,362,1589266800"; d="scan'208";a="129113484" 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 fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2020 00:33:22 -0700 IronPort-SDR: ysG+sRu+sOLqkwcIS/7Eu1+Fi15tYvT+D7XmvXtLK2FBrVoFiEsmO9lHTJt7StWRabjLMMb8t2 GC2An3kRS2kw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,362,1589266800"; d="scan'208";a="361273517" X-Received: from shwdesssddpdqi.ccr.corp.intel.com ([10.239.9.10]) by orsmga001.jf.intel.com with ESMTP; 17 Jul 2020 00:33:19 -0700 From: "Qi Zhang" To: devel@edk2.groups.io Cc: Jiewen Yao , Jian J Wang , Chao Zhang , Qi Zhang Subject: [edk2-devel] [PATCH v3 1/6] SecurityPkg/TcgPpi: Add TcgPpi header file. Date: Fri, 17 Jul 2020 15:33:07 +0800 Message-Id: <20200717073312.10594-2-qi1.zhang@intel.com> In-Reply-To: <20200717073312.10594-1-qi1.zhang@intel.com> References: <20200717073312.10594-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: 9tGGSC2TQX4FPhCZW8d40z9ox1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1594979575; bh=Zk6jbNVk85T//+nb/rgZZ8yGVwYdnvFqpXZ71vpYcyQ=; h=Cc:Date:From:Reply-To:Subject:To; b=S63y/nYKU8NJokMdBUm8VGRREO3kjqFD7TVhXDRcHdpGjV29GlaxniCwMPlL6SC5wiz WmOo21olros6QKlDyoOPRRzrurCPbXaSgpd6DlBwtOYpZEyG0yrdOqgO36foZG0xsRuG0 X9tkQQbE8gJXAyzi1UWWTf5jzrB0cct8LO4= 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 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..d86ff5961d --- /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 EFI_TCG2_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 (#62749): https://edk2.groups.io/g/devel/message/62749 Mute This Topic: https://groups.io/mt/75608824/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-