mirror of https://github.com/acidanthera/audk.git
SecurityPkg: Update SignatureSize to comply UEFI spec
Update SignatureSize to include SignatureOwner GUID. This behavior is defined by UEFI spec Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chao Zhang <chao.b.zhang@intel.com> Reviewed-by: Qin Long <qin.long@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18226 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
313491310c
commit
13a220a998
|
@ -1860,7 +1860,7 @@ DxeImageVerificationHandler (
|
|||
}
|
||||
SignatureList->SignatureHeaderSize = 0;
|
||||
SignatureList->SignatureListSize = (UINT32) SignatureListSize;
|
||||
SignatureList->SignatureSize = (UINT32) mImageDigestSize;
|
||||
SignatureList->SignatureSize = (UINT32) (sizeof (EFI_SIGNATURE_DATA) - 1 + mImageDigestSize);
|
||||
CopyMem (&SignatureList->SignatureType, &mCertType, sizeof (EFI_GUID));
|
||||
Signature = (EFI_SIGNATURE_DATA *) ((UINT8 *) SignatureList + sizeof (EFI_SIGNATURE_LIST));
|
||||
CopyMem (Signature->SignatureData, mImageDigest, mImageDigestSize);
|
||||
|
|
Loading…
Reference in New Issue