From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web11.10362.1595383723661239258 for ; Tue, 21 Jul 2020 19:08:43 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=KHgxftc6; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: qi1.zhang@intel.com) IronPort-SDR: uw/t64hMdmooDNJktHEjL/5i11TunyHiFRWo4v0NmEY5h32EyIwH3ezl+sdDpc6Ty+hodrSsNO De4LBdU50Tqw== X-IronPort-AV: E=McAfee;i="6000,8403,9689"; a="129827149" X-IronPort-AV: E=Sophos;i="5.75,381,1589266800"; d="scan'208";a="129827149" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jul 2020 19:08:40 -0700 IronPort-SDR: lknKAJiZ9TpoZol4PyobnwJB9wtMqVOk0+WVA4UpVNSiGgIKokZnqIK+n1tA66zDihL/t0llyo Aw2mgFdvtAOg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,381,1589266800"; d="scan'208";a="362569814" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga001.jf.intel.com with ESMTP; 21 Jul 2020 19:08:40 -0700 Received: from fmsmsx126.amr.corp.intel.com (10.18.125.43) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Jul 2020 19:08:40 -0700 Received: from FMSEDG001.ED.cps.intel.com (10.1.192.133) by FMSMSX126.amr.corp.intel.com (10.18.125.43) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Jul 2020 19:08:39 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.45) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (TLS) id 14.3.439.0; Tue, 21 Jul 2020 19:08:39 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KqqCzNTTUgMGTMAUp1DxxPpBgmFhcZOYNfd4BmgKIqk3IcUkkSVLdOiZ7xtxc5kNZS5eis+Mg8/UuF2udaMdiq0+BHOKPznLwL8aLIB8bMpEuIy+tv6bN1qNniv6FhpUj75oTZX8KWEHaF9+olahs+mbFTBYQv3VRvXPLtHvd6Heo1aUzYUZU3z5OzVJShSSE/F7uzfRQL2wsjBnyxGBFoalbW2/HhI2SKNkbNvl+FXatZ0aUb09VeMY9zcHz1Yy6b/CGP2w742M8q2mkLH84OVlmRZm/0CNmX6QAOV+msAnIs/W1EY1G9E9aa+LObuHxGTHkLWY661MePRYaS5VAw== 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=XLTD8v5ZlUNS4qmzsI9FECHvitpPEs4sDHx7VvZaU9g=; b=T8TOxcC8Wh0xrzHNqR84OlnG/mBFyW5+uFPbkgEbVCnqJ5XX50HNcPhmkMOkPjQXfbhXVrEzMzsZ9DroeZdKryKcJzcME+qyBpzJGyzoOAaDD0qq6dS5DHYEqjai2DRekR8Mjnb/4WDMzU1HLK3ZiVMI26CsJk8mAmXCMrQQvE00umRhCGP8coJc3sHcwcvNcVnkeSE2wSwInbImOEim6gJriVmbMSuIopt9NtPboLruIQs1gSBI1YjEKkksL8/964XwXM2zlw1ufwb+XCbAJ+B9/Q+91i/4oRwouo+uBVlckpxufzYEk5G4sPrbsrMzbjL2K86E/iL+mhDp9XxtZQ== 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=XLTD8v5ZlUNS4qmzsI9FECHvitpPEs4sDHx7VvZaU9g=; b=KHgxftc6vT3Z90js98+aN5BHubV/atOLvOfbd7JEInhWxTrPEfC8Sw3eM3aIxKrFNwJoyOsJpheSdUMgLmuiO89qWMgag5GhJ73Vrz9aCMA8zYVRaHevg5IEPWc5ESU0Mf7uoWyCdOf2+pOOc9YPC1FQF9MIPRCURNrB82McLZk= Received: from SN6PR11MB2797.namprd11.prod.outlook.com (2603:10b6:805:5a::32) by SN6PR11MB2973.namprd11.prod.outlook.com (2603:10b6:805:ce::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3195.23; Wed, 22 Jul 2020 02:08:38 +0000 Received: from SN6PR11MB2797.namprd11.prod.outlook.com ([fe80::299e:89:dbe4:7e79]) by SN6PR11MB2797.namprd11.prod.outlook.com ([fe80::299e:89:dbe4:7e79%7]) with mapi id 15.20.3216.021; Wed, 22 Jul 2020 02:08:38 +0000 From: "Qi Zhang" To: "Wang, Jian J" , "Yao, Jiewen" , "devel@edk2.groups.io" 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: AQHWXBdBkM7iE2BOvEKYCfGYARq58KkRwImAgAAGLUCAAGHAAIAAqIyAgAAP3iA= Date: Wed, 22 Jul 2020 02:08:38 +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: dlp-version: 11.5.1.3 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.221] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6033b18d-96b0-40f8-5784-08d82de425f6 x-ms-traffictypediagnostic: SN6PR11MB2973: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4125; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: WZMJbXTDrfwIkYr2QKZT32vdNXMZhG7M9YKDJ6q28ohQ806Sb2d7PPvO8Lfc1gramgH+KwD7T0/MHa57zIDLpScIz2B5uJWELg3PXrha/jrtRwS+hCDXBmCWgnTetfr63Vv9np8AVKt/Ibnlm/hFioPm66LwmdFbLeiihrhFRhO5XhP6/5YkYpjiV0pG4JnUGY3bJUeIHHLKbwqIz32iUsYQs9WjrgSj1Me+rBHmBb70R5852XSKDeNwfjanmzSIHYTBCoP0MdrjUvuEVewNWPAzoUt0rmE5GoWI972oiLr5Pxy/zSDKAvHOU4EDc0fc6hr0a7RFnUBj7BU1h+D1L8tmYcQnHmG7kNJXF99zi/VfQ7D+Lwt4w09yx/n5rcjISj3uzxbgGZECf/a4FJIDSg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR11MB2797.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(39860400002)(136003)(396003)(346002)(376002)(366004)(2906002)(8936002)(8676002)(76116006)(66946007)(64756008)(66556008)(66476007)(6506007)(53546011)(66446008)(7696005)(33656002)(30864003)(110136005)(478600001)(966005)(316002)(86362001)(71200400001)(186003)(26005)(55016002)(9686003)(52536014)(83380400001)(15650500001)(5660300002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: b0oo4MveQPsh0m1azWUjOihD7901jWT1WegKMYA54hqCrEq9Q9RrzrNlMRG8Xy06TojOp6PliC4c5/bhyQ6TcSOo5je9fpI3uB8LDDabaQdoSLCs2fiobSrUlChj9PbNlDWn07QV904jMCOhqN9/GXzbyM+TixC/UCYwk+CLp0jcHx8DJj82R2Gjy97eRcvxth34GPrWE0UE+N9MdhaknEvtgp+byuz1K1Xn4zrHFQo2QULimm63jjUZxbME7XDA9/R36m5ji1lD2HZHScZbx9HMb2Do8G6oUK/dwpoReUPEpqkv+qC2wOUfHDQpj234iKNpP2bXGG2B9xjw+7vk0fFkX9Nlk0AyyLhRZ16q42WwHseWREvWhs7FZVDHqR1F8hBgmdcJ5CJFmjUnv7MpWNW1rUwL6ZC6brQwIsw9yrgqpwNuxMLaxbzrIhmbpqpg6eiympFVTf0hJaVYAifDoTB2wqYvqBlmMfiuj/zWSsE1Naa1AgyusyuA+ThVJ5A4 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SN6PR11MB2797.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6033b18d-96b0-40f8-5784-08d82de425f6 X-MS-Exchange-CrossTenant-originalarrivaltime: 22 Jul 2020 02:08:38.4710 (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: Q7c6EeeoCtjIq50kgUI95qlZCCtHnmn2Gmovja1svT1pnJZ1fuviNu+MJbIMg9e+/EoahFxQQrDEIXW3tq3qLw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB2973 Return-Path: qi1.zhang@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Can we move this requirement implementation to https://bugzilla.tianocore.o= rg/show_bug.cgi?id=3D2376: Need add a FSP binary measurement. 3) Add more API in TpmMeasurementLib, such as MeasureFirmwareBlob, Measure= HandoffTable for TPM PFP rev 105 support - add description for the Firmware= Blob and HandoffTable. > -----Original Message----- > From: Wang, Jian J > Sent: Wednesday, July 22, 2020 9:08 AM > To: Yao, Jiewen ; devel@edk2.groups.io; Zhang, Qi1 > > Subject: RE: [edk2-devel] [PATCH v4 5/6] SecurityPkg/PeiTpmMeasurementLi= b: > Add PEI instance. >=20 > To avoid inconsistency, please add comments in the BZ or in commit messa= ge > of this patch. >=20 > With all comments addressed, > Reviewed-by: Jian J Wang >=20 > Regards, > Jian >=20 > > -----Original Message----- > > From: Yao, Jiewen > > Sent: Tuesday, July 21, 2020 11:05 PM > > To: Wang, Jian J ; devel@edk2.groups.io; Zhang, > > Qi1 > > Cc: Yao, Jiewen > > Subject: RE: [edk2-devel] [PATCH v4 5/6] > SecurityPkg/PeiTpmMeasurementLib: > > Add PEI instance. > > > > Right. That can be implemented as separated patch. > > > > > -----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/PeiTpmMeasurementLib: > > > 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 implement it. If so, please update bz2841 to state it expli= citly. > > > > > > > > 3) Add more API in TpmMeasurementLib, such as MeasureFirmwareBlob, > > > > MeasureHandoffTable for TPM PFP rev 105 support - add description > > > > for 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.in > > > > > f > > > > > create mode 100644 > > > > > > SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.un > > > > > i > > > > > > > > > > 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 > > > > > + into 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 buf= fer > > referenced > > > > by > > > > > HashData > > > > > > > > > > + > > > > > > > > > > + @retval EFI_SUCCESS Operation completed success= fully. > > > > > > > > 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. > > > > > inf > > > > > b/SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib. > > > > > inf > > > > > new file mode 100644 > > > > > index 0000000000..6625d0fd01 > > > > > --- /dev/null > > > > > +++ > > > > > b/SecurityPkg/Library/PeiTpmMeasurementLib/PeiTpmMeasurementLib.in > > > > f > > > > > @@ -0,0 +1,50 @@ > > > > > +## @file > > > > > > > > > > +# Provides TPM measurement functions for TPM1.2 and TPM 2.0 > > > > > > > > > > +# > > > > > > > > > > +# This library provides TpmMeasureAndLogData() 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 > > > > > > > > > > +# > > > > > > > > > > +## > > > > > > > > > > + > > > > > > > > > > +[Defines] > > > > > > > > > > + INF_VERSION =3D 0x00010005 > > > > > > > > > > + BASE_NAME =3D PeiTpmMeasurementLib > > > > > > > > > > + FILE_GUID =3D 9A62C49D-C45A-4322-9F3C-45= 958DF0056B > > > > > > > > > > + 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 > > > > > +required 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.un > > > > i > > > > > @@ -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 "Provid= es > TPM > > > > > measurement functions for TPM1.2 and TPM 2.0" > > > > > > > > > > + > > > > > > > > > > +#string STR_MODULE_DESCRIPTION #language en-US "This l= ibrary > > > > > provides TpmMeasureAndLogData() to to measure and log data, and > > extend > > > > the > > > > > measurement result into a specific PCR." > > > > > > > > > > + > > > > > > > > > > -- > > > > > 2.26.2.windows.1 > > > > > > > > > > > >=20