From b8ae1f4de75260f48e1459692bac0d1b84246cc1 Mon Sep 17 00:00:00 2001 From: Star Zeng Date: Fri, 18 Nov 2016 13:13:21 +0800 Subject: SecurityPkg TPM2: Add GetHashMaskFromAlgo() into Tpm2CommandLib Add GetHashMaskFromAlgo() into Tpm2CommandLib for coming consumer. Cc: Jiewen Yao Cc: Chao Zhang Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by : Chao Zhang Reviewed-by: Jiewen Yao --- SecurityPkg/Include/Library/Tpm2CommandLib.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'SecurityPkg/Include') diff --git a/SecurityPkg/Include/Library/Tpm2CommandLib.h b/SecurityPkg/Include/Library/Tpm2CommandLib.h index 85a4c65e02..699270f127 100644 --- a/SecurityPkg/Include/Library/Tpm2CommandLib.h +++ b/SecurityPkg/Include/Library/Tpm2CommandLib.h @@ -1006,6 +1006,19 @@ GetHashSizeFromAlgo ( IN TPMI_ALG_HASH HashAlgo ); +/** + Get hash mask from algorithm. + + @param[in] HashAlgo Hash algorithm + + @return Hash mask +**/ +UINT32 +EFIAPI +GetHashMaskFromAlgo ( + IN TPMI_ALG_HASH HashAlgo + ); + /** Return if hash alg is supported in HashAlgorithmMask. -- cgit v1.2.3