audk/SecurityPkg/Library/Tpm2CommandLib
Yao, Jiewen b1b1d64699 SecurityPkg: Correct data copy in Tpm2NvReadPublic.
1) NvPublic.dataSize data should be got from original
receive buffer, instead of returned NvPublic.

2) NvNameSize means the size of NvName without size field.
The original code treats it to be size of NvName with size
field, so the last 2 bytes are missing.

This patch fixed problem.

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@19756 6f19259b-4bc3-4df7-8a09-765794883524
2016-01-27 12:16:47 +00:00
..
Tpm2Capability.c
Tpm2CommandLib.inf Add TPM2 commands which might be used in field upgrade. 2014-12-12 04:34:19 +00:00
Tpm2CommandLib.uni SecurityPkg: Convert all .uni files to utf-8 2015-12-15 04:58:32 +00:00
Tpm2Context.c Add TPM2 commands which might be used in field upgrade. 2014-12-12 04:34:19 +00:00
Tpm2DictionaryAttack.c SecurityPkg: Clear AuthSession content after use. 2016-01-11 05:18:32 +00:00
Tpm2EnhancedAuthorization.c SecurityPkg: Clear AuthSession content after use. 2016-01-11 05:18:32 +00:00
Tpm2Help.c Clean up code. 2014-08-07 05:03:10 +00:00
Tpm2Hierarchy.c SecurityPkg: Clear AuthSession content after use. 2016-01-11 05:18:32 +00:00
Tpm2Integrity.c SecurityPkg: Clear AuthSession content after use. 2016-01-11 05:18:32 +00:00
Tpm2Miscellaneous.c SecurityPkg: Clear AuthSession content after use. 2016-01-11 05:18:32 +00:00
Tpm2NVStorage.c SecurityPkg: Correct data copy in Tpm2NvReadPublic. 2016-01-27 12:16:47 +00:00
Tpm2Sequences.c
Tpm2Session.c Use better coding style. 2014-12-19 05:21:55 +00:00
Tpm2Startup.c SecurityPkg: Add Tpm2Startup return code check. 2016-01-11 05:15:18 +00:00
Tpm2Test.c