Home
last modified time | relevance | path

Searched refs:HashBase (Results 1 – 5 of 5) sorted by relevance

/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/
DMeasureBootPeCoff.c113 UINT8 *HashBase; in MeasurePeImageAndExtend() local
203 HashBase = (UINT8 *) (UINTN) ImageAddress; in MeasurePeImageAndExtend()
209 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.CheckSum) - HashBase); in MeasurePeImageAndExtend()
215 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.CheckSum) - HashBase); in MeasurePeImageAndExtend()
218 Status = HashUpdate (HashHandle, HashBase, HashSize); in MeasurePeImageAndExtend()
235 HashBase = (UINT8 *) &Hdr.Pe32->OptionalHeader.CheckSum + sizeof (UINT32); in MeasurePeImageAndExtend()
236 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend()
241 HashBase = (UINT8 *) &Hdr.Pe32Plus->OptionalHeader.CheckSum + sizeof (UINT32); in MeasurePeImageAndExtend()
242 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend()
246 Status = HashUpdate (HashHandle, HashBase, HashSize); in MeasurePeImageAndExtend()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/
DMeasureBootPeCoff.c113 UINT8 *HashBase; in MeasurePeImageAndExtend() local
203 HashBase = (UINT8 *) (UINTN) ImageAddress; in MeasurePeImageAndExtend()
209 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.CheckSum) - HashBase); in MeasurePeImageAndExtend()
215 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.CheckSum) - HashBase); in MeasurePeImageAndExtend()
218 Status = HashUpdate (HashHandle, HashBase, HashSize); in MeasurePeImageAndExtend()
235 HashBase = (UINT8 *) &Hdr.Pe32->OptionalHeader.CheckSum + sizeof (UINT32); in MeasurePeImageAndExtend()
236 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend()
241 HashBase = (UINT8 *) &Hdr.Pe32Plus->OptionalHeader.CheckSum + sizeof (UINT32); in MeasurePeImageAndExtend()
242 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend()
246 Status = HashUpdate (HashHandle, HashBase, HashSize); in MeasurePeImageAndExtend()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/
DDxeTpmMeasureBootLib.c317 UINT8 *HashBase; in TcgMeasurePeImage() local
440 HashBase = (UINT8 *) (UINTN) ImageAddress; in TcgMeasurePeImage()
446 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.CheckSum) - HashBase); in TcgMeasurePeImage()
452 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.CheckSum) - HashBase); in TcgMeasurePeImage()
455 HashStatus = Sha1Update (Sha1Ctx, HashBase, HashSize); in TcgMeasurePeImage()
472 HashBase = (UINT8 *) &Hdr.Pe32->OptionalHeader.CheckSum + sizeof (UINT32); in TcgMeasurePeImage()
473 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in TcgMeasurePeImage()
478 HashBase = (UINT8 *) &Hdr.Pe32Plus->OptionalHeader.CheckSum + sizeof (UINT32); in TcgMeasurePeImage()
479 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in TcgMeasurePeImage()
483 HashStatus = Sha1Update (Sha1Ctx, HashBase, HashSize); in TcgMeasurePeImage()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/
DDxeImageVerificationLib.c302 UINT8 *HashBase; in HashPeImage() local
389 HashBase = mImageBase; in HashPeImage()
394 HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.CheckSum) - HashBase); in HashPeImage()
400 HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.CheckSum) - HashBase); in HashPeImage()
410 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage()
427 HashBase = (UINT8 *) &mNtHeader.Pe32->OptionalHeader.CheckSum + sizeof (UINT32); in HashPeImage()
428 HashSize = mNtHeader.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - mImageBase); in HashPeImage()
433 HashBase = (UINT8 *) &mNtHeader.Pe32Plus->OptionalHeader.CheckSum + sizeof (UINT32); in HashPeImage()
434 HashSize = mNtHeader.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - mImageBase); in HashPeImage()
438 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/
DSecureBootConfigImpl.c1778 UINT8 *HashBase; in HashPeImage() local
1841 HashBase = mImageBase; in HashPeImage()
1846 HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.CheckSum) - HashBase); in HashPeImage()
1851 HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.CheckSum) - HashBase); in HashPeImage()
1854 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage()
1867 HashBase = (UINT8 *) &mNtHeader.Pe32->OptionalHeader.CheckSum + sizeof (UINT32); in HashPeImage()
1868 …*) (&mNtHeader.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURITY]) - HashBase); in HashPeImage()
1873 HashBase = (UINT8 *) &mNtHeader.Pe32Plus->OptionalHeader.CheckSum + sizeof (UINT32); in HashPeImage()
1874 …&mNtHeader.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURITY]) - HashBase); in HashPeImage()
1877 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage()
[all …]