]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg TPM2: Make IsHashAlgSupportedInHashAlgorithmMask external
authorStar Zeng <star.zeng@intel.com>
Thu, 17 Nov 2016 08:41:08 +0000 (16:41 +0800)
committerStar Zeng <star.zeng@intel.com>
Mon, 21 Nov 2016 02:38:30 +0000 (10:38 +0800)
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>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by : Chao Zhang <chao.b.zhang@intel.com>

SecurityPkg/Include/Library/Tpm2CommandLib.h
SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c

index 9a1dd8d8aceb4b97262f76af13d0f575942373fa..85a4c65e0263c03a9b4bb4f8e05c3da060c9b760 100644 (file)
@@ -1006,6 +1006,22 @@ GetHashSizeFromAlgo (
   IN TPMI_ALG_HASH    HashAlgo\r
   );\r
 \r
+/**\r
+  Return if hash alg is supported in HashAlgorithmMask.\r
+\r
+  @param HashAlg            Hash algorithm to be checked.\r
+  @param HashAlgorithmMask  Bitfield of allowed hash algorithms.\r
+\r
+  @retval TRUE  Hash algorithm is supported.\r
+  @retval FALSE Hash algorithm is not supported.\r
+**/\r
+BOOLEAN\r
+EFIAPI\r
+IsHashAlgSupportedInHashAlgorithmMask(\r
+  IN TPMI_ALG_HASH  HashAlg,\r
+  IN UINT32         HashAlgorithmMask\r
+  );\r
+\r
 /**\r
   Copy TPML_DIGEST_VALUES into a buffer\r
 \r
index be95fd69b3dd29be82553633579cd7e7eec284fb..95d4f7c84ce965dc4f3091f6fe0a8cf926ca0da3 100644 (file)
@@ -175,6 +175,7 @@ CopyAuthSessionResponse (
   @retval FALSE Hash algorithm is not supported.\r
 **/\r
 BOOLEAN\r
+EFIAPI\r
 IsHashAlgSupportedInHashAlgorithmMask(\r
   IN TPMI_ALG_HASH  HashAlg,\r
   IN UINT32         HashAlgorithmMask\r