public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Yao, Jiewen" <jiewen.yao@intel.com>
To: "Zeng, Star" <star.zeng@intel.com>,
	"edk2-devel@lists.01.org" <edk2-devel@lists.01.org>
Cc: "Zhang, Chao B" <chao.b.zhang@intel.com>
Subject: Re: [PATCH 1/2] SecurityPkg TPM2: Make IsHashAlgSupportedInHashAlgorithmMask external
Date: Thu, 17 Nov 2016 12:26:51 +0000	[thread overview]
Message-ID: <74D8A39837DF1E4DA445A8C0B3885C50386D6947@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <1479374969-63472-2-git-send-email-star.zeng@intel.com>

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 <star.zeng@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>;
> Zhang, Chao B <chao.b.zhang@intel.com>
> Subject: [PATCH 1/2] SecurityPkg TPM2: Make
> IsHashAlgSupportedInHashAlgorithmMask external
> 
> Current IsHashAlgSupportedInHashAlgorithmMask is only an internal
> function, this patch makes it external for coming consumer.
> 
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Chao Zhang <chao.b.zhang@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Star Zeng <star.zeng@intel.com>
> ---
>  SecurityPkg/Include/Library/Tpm2CommandLib.h  | 16
> ++++++++++++++++
>  SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c |  1 +
>  2 files changed, 17 insertions(+)
> 
> 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 (
>    );
> 
>  /**
> +  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
> 
>    @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



  reply	other threads:[~2016-11-17 12:26 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-17  9:29 [PATCH 0/2] Tcg2Dxe: Filter inactive digest in event2 log from PEI HOB Star Zeng
2016-11-17  9:29 ` [PATCH 1/2] SecurityPkg TPM2: Make IsHashAlgSupportedInHashAlgorithmMask external Star Zeng
2016-11-17 12:26   ` Yao, Jiewen [this message]
2016-11-17  9:29 ` [PATCH 2/2] SecurityPkg Tcg2Dxe: Filter inactive digest in event2 log from PEI HOB Star Zeng
2016-11-17 12:19   ` Yao, Jiewen
2016-11-18  1:31     ` Zeng, Star
2016-11-18  1:40       ` Yao, Jiewen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=74D8A39837DF1E4DA445A8C0B3885C50386D6947@shsmsx102.ccr.corp.intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox