mirror of https://github.com/acidanthera/audk.git
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> Reviewed-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by : Chao Zhang <chao.b.zhang@intel.com>
This commit is contained in:
parent
be93a17bbd
commit
697c30b157
|
@ -1006,6 +1006,22 @@ GetHashSizeFromAlgo (
|
|||
IN TPMI_ALG_HASH HashAlgo
|
||||
);
|
||||
|
||||
/**
|
||||
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
|
||||
|
||||
|
|
|
@ -175,6 +175,7 @@ CopyAuthSessionResponse (
|
|||
@retval FALSE Hash algorithm is not supported.
|
||||
**/
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
IsHashAlgSupportedInHashAlgorithmMask(
|
||||
IN TPMI_ALG_HASH HashAlg,
|
||||
IN UINT32 HashAlgorithmMask
|
||||
|
|
Loading…
Reference in New Issue