]> git.proxmox.com Git - mirror_edk2.git/commitdiff
SecurityPkg DxeImageVerificationLib: Add comments in HashPeImage()
authorLiming Gao <liming.gao@intel.com>
Wed, 13 Jul 2016 12:28:18 +0000 (20:28 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 14 Jul 2016 07:04:54 +0000 (15:04 +0800)
The input PeImage in HashPeImage() has been checked.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Chao Zhang <chao.b.zhang@intel.com>
SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c

index 3aef1af7607afd701b9ec1f10b6e789d06078ad7..7b7e6af784147922b2c4de8c76ede269eda9e7bc 100644 (file)
@@ -275,11 +275,14 @@ GetImageType (
 /**\r
   Calculate hash of Pe/Coff image based on the authenticode image hashing in\r
   PE/COFF Specification 8.0 Appendix A\r
-\r
+  \r
   Caution: This function may receive untrusted input.\r
   PE/COFF image is external input, so this function will validate its data structure\r
   within this image buffer before use.\r
 \r
+  Notes: PE/COFF image has been checked by BasePeCoffLib PeCoffLoaderGetImageInfo() in \r
+  its caller function DxeImageVerificationHandler().\r
+\r
   @param[in]    HashAlg   Hash algorithm type.\r
 \r
   @retval TRUE            Successfully hash image.\r