From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web12.10989.1594887228039329871 for ; Thu, 16 Jul 2020 01:13:48 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=YQt4wa7o; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: jiewen.yao@intel.com) IronPort-SDR: 9zvJ9jY19kWgouznTe0v+XCGW9vAkbZW/bDrqCuzDbnCoo1v+voDD8c5Fltv4f7JjjmD1RkYuv FG57fBQfLsqg== X-IronPort-AV: E=McAfee;i="6000,8403,9683"; a="129410774" X-IronPort-AV: E=Sophos;i="5.75,358,1589266800"; d="scan'208";a="129410774" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2020 01:13:47 -0700 IronPort-SDR: 3qxThQsaaM9twEoFnt1hFh1pSNwy7wG9aGJI3vDlL60J6v07ZmNbnJt94tRQu5ikebdRiF7ixh JC24r3TgQPUQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,358,1589266800"; d="scan'208";a="360969255" Received: from orsmsx108.amr.corp.intel.com ([10.22.240.6]) by orsmga001.jf.intel.com with ESMTP; 16 Jul 2020 01:13:47 -0700 Received: from ORSEDG002.ED.cps.intel.com (10.7.248.5) by ORSMSX108.amr.corp.intel.com (10.22.240.6) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 16 Jul 2020 01:13:46 -0700 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.36.54) by edgegateway.intel.com (134.134.137.101) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 16 Jul 2020 01:13:46 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M7bY14WvxlNBf7Axv9jnJRwA4HHLPnmbSBK32loWLm311tH7n826G6tIuhcyvgnN9KU26TyufRS1533gstZwZN/AxwmhiA9Ot9mpvM/20R6Ev/7bXkEPxCeFA5OVIyvvxvExwCltXLrgjaD9IpvmOF+ovxP2ukJEppYbRAQ8WGiK9PS7HLKU6a+WpImTNKjBAi4a/iCI/GVADPhx0oMmdOPnLyQhfQYVKRFGmTGzeiKEvQXPgzPlNFiiCoNRBwLSzw6nFkqN6D7r9+wJt+9kzHoQjo6vZPx6LL0Jdv2VXdQgq1uEqo3U5bf9I9jK8JKU9wO6SpdCvqsznutJGws3WA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J2gTbQYysxQDlpEBnXhV+G1cJHW8ap1YRN2tMsPIbiY=; b=eBm+3MHxxR8hqbNnqzao3qPUhn//rmoD/3jFvmscgX+SE22mUjFDuQNZFRcarER8wIXmasxekh536qTNKzoqPcqosFKBtRC6n6XgRwsB7J92k6QBzDNJaLPdabcTh4DSh5PT541BiaHp28l7qlWvSk9kfUIh6UcUzJnD1tMewRmWVvEq9PoELgyjWo1l9C1JwqozSMG8UWqhG/Ocr69LR6aM368rZoFtrC8sgpn+he95LJ4AmfyF6TVMpiG3Idx2dA6Lgy99id383zmRmpPi1sM/8RjuhCw2cOhCPT8ARyrO0W1C2RxPC1MbkajBZOQHvCqwtb5GOc8qTVP2GQZgyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J2gTbQYysxQDlpEBnXhV+G1cJHW8ap1YRN2tMsPIbiY=; b=YQt4wa7o730TnibyBB0oOXJylGUCO8uNGia5QtsjelgAjUvHCISCkt59zjurdM2nnw0izSV9vfzeKn9Roh9uYp1vcP685Kr4tgtgpubqiC2NobT0QcJ2Z3+hj1w69XqZzMd+ay0pqiratupW+29v3456aFIj8LuCLcmp+cAFeAs= Received: from DM5PR11MB2026.namprd11.prod.outlook.com (2603:10b6:3:10::17) by DM5PR11MB1644.namprd11.prod.outlook.com (2603:10b6:4:c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22; Thu, 16 Jul 2020 08:13:45 +0000 Received: from DM5PR11MB2026.namprd11.prod.outlook.com ([fe80::e19d:1de4:c479:da4]) by DM5PR11MB2026.namprd11.prod.outlook.com ([fe80::e19d:1de4:c479:da4%4]) with mapi id 15.20.3174.026; Thu, 16 Jul 2020 08:13:45 +0000 From: "Yao, Jiewen" To: "Zhang, Qi1" , "devel@edk2.groups.io" CC: "Wang, Jian J" , Chao Zhang Subject: Re: [PATCH v2 1/7] SecurityPkg/TcgPpi: Add TcgPpi header file. Thread-Topic: [PATCH v2 1/7] SecurityPkg/TcgPpi: Add TcgPpi header file. Thread-Index: AQHWW0T6//5xVrs7n0aQfjKQtboUkKkJ2zaQ Date: Thu, 16 Jul 2020 08:13:44 +0000 Message-ID: References: <20200716074430.9675-1-qi1.zhang@intel.com> <20200716074430.9675-2-qi1.zhang@intel.com> In-Reply-To: <20200716074430.9675-2-qi1.zhang@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZjk4N2ZhOTgtOGI4MS00OGNkLWE1NGEtNzRlOWZlNzcyZTNlIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiN0dcL1A3NDl5dFU5aENxZ1wvaGpnbmdnUTJFKzhjWHdjT2t3U3BOdFBpdVd2ZjZRbU9pbE1BWkZmWmY1Rk5wMXltIn0= x-ctpclassification: CTP_NT dlp-version: 11.2.0.6 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.147.216] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c97c5d65-6ee4-4f74-2fc2-08d8296028c5 x-ms-traffictypediagnostic: DM5PR11MB1644: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: u54NTYmEKKwZF3CHOo81E4Nsvtx2TMPoiXD5wD9ay56WKVWQlGKUGmaRKAmwF0S7OoMu2KxVgtafV2gKZQEFdu/hyqE0k+XaLdbcJa2zxVewZUNN9eAFqHHX+vFNIn4PHPZ/guwylEkGX2XU5KJVFMYvamcxY4ZnAIhPCIPJk6JMODxucYfJiUMivOE8/boUFB/W+vA8D6KHSqgoAMA/rtVtkWAtuvmXex0jVpNQ6PmW7Y6YQR0YJds8W624poYSTwS30hhMIAbW2/ZOIO3wuA3bx0WVYp0s1ksUSOh2nbkOUU7egqsmahfHorHVDou7F+vrXRLgjEK2aJw4r0qHaxL/dyAS7DQMRnSRArW8R6tqUgKoefnJ+iVxVSFvriW6UJLaJtoKXJK0rc+GVMxnoA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR11MB2026.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(39860400002)(136003)(376002)(396003)(366004)(346002)(8676002)(2906002)(9686003)(110136005)(5660300002)(64756008)(33656002)(26005)(66556008)(53546011)(316002)(186003)(83380400001)(52536014)(6506007)(55016002)(54906003)(66446008)(15650500001)(71200400001)(86362001)(66476007)(8936002)(107886003)(966005)(478600001)(76116006)(66946007)(7696005)(4326008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: 9DxYgOASdsp3Xdr5qmJNVmI+eFkuUKGig47kGKQ+sOXTsZdANOhb2qMfUDQf+8zFhZ5CQsqBmvWtlYjVBdPhdgW4RQ6h+7EUDNTJ25FcjCD18rYr72FLiOf15/EX+38c5K75Cf2yU49Bsv2KG89tYCkuB+uThpxebnFgMgT1xA4FRHVApiGslte5HPl+nayNBVzP93QaNUeCjFcFAQBQgxZ3/1ChWe5neFTLtEGbUiJTIj82c/0dFz8fbRB9hphixTY4E8DrIP1rjVGDSKOsEQ9WzRQQuhP/xQ3dLmwv8Mlpte4S1T+y5a43ct2lMPE7yy2obcEtWmjbC3HW8YsaDFVon1w7Mix81yGzL5kDClYQxIW01cnhlOAh1c6yONCF0aCx5PKORDmWTyhC/fK23ILzQliDN72mmVfqLNW9++uHW/ms7ruUHp+nbo43LxjT2m7mhedKiasndKH8X9+Zk66wU6CySZQ+KfXaLpusPdXzir8uMPsLufKgCVmSe7RD MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM5PR11MB2026.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c97c5d65-6ee4-4f74-2fc2-08d8296028c5 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jul 2020 08:13:45.0226 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: hGXhLirmDD2P5+C3gPoYhsM6kQH9qSi6TAH10hGuGm7feZnIsv1ZVD4qQf3Gmf0VowL9pVR47yY7y8U4cKX7qg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1644 Return-Path: jiewen.yao@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Qi Please move the PRE_HASH flag here, and add description on PreHashData form= at. Thank you Yao Jiewen > -----Original Message----- > From: Zhang, Qi1 > Sent: Thursday, July 16, 2020 3:44 PM > To: devel@edk2.groups.io > Cc: Yao, Jiewen ; Wang, Jian J ; > Chao Zhang ; Zhang, Qi1 > Subject: [PATCH v2 1/7] SecurityPkg/TcgPpi: Add TcgPpi header file. >=20 > From: Jiewen Yao >=20 > REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3D2841 >=20 > Cc: Jiewen Yao > Cc: Jian J Wang > Cc: Chao Zhang > Cc: Qi Zhang > Signed-off-by: Jiewen Yao > --- > SecurityPkg/Include/Ppi/Tcg.h | 52 +++++++++++++++++++++++++++++++++++ > 1 file changed, 52 insertions(+) > create mode 100644 SecurityPkg/Include/Ppi/Tcg.h >=20 > diff --git a/SecurityPkg/Include/Ppi/Tcg.h b/SecurityPkg/Include/Ppi/Tcg.= h > new file mode 100644 > index 0000000000..2725a4ca71 > --- /dev/null > +++ b/SecurityPkg/Include/Ppi/Tcg.h > @@ -0,0 +1,52 @@ > +/** @file >=20 > + TCG PPI services. >=20 > + >=20 > +Copyright (c) 2020, Intel Corporation. All rights reserved.
>=20 > +SPDX-License-Identifier: BSD-2-Clause-Patent >=20 > + >=20 > +**/ >=20 > + >=20 > +#ifndef _TCG_PPI_H_ >=20 > +#define _TCG_PPI_H_ >=20 > + >=20 > +#include >=20 > + >=20 > +typedef struct _EDKII_TCG_PPI EDKII_TCG_PPI; >=20 > + >=20 > +/** >=20 > + Tpm measure and log data, and extend the measurement result into a spe= cific > PCR. >=20 > + >=20 > + @param[in] This Indicates the calling context >=20 > + @param[in] Flags Bitmap providing additional information >=20 > + @param[in] HashData Physical address of the start of the dat= a buffer >=20 > + to be hashed, extended, and logged. >=20 > + @param[in] HashDataLen The length, in bytes, of the buffer refe= renced by > HashData. >=20 > + @param[in] NewEventHdr Pointer to a TCG_PCR_EVENT_HDR data > structure. >=20 > + @param[in] NewEventData Pointer to the new event data. >=20 > + >=20 > + @retval EFI_SUCCESS Operation completed successfully. >=20 > + @retval EFI_UNSUPPORTED TPM device not available. >=20 > + @retval EFI_OUT_OF_RESOURCES Out of memory. >=20 > + @retval EFI_DEVICE_ERROR The operation was unsuccessful. >=20 > +**/ >=20 > +typedef >=20 > +EFI_STATUS >=20 > +(EFIAPI *EDKII_TCG_HASH_LOG_EXTEND_EVENT)( >=20 > + IN EDKII_TCG_PPI *This, >=20 > + IN UINT64 Flags, >=20 > + IN UINT8 *HashData, >=20 > + IN UINTN HashDataLen, >=20 > + IN TCG_PCR_EVENT_HDR *NewEventHdr, >=20 > + IN UINT8 *NewEventData >=20 > + ); >=20 > + >=20 > +/// >=20 > +/// The EFI_TCG Protocol abstracts TCG activity. >=20 > +/// >=20 > +struct _EDKII_TCG_PPI { >=20 > + EDKII_TCG_HASH_LOG_EXTEND_EVENT HashLogExtendEvent; >=20 > +}; >=20 > + >=20 > +extern EFI_GUID gEdkiiTcgPpiGuid; >=20 > + >=20 > +#endif >=20 > -- > 2.26.2.windows.1