From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web10.9594.1595380108917111614 for ; Tue, 21 Jul 2020 18:08:29 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=kcPpOZY8; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: jian.j.wang@intel.com) IronPort-SDR: CXICfei4U3+C8rnXmPazBA+P+6X8JltkrdCCUJPOqrM0yG6C5qZ5mBdo1s4cvP+muYmnFZ5z/G M0uLh6keKxiQ== X-IronPort-AV: E=McAfee;i="6000,8403,9689"; a="149419639" X-IronPort-AV: E=Sophos;i="5.75,381,1589266800"; d="scan'208";a="149419639" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2020 18:08:27 -0700 IronPort-SDR: OMbwa0KURonNr4l4vxJ3XMznBSQsv0fptqAr9tO32V5eSsn8hZ3ZOROaiffFGSRaIPhSjiHet6 eFXxqYz+y9eA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,381,1589266800"; d="scan'208";a="328059656" Received: from orsmsx109.amr.corp.intel.com ([10.22.240.7]) by orsmga007.jf.intel.com with ESMTP; 21 Jul 2020 18:08:26 -0700 Received: from orsmsx608.amr.corp.intel.com (10.22.229.21) by ORSMSX109.amr.corp.intel.com (10.22.240.7) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Jul 2020 18:08:26 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) by ORSMSX608.amr.corp.intel.com (10.22.229.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1713.5; Tue, 21 Jul 2020 18:08:26 -0700 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by orsmsx612.amr.corp.intel.com (10.22.229.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1713.5 via Frontend Transport; Tue, 21 Jul 2020 18:08:26 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.172) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Jul 2020 18:08:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W6Yd8zAQIFyZXWRuUQdMnzIEwiKfjtVyNlghg8j6waS1rYUyPGiDztkOr/oj4fMfnhN8HtRDGDzAadxZdUHD6yQSrut2buTXEHnfVCKuSUR1Dxo+f8syepMa3I5jE4/y4nxwHy99MLsqgAt9vaO2+nx0XZai0h4aMNdfpkRmSBmL/BrlvbldY6oErfrfR8lNVGTaUJe4p3YWTchovsdjtQAKnkt8pCzEAk2IuyLP+s2bvgClt3AoEIHkMCsRfDYaEo6BFf/S+JHTO1KNPA/qQi2n5rpN3DqmpTRI6CHP3iniwdU2ELvWE996XU0Wz3UDCBU7iylc08nstia8roe4WQ== 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=ZxDeo9w3IWgCRUusYv0ej6NRFuD5KMGPap69EGCFPsI=; b=a9jJu8EAs/e5P+jPAsZm1MN/w0Sn52rtjhXBswBCjjL9XhM6uf42b8QvqR8bBmSKGeNqPakstNsxM/ABNY0VTpnawPdTOPoxVA2/avivVj1Ol5fFOohX6YDs+kEZsIW3hAERFekcBdvXwcQvnuHc1AavViQcL0dUXz8AftzRqMZwrJxoghRmn2B7dmELgMVkgkO6LeXQQRixwXsjW1OC35d0cMvPBQ9/ouVw2MmvVe4OjF8Ai0iOzoRSYvlw0l1bARZgayhBlOfKfPm96ANw3NFeRfPFBsVlgVrIas6r+NrrGZV4T6dI5Qh0CK57VMJ6E4RrmUe1sXtZs+EZjk33xQ== 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=ZxDeo9w3IWgCRUusYv0ej6NRFuD5KMGPap69EGCFPsI=; b=kcPpOZY8TQ4NRg3ILtyRz08n+acsRfKLj0V8z1EnGaE6h2pG9JrDcbBKqeuEjKau9b7tjP8xfMfFSWpJqsB6Eeo26NLMwKdAioZfXKwb/MwzEIj8rSeTADouiyNNI+BCUXIQH+119ABV94oAgH/JqlMocSSSDDbmQCaYG3Ee11Q= Received: from BYAPR11MB3303.namprd11.prod.outlook.com (2603:10b6:a03:18::15) by BY5PR11MB3912.namprd11.prod.outlook.com (2603:10b6:a03:190::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.25; Wed, 22 Jul 2020 01:08:23 +0000 Received: from BYAPR11MB3303.namprd11.prod.outlook.com ([fe80::fc2a:d66e:8c79:6ecd]) by BYAPR11MB3303.namprd11.prod.outlook.com ([fe80::fc2a:d66e:8c79:6ecd%7]) with mapi id 15.20.3195.025; Wed, 22 Jul 2020 01:08:23 +0000 From: "Wang, Jian J" To: "Yao, Jiewen" , "devel@edk2.groups.io" , "Zhang, Qi1" Subject: Re: [edk2-devel] [PATCH v4 5/6] SecurityPkg/PeiTpmMeasurementLib: Add PEI instance. Thread-Topic: [edk2-devel] [PATCH v4 5/6] SecurityPkg/PeiTpmMeasurementLib: Add PEI instance. Thread-Index: AQHWXBdBcIc5dOrGwEy0t/J9jTF0yqkRwImAgAAGLUCAAGHAAIAAp8jg Date: Wed, 22 Jul 2020 01:08:23 +0000 Message-ID: References: <20200717084935.11067-1-qi1.zhang@intel.com> <20200717084935.11067-6-qi1.zhang@intel.com> <1623B8ED1BE72736.9882@groups.io> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiODkwYTNiM2ItYjgyMS00NWYzLWE1M2UtODJhMDljMDA0ZTVhIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiSm5yMlVxNit2N3hpMUZNMUJWXC9XNVZrR1ZjR3RcL1MwNlJlR1lcL1FET2xoQVg1ZEZwazhwNlJqMXpxU3RyNlkyNyJ9 dlp-reaction: no-action dlp-version: 11.2.0.6 dlp-product: dlpe-windows x-ctpclassification: CTP_NT 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.194] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: c3548c28-897a-4d6c-4111-08d82ddbbb4c x-ms-traffictypediagnostic: BY5PR11MB3912: 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: tPLAzJibS3X24jiRCU81LY1f+RoXH1auepaBmO7ZwBVjUupuIu3ikSFMV6GG6TDOuWxZ7bqphudO+dC9GX99UAKBIj4RDNu/e9+vifrTirJGfgBv2KlwJpQGmGG+qJeFTkb6SmsVNlWYDIRgXKB7x/WXtVckXx/VaueuSgzpxDaYAzmwaYyVigAFKpvkvPZIemhWMD98hDqXu9rlnKAd+1TuOJhwX2ETBuXzGDMMHk5c06DaOp2FfybFaqzoJ7nGOFHA2jDQs7c42A9l4+D/1YRX6+8d+DePF1C9t0UtGcLt1Uc0NLmmm60wrNMhBEohBeonb6k1j6Df1h4/2a4/GbpiYnTAk1TOnf3/q7SE8aw0cpHh57WW0ER4ONFWTZkfHPcKrSdlNBGybTmu55eHTQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB3303.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(396003)(366004)(136003)(39860400002)(346002)(376002)(7696005)(6636002)(2906002)(26005)(52536014)(5660300002)(33656002)(186003)(966005)(478600001)(110136005)(15650500001)(83380400001)(71200400001)(76116006)(6506007)(53546011)(8936002)(8676002)(9686003)(55016002)(30864003)(66476007)(66556008)(64756008)(66446008)(316002)(66946007)(86362001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: tWkfcokIJ+D1KV1n+X0vlatMoRdTsFSorCmpAiDelVgDNxSiXSnU/XNLUfuLW8tGub2qLp97Cn7GVns543pv9IsY/fXi39Rh534vsEm6M3bl2m6rBknk2a5120o3MUOPZsY0gEnqTNod23JJ+4kg4D8D2iaTvi/e/lYjAA8ljLbOFj1jsj/7KHk714jhMMb9kj6SRxFqRfGIHRNqk+iHrQ3FbUhXnc5bw/LhWfVMEYQ0NjIbbH4lHkawHOBJ9y4BurCCUybWkRySyfATwRKdQvaRzC/iClg63LB2qjFrEbPQnduWLCtwps8QuJcZWc3zu8XhvpbQkJr2BhkbVHY5tX/itHekEB0EYj8dLyXBJlW5aGlsotkdG9yf6gemuugTzU1Ij6Qmw0G7zuz6XVNhdLpznckfrQjHiGMPOLazeagGlNp6d8EUrEtIVqgrsRaA6S+5ah1g3fibuDI6EeZcoUlyq13E/fbBS6EzRu9aYZKdHEh86n8FMBKM6ONnMWwK MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3303.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3548c28-897a-4d6c-4111-08d82ddbbb4c X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jul 2020 01:08:23.4280 (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: UYjkBFHrdw82ybnoR7oYjyXK2S8SOd+n99Tl0CQkM00b3QkQHzj5FszTyyZiSnSuXQnphAytxeA7miy1GpA7/w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB3912 Return-Path: jian.j.wang@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable To avoid inconsistency, please add comments in the BZ or in commit message of this patch. With all comments addressed, Reviewed-by: Jian J Wang Regards, Jian > -----Original Message----- > From: Yao, Jiewen > Sent: Tuesday, July 21, 2020 11:05 PM > To: Wang, Jian J ; devel@edk2.groups.io; Zhang, Q= i1 > > Cc: Yao, Jiewen > Subject: RE: [edk2-devel] [PATCH v4 5/6] SecurityPkg/PeiTpmMeasurementLi= b: > Add PEI instance. >=20 > Right. That can be implemented as separated patch. >=20 > > -----Original Message----- > > From: Wang, Jian J > > Sent: Tuesday, July 21, 2020 5:16 PM > > To: devel@edk2.groups.io; Wang, Jian J ; Zhang,= Qi1 > > > > Cc: Yao, Jiewen > > Subject: RE: [edk2-devel] [PATCH v4 5/6] SecurityPkg/PeiTpmMeasurement= Lib: > > Add PEI instance. > > > > Sorry, missing word in previous email. It should be > > > > "following requirement is not embodied in" > > > > Regards, > > Jian > > > > > -----Original Message----- > > > From: devel@edk2.groups.io On Behalf Of Wang, > > Jian > > > J > > > Sent: Tuesday, July 21, 2020 5:00 PM > > > To: Zhang, Qi1 ; devel@edk2.groups.io > > > Cc: Yao, Jiewen > > > Subject: Re: [edk2-devel] [PATCH v4 5/6] > SecurityPkg/PeiTpmMeasurementLib: > > > Add PEI instance. > > > > > > Qi, > > > > > > Two format issues inlined below. > > > > > > In addition, according to bz2841, following requirement is embodied = in > > > this patch. Maybe there's discussion before deciding not to implemen= t > > > it. If so, please update bz2841 to state it explicitly. > > > > > > 3) Add more API in TpmMeasurementLib, such as MeasureFirmwareBlob, > > > MeasureHandoffTable for TPM PFP rev 105 support - add description fo= r > > > the FirmwareBlob and HandoffTable. > > > > > > Regards, > > > Jian > > > > > > > -----Original Message----- > > > > From: Zhang, Qi1 > > > > Sent: Friday, July 17, 2020 4:50 PM > > > > To: devel@edk2.groups.io > > > > Cc: Yao, Jiewen ; Wang, Jian J > > > ; > > > > Zhang, Qi1 > > > > Subject: [PATCH v4 5/6] SecurityPkg/PeiTpmMeasurementLib: Add PEI > > instance. > > > > > > > > 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 > > > > --- > > > > .../PeiTpmMeasurementLib.c | 74 ++++++++++++++= +++++ > > > > .../PeiTpmMeasurementLib.inf | 50 +++++++++++++ > > > > .../PeiTpmMeasurementLib.uni | 17 +++++ > > > > 3 files changed, 141 insertions(+) > > > > create mode 100644 > > > > SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.c > > > > create mode 100644 > > > > SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.inf > > > > create mode 100644 > > > > SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.uni > > > > > > > > diff --git > > > > a/SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.c > > > > b/SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.c > > > > new file mode 100644 > > > > index 0000000000..1a590e0c9e > > > > --- /dev/null > > > > +++ > > b/SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.c > > > > @@ -0,0 +1,74 @@ > > > > +/** @file > > > > > > > > + This library is used by other modules to measure data to TPM. > > > > > > > > + > > > > > > > > +Copyright (c) 2020, Intel Corporation. All rights reserved.
> > > > > > > > +SPDX-License-Identifier: BSD-2-Clause-Patent > > > > > > > > + > > > > > > > > +**/ > > > > > > > > + > > > > > > > > +#include > > > > > > > > + > > > > > > > > +#include > > > > > > > > +#include > > > > > > > > +#include > > > > > > > > +#include > > > > > > > > +#include > > > > > > > > +#include > > > > > > > > + > > > > > > > > +#include > > > > > > > > +#include > > > > > > > > + > > > > > > > > +/** > > > > > > > > + Tpm measure and log data, and extend the measurement result int= o a > > > specific > > > > PCR. > > > > > > > > + > > > > > > > > + @param[in] PcrIndex PCR Index. > > > > > > > > + @param[in] EventType Event type. > > > > > > > > + @param[in] EventLog Measurement event log. > > > > > > > > + @param[in] LogLen Event log length in bytes. > > > > > > > > + @param[in] HashData The start of the data buffer to be= hashed, > > > > extended. > > > > > > > > + @param[in] HashDataLen The length, in bytes, of the buffe= r > referenced > > > by > > > > HashData > > > > > > > > + > > > > > > > > + @retval EFI_SUCCESS Operation completed successfu= lly. > > > > > > The description of above retval is not aligned with below line. > > > > > > > > > > > + @retval EFI_UNSUPPORTED TPM device not available. > > > > > > > > + @retval EFI_OUT_OF_RESOURCES Out of memory. > > > > > > > > + @retval EFI_DEVICE_ERROR The operation was unsuccessful. > > > > > > > > +**/ > > > > > > > > +EFI_STATUS > > > > > > > > +EFIAPI > > > > > > > > +TpmMeasureAndLogData ( > > > > > > > > + IN UINT32 PcrIndex, > > > > > > > > + IN UINT32 EventType, > > > > > > > > + IN VOID *EventLog, > > > > > > > > + IN UINT32 LogLen, > > > > > > > > + IN VOID *HashData, > > > > > > > > + IN UINT64 HashDataLen > > > > > > > > + ) > > > > > > > > +{ > > > > > > > > + EFI_STATUS Status; > > > > > > > > + EDKII_TCG_PPI *TcgPpi; > > > > > > > > + TCG_PCR_EVENT_HDR TcgEventHdr; > > > > > > > > + > > > > > > > > + Status =3D PeiServicesLocatePpi( > > > > > > Missing a space before '(' > > > > > > > > > > > + &gEdkiiTcgPpiGuid, > > > > > > > > + 0, > > > > > > > > + NULL, > > > > > > > > + (VOID**)&TcgPpi > > > > > > > > + ); > > > > > > > > + if (EFI_ERROR(Status)) { > > > > > > > > + return Status; > > > > > > > > + } > > > > > > > > + > > > > > > > > + TcgEventHdr.PCRIndex =3D PcrIndex; > > > > > > > > + TcgEventHdr.EventType =3D EventType; > > > > > > > > + TcgEventHdr.EventSize =3D LogLen; > > > > > > > > + > > > > > > > > + Status =3D TcgPpi->HashLogExtendEvent ( > > > > > > > > + TcgPpi, > > > > > > > > + 0, > > > > > > > > + HashData, > > > > > > > > + (UINTN)HashDataLen, > > > > > > > > + &TcgEventHdr, > > > > > > > > + EventLog > > > > > > > > + ); > > > > > > > > + return Status; > > > > > > > > +} > > > > > > > > diff --git > > > > a/SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.in= f > > > > b/SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.in= f > > > > new file mode 100644 > > > > index 0000000000..6625d0fd01 > > > > --- /dev/null > > > > +++ > > > b/SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.inf > > > > @@ -0,0 +1,50 @@ > > > > +## @file > > > > > > > > +# Provides TPM measurement functions for TPM1.2 and TPM 2.0 > > > > > > > > +# > > > > > > > > +# This library provides TpmMeasureAndLogData() to measure and lo= g > data, > > > > and > > > > > > > > +# extend the measurement result into a specific PCR. > > > > > > > > +# > > > > > > > > +# Copyright (c) 2020, Intel Corporation. All rights reserved.
> > > > > > > > +# SPDX-License-Identifier: BSD-2-Clause-Patent > > > > > > > > +# > > > > > > > > +## > > > > > > > > + > > > > > > > > +[Defines] > > > > > > > > + INF_VERSION =3D 0x00010005 > > > > > > > > + BASE_NAME =3D PeiTpmMeasurementLib > > > > > > > > + FILE_GUID =3D 9A62C49D-C45A-4322-9F3C-4595= 8DF0056B > > > > > > > > + MODULE_TYPE =3D PEIM > > > > > > > > + VERSION_STRING =3D 1.0 > > > > > > > > + LIBRARY_CLASS =3D TpmMeasurementLib|PEIM > > > > > > > > + MODULE_UNI_FILE =3D PeiTpmMeasurementLib.uni > > > > > > > > + > > > > > > > > +# > > > > > > > > +# The following information is for reference only and not require= d by the > > > build > > > > tools. > > > > > > > > +# > > > > > > > > +# VALID_ARCHITECTURES =3D IA32 X64 > > > > > > > > +# > > > > > > > > + > > > > > > > > +[Sources] > > > > > > > > + PeiTpmMeasurementLib.c > > > > > > > > + > > > > > > > > +[Packages] > > > > > > > > + MdePkg/MdePkg.dec > > > > > > > > + MdeModulePkg/MdeModulePkg.dec > > > > > > > > + SecurityPkg/SecurityPkg.dec > > > > > > > > + > > > > > > > > +[LibraryClasses] > > > > > > > > + BaseLib > > > > > > > > + BaseMemoryLib > > > > > > > > + HobLib > > > > > > > > + DebugLib > > > > > > > > + PcdLib > > > > > > > > + PrintLib > > > > > > > > + PeiServicesLib > > > > > > > > + PeiServicesTablePointerLib > > > > > > > > + > > > > > > > > +[Ppis] > > > > > > > > + gEdkiiTcgPpiGuid = ## CONSUMES > > > > > > > > + > > > > > > > > +[Depex] > > > > > > > > + gEfiPeiMasterBootModePpiGuid AND > > > > > > > > + gEfiTpmDeviceSelectedGuid > > > > > > > > diff --git > > > > > a/SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.uni > > > > > b/SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.uni > > > > new file mode 100644 > > > > index 0000000000..7b4341b449 > > > > --- /dev/null > > > > +++ > > > b/SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.uni > > > > @@ -0,0 +1,17 @@ > > > > +// /** @file > > > > > > > > +// Provides TPM measurement functions for TPM1.2 and TPM 2.0 > > > > > > > > +// > > > > > > > > +// This library provides TpmMeasureAndLogData() to to measure and= log > > data, > > > > and > > > > > > > > +// extend the measurement result into a specific PCR. > > > > > > > > +// > > > > > > > > +// Copyright (c) 2020, Intel Corporation. All rights reserved. > > > > > > > > +// > > > > > > > > +// SPDX-License-Identifier: BSD-2-Clause-Patent > > > > > > > > +// > > > > > > > > +// **/ > > > > > > > > + > > > > > > > > + > > > > > > > > +#string STR_MODULE_ABSTRACT #language en-US "Provides= TPM > > > > measurement functions for TPM1.2 and TPM 2.0" > > > > > > > > + > > > > > > > > +#string STR_MODULE_DESCRIPTION #language en-US "This lib= rary > > > > provides TpmMeasureAndLogData() to to measure and log data, and > extend > > > the > > > > measurement result into a specific PCR." > > > > > > > > + > > > > > > > > -- > > > > 2.26.2.windows.1 > > > > > > > > >=20