]> git.proxmox.com Git - mirror_edk2.git/commit
SecurityPkg/TPM2: Move CopyDigestListToBuffer() to Tpm2CommandLib
authorJiewen Yao <jiewen.yao@intel.com>
Wed, 14 Sep 2016 02:45:19 +0000 (10:45 +0800)
committerStar Zeng <star.zeng@intel.com>
Wed, 21 Sep 2016 10:20:19 +0000 (18:20 +0800)
commitf5e34e37e018034bc8ce7a2fb9ecb176d948b143
tree90451ae1ff0684197d6e75ea16173e4b4485860c
parent77e55cf4e283942766d6178eca375aeec055bff2
SecurityPkg/TPM2: Move CopyDigestListToBuffer() to Tpm2CommandLib

This patch just moves function CopyDigestListToBuffer() from
drivers to library with HashAlgorithmMask parameter added to
make the interface more applicable.

The related function IsHashAlgSupportedInHashAlgorithmMask()
is also moved from drivers to library as internal function.

Cc: Chao B Zhang <chao.b.zhang@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
SecurityPkg/Include/Library/Tpm2CommandLib.h
SecurityPkg/Library/Tpm2CommandLib/Tpm2Help.c
SecurityPkg/Tcg/Tcg2Dxe/Tcg2Dxe.c
SecurityPkg/Tcg/Tcg2Pei/Tcg2Pei.c