diff options
author | Liming Gao <liming.gao@intel.com> | 2016-07-13 20:28:18 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2016-07-14 15:04:54 +0800 |
commit | 89fb5aef411587661c9a1c00645d46adf76b2fb2 (patch) | |
tree | defe03d61233cc3811226987d69530ab4b71e268 /SecurityPkg | |
parent | 5a8eae9560ddf8422ed1b43aff8612931e472eb6 (diff) | |
download | edk2-89fb5aef411587661c9a1c00645d46adf76b2fb2.tar.gz edk2-89fb5aef411587661c9a1c00645d46adf76b2fb2.tar.bz2 edk2-89fb5aef411587661c9a1c00645d46adf76b2fb2.zip |
SecurityPkg DxeImageVerificationLib: Add comments in HashPeImage()
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>
Diffstat (limited to 'SecurityPkg')
-rw-r--r-- | SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c b/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c index 3aef1af760..7b7e6af784 100644 --- a/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c +++ b/SecurityPkg/Library/DxeImageVerificationLib/DxeImageVerificationLib.c @@ -275,11 +275,14 @@ GetImageType ( /**
Calculate hash of Pe/Coff image based on the authenticode image hashing in
PE/COFF Specification 8.0 Appendix A
-
+
Caution: This function may receive untrusted input.
PE/COFF image is external input, so this function will validate its data structure
within this image buffer before use.
+ Notes: PE/COFF image has been checked by BasePeCoffLib PeCoffLoaderGetImageInfo() in
+ its caller function DxeImageVerificationHandler().
+
@param[in] HashAlg Hash algorithm type.
@retval TRUE Successfully hash image.
|