Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/
DMeasureBootPeCoff.c115 UINTN SumOfBytesHashed; in MeasurePeImageAndExtend() local
309 SumOfBytesHashed = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in MeasurePeImageAndExtend()
314 SumOfBytesHashed = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders; in MeasurePeImageAndExtend()
372 SumOfBytesHashed += HashSize; in MeasurePeImageAndExtend()
381 if (ImageSize > SumOfBytesHashed) { in MeasurePeImageAndExtend()
382 HashBase = (UINT8 *) (UINTN) ImageAddress + SumOfBytesHashed; in MeasurePeImageAndExtend()
400 if (ImageSize > CertSize + SumOfBytesHashed) { in MeasurePeImageAndExtend()
401 HashSize = (UINTN) (ImageSize - CertSize - SumOfBytesHashed); in MeasurePeImageAndExtend()
407 } else if (ImageSize < CertSize + SumOfBytesHashed) { in MeasurePeImageAndExtend()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/
DMeasureBootPeCoff.c115 UINTN SumOfBytesHashed; in MeasurePeImageAndExtend() local
309 SumOfBytesHashed = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in MeasurePeImageAndExtend()
314 SumOfBytesHashed = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders; in MeasurePeImageAndExtend()
372 SumOfBytesHashed += HashSize; in MeasurePeImageAndExtend()
381 if (ImageSize > SumOfBytesHashed) { in MeasurePeImageAndExtend()
382 HashBase = (UINT8 *) (UINTN) ImageAddress + SumOfBytesHashed; in MeasurePeImageAndExtend()
400 if (ImageSize > CertSize + SumOfBytesHashed) { in MeasurePeImageAndExtend()
401 HashSize = (UINTN) (ImageSize - CertSize - SumOfBytesHashed); in MeasurePeImageAndExtend()
407 } else if (ImageSize < CertSize + SumOfBytesHashed) { in MeasurePeImageAndExtend()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/
DDxeTpmMeasureBootLib.c319 UINTN SumOfBytesHashed; in TcgMeasurePeImage() local
546 SumOfBytesHashed = Hdr.Pe32->OptionalHeader.SizeOfHeaders; in TcgMeasurePeImage()
551 SumOfBytesHashed = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders; in TcgMeasurePeImage()
609 SumOfBytesHashed += HashSize; in TcgMeasurePeImage()
618 if (ImageSize > SumOfBytesHashed) { in TcgMeasurePeImage()
619 HashBase = (UINT8 *) (UINTN) ImageAddress + SumOfBytesHashed; in TcgMeasurePeImage()
637 if (ImageSize > CertSize + SumOfBytesHashed) { in TcgMeasurePeImage()
638 HashSize = (UINTN) (ImageSize - CertSize - SumOfBytesHashed); in TcgMeasurePeImage()
644 } else if (ImageSize < CertSize + SumOfBytesHashed) { in TcgMeasurePeImage()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/
DDxeImageVerificationLib.c304 UINTN SumOfBytesHashed; in HashPeImage() local
501 SumOfBytesHashed = mNtHeader.Pe32->OptionalHeader.SizeOfHeaders; in HashPeImage()
506 SumOfBytesHashed = mNtHeader.Pe32Plus->OptionalHeader.SizeOfHeaders; in HashPeImage()
565 SumOfBytesHashed += HashSize; in HashPeImage()
574 if (mImageSize > SumOfBytesHashed) { in HashPeImage()
575 HashBase = mImageBase + SumOfBytesHashed; in HashPeImage()
593 if (mImageSize > CertSize + SumOfBytesHashed) { in HashPeImage()
594 HashSize = (UINTN) (mImageSize - CertSize - SumOfBytesHashed); in HashPeImage()
600 } else if (mImageSize < CertSize + SumOfBytesHashed) { in HashPeImage()
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/
DSecureBootConfigImpl.c1780 UINTN SumOfBytesHashed; in HashPeImage() local
1910 SumOfBytesHashed = mNtHeader.Pe32->OptionalHeader.SizeOfHeaders; in HashPeImage()
1915 SumOfBytesHashed = mNtHeader.Pe32Plus->OptionalHeader.SizeOfHeaders; in HashPeImage()
1969 SumOfBytesHashed += HashSize; in HashPeImage()
1978 if (mImageSize > SumOfBytesHashed) { in HashPeImage()
1979 HashBase = mImageBase + SumOfBytesHashed; in HashPeImage()
1987 SumOfBytesHashed); in HashPeImage()
1995 SumOfBytesHashed); in HashPeImage()