From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 4DFC081EA0 for ; Thu, 17 Nov 2016 04:26:51 -0800 (PST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP; 17 Nov 2016 04:26:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,653,1473145200"; d="scan'208";a="192515633" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by fmsmga004.fm.intel.com with ESMTP; 17 Nov 2016 04:26:56 -0800 Received: from fmsmsx118.amr.corp.intel.com (10.18.116.18) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 17 Nov 2016 04:26:55 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by fmsmsx118.amr.corp.intel.com (10.18.116.18) with Microsoft SMTP Server (TLS) id 14.3.248.2; Thu, 17 Nov 2016 04:26:55 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.239]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.96]) with mapi id 14.03.0248.002; Thu, 17 Nov 2016 20:26:52 +0800 From: "Yao, Jiewen" To: "Zeng, Star" , "edk2-devel@lists.01.org" CC: "Zhang, Chao B" Thread-Topic: [PATCH 1/2] SecurityPkg TPM2: Make IsHashAlgSupportedInHashAlgorithmMask external Thread-Index: AQHSQLUqJFUgpH2KlEKH6HFNKyK8jqDdGksQ Date: Thu, 17 Nov 2016 12:26:51 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C50386D6947@shsmsx102.ccr.corp.intel.com> References: <1479374969-63472-1-git-send-email-star.zeng@intel.com> <1479374969-63472-2-git-send-email-star.zeng@intel.com> In-Reply-To: <1479374969-63472-2-git-send-email-star.zeng@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 1/2] SecurityPkg TPM2: Make IsHashAlgSupportedInHashAlgorithmMask external X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2016 12:26:51 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: jiewen.yao@intel.com > -----Original Message----- > From: Zeng, Star > Sent: Thursday, November 17, 2016 5:29 PM > To: edk2-devel@lists.01.org > Cc: Zeng, Star ; Yao, Jiewen ; > Zhang, Chao B > Subject: [PATCH 1/2] SecurityPkg TPM2: Make > IsHashAlgSupportedInHashAlgorithmMask external >=20 > Current IsHashAlgSupportedInHashAlgorithmMask is only an internal > function, this patch makes it external for coming consumer. >=20 > Cc: Jiewen Yao > Cc: Chao Zhang > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Star Zeng > --- > SecurityPkg/Include/Library/Tpm2CommandLib.h | 16 > ++++++++++++++++ > SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c | 1 + > 2 files changed, 17 insertions(+) >=20 > diff --git a/SecurityPkg/Include/Library/Tpm2CommandLib.h > b/SecurityPkg/Include/Library/Tpm2CommandLib.h > index 9a1dd8d8aceb..85a4c65e0263 100644 > --- a/SecurityPkg/Include/Library/Tpm2CommandLib.h > +++ b/SecurityPkg/Include/Library/Tpm2CommandLib.h > @@ -1007,6 +1007,22 @@ GetHashSizeFromAlgo ( > ); >=20 > /** > + Return if hash alg is supported in HashAlgorithmMask. > + > + @param HashAlg Hash algorithm to be checked. > + @param HashAlgorithmMask Bitfield of allowed hash algorithms. > + > + @retval TRUE Hash algorithm is supported. > + @retval FALSE Hash algorithm is not supported. > +**/ > +BOOLEAN > +EFIAPI > +IsHashAlgSupportedInHashAlgorithmMask( > + IN TPMI_ALG_HASH HashAlg, > + IN UINT32 HashAlgorithmMask > + ); > + > +/** > Copy TPML_DIGEST_VALUES into a buffer >=20 > @param[in,out] Buffer Buffer to hold > TPML_DIGEST_VALUES. > diff --git a/SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c > b/SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c > index be95fd69b3dd..95d4f7c84ce9 100644 > --- a/SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c > +++ b/SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c > @@ -175,6 +175,7 @@ CopyAuthSessionResponse ( > @retval FALSE Hash algorithm is not supported. > **/ > BOOLEAN > +EFIAPI > IsHashAlgSupportedInHashAlgorithmMask( > IN TPMI_ALG_HASH HashAlg, > IN UINT32 HashAlgorithmMask > -- > 2.7.0.windows.1