]> git.proxmox.com Git - mirror_edk2.git/commit - SecurityPkg/Library/Tpm2CommandLib/Tpm2Hierarchy.c
SecurityPkg: Clear AuthSession content after use.
authorYao, Jiewen <jiewen.yao@intel.com>
Mon, 11 Jan 2016 05:18:32 +0000 (05:18 +0000)
committerjyao1 <jyao1@Edk2>
Mon, 11 Jan 2016 05:18:32 +0000 (05:18 +0000)
commit7ae130da858d41088d27736f99a8c8f07ec1c641
tree732fe33a7a8407b975d9f5df80914522e1b7b0d6
parentf1e95ab8173ab8ea68ce58ba147e91ce1229a17d
SecurityPkg: Clear AuthSession content after use.

Some commands in Tpm2CommandLib accept AuthSession
as input parameter and copy to local command buffer.
After use, this AuthSession content should be zeroed,
because there might be some secrete there.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: "Yao, Jiewen" <jiewen.yao@intel.com>
Reviewed-by: "Zhang, Chao B" <chao.b.zhang@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19635 6f19259b-4bc3-4df7-8a09-765794883524
SecurityPkg/Library/Tpm2CommandLib/Tpm2DictionaryAttack.c
SecurityPkg/Library/Tpm2CommandLib/Tpm2EnhancedAuthorization.c
SecurityPkg/Library/Tpm2CommandLib/Tpm2Hierarchy.c
SecurityPkg/Library/Tpm2CommandLib/Tpm2Integrity.c
SecurityPkg/Library/Tpm2CommandLib/Tpm2Miscellaneous.c
SecurityPkg/Library/Tpm2CommandLib/Tpm2NVStorage.c