Home
last modified time | relevance | path

Searched refs:HashSize (Results 1 – 22 of 22) sorted by relevance

/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/
DMeasureBootPeCoff.c62 UINTN HashSize; in MeasurePeImageAndExtend() local
139 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.CheckSum) - HashBase); in MeasurePeImageAndExtend()
145 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.CheckSum) - HashBase); in MeasurePeImageAndExtend()
148 Status = HashUpdate (HashHandle, HashBase, HashSize); in MeasurePeImageAndExtend()
166 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend()
172 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend()
175 if (HashSize != 0) { in MeasurePeImageAndExtend()
176 Status = HashUpdate (HashHandle, HashBase, HashSize); in MeasurePeImageAndExtend()
190HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SE… in MeasurePeImageAndExtend()
196HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTR… in MeasurePeImageAndExtend()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/
DMeasureBootPeCoff.c62 UINTN HashSize; in MeasurePeImageAndExtend() local
139 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.CheckSum) - HashBase); in MeasurePeImageAndExtend()
145 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.CheckSum) - HashBase); in MeasurePeImageAndExtend()
148 Status = HashUpdate (HashHandle, HashBase, HashSize); in MeasurePeImageAndExtend()
166 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend()
172 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend()
175 if (HashSize != 0) { in MeasurePeImageAndExtend()
176 Status = HashUpdate (HashHandle, HashBase, HashSize); in MeasurePeImageAndExtend()
190HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SE… in MeasurePeImageAndExtend()
196HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTR… in MeasurePeImageAndExtend()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/
DDxeTpmMeasureBootLib.c316 UINTN HashSize; in TcgMeasurePeImage() local
444 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.CheckSum) - HashBase); in TcgMeasurePeImage()
450 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.CheckSum) - HashBase); in TcgMeasurePeImage()
453 HashStatus = Sha1Update (Sha1Ctx, HashBase, HashSize); in TcgMeasurePeImage()
471 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in TcgMeasurePeImage()
477 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in TcgMeasurePeImage()
480 if (HashSize != 0) { in TcgMeasurePeImage()
481 HashStatus = Sha1Update (Sha1Ctx, HashBase, HashSize); in TcgMeasurePeImage()
495HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SE… in TcgMeasurePeImage()
501HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTR… in TcgMeasurePeImage()
[all …]
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/Pk/
DCryptAuthenticode.c70 IN UINTN HashSize in AuthenticodeVerify() argument
89 if ((DataSize > INT_MAX) || (CertSize > INT_MAX) || (HashSize > INT_MAX)) { in AuthenticodeVerify()
179 if (CompareMem (SpcIndirectDataContent + ContentSize - HashSize, ImageHash, HashSize) != 0) { in AuthenticodeVerify()
DCryptRsaExt.c323 IN UINTN HashSize, in RsaPkcs1Sign() argument
355 switch (HashSize) { in RsaPkcs1Sign()
375 (UINT32) HashSize, in RsaPkcs1Sign()
DCryptRsaBasic.c287 IN UINTN HashSize, in RsaPkcs1Verify() argument
310 switch (HashSize) { in RsaPkcs1Verify()
331 (UINT32) HashSize, in RsaPkcs1Verify()
DCryptAuthenticodeNull.c46 IN UINTN HashSize in AuthenticodeVerify() argument
DCryptRsaExtNull.c116 IN UINTN HashSize, in RsaPkcs1Sign() argument
/device/linaro/bootloader/edk2/CryptoPkg/Application/Cryptest/
DRsaVerify.c96 UINTN HashSize; in ValidateCryptRsa() local
305 HashSize = SHA1_DIGEST_SIZE; in ValidateCryptRsa()
306 ZeroMem (HashValue, HashSize); in ValidateCryptRsa()
362 Status = RsaPkcs1Sign (Rsa, HashValue, HashSize, NULL, &SigSize); in ValidateCryptRsa()
369 Status = RsaPkcs1Sign (Rsa, HashValue, HashSize, Signature, &SigSize); in ValidateCryptRsa()
391 Status = RsaPkcs1Verify (Rsa, HashValue, HashSize, Signature, SigSize); in ValidateCryptRsa()
/device/linaro/bootloader/edk2/SecurityPkg/Hash2DxeCrypto/
DHash2DxeCrypto.c121 UINT32 HashSize; member
154 OUT UINTN *HashSize
304 OUT UINTN *HashSize in BaseCrypto2GetHashSize() argument
309 if ((This == NULL) || (HashSize == NULL)) { in BaseCrypto2GetHashSize()
322 *HashSize = HashInfo->HashSize; in BaseCrypto2GetHashSize()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/
DDxeImageVerificationLib.c297 UINTN HashSize; in HashPeImage() local
387 HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.CheckSum) - HashBase); in HashPeImage()
393 HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.CheckSum) - HashBase); in HashPeImage()
403 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage()
421 HashSize = mNtHeader.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - mImageBase); in HashPeImage()
427 HashSize = mNtHeader.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - mImageBase); in HashPeImage()
430 if (HashSize != 0) { in HashPeImage()
431 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage()
445HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_E… in HashPeImage()
451HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTO… in HashPeImage()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2CommandLib/
DTpm2Help.c24 UINT16 HashSize; member
52 return mHashInfo[Index].HashSize; in GetHashSizeFromAlgo()
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/
DCryptAuthenticodeNull.c46 IN UINTN HashSize in AuthenticodeVerify() argument
DCryptRsaExtNull.c116 IN UINTN HashSize, in RsaPkcs1Sign() argument
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/
DRuntimeDxeIpfCryptLib.c403 IN UINTN HashSize, in RsaPkcs1Verify() argument
415 HashSize, in RsaPkcs1Verify()
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Protocol/Hash/
DHash.h93 OUT UINTN *HashSize
/device/linaro/bootloader/edk2/MdePkg/Include/Protocol/
DHash.h118 OUT UINTN *HashSize
DHash2.h85 OUT UINTN *HashSize
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/
DSecureBootConfigImpl.c1693 UINTN HashSize; in HashPeImage() local
1760 HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.CheckSum) - HashBase); in HashPeImage()
1765 HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.CheckSum) - HashBase); in HashPeImage()
1768 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage()
1782HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_E… in HashPeImage()
1788HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTO… in HashPeImage()
1791 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage()
1804HashSize = mNtHeader.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) ((UINT8 *) (&mNtHeader.Pe32->Opt… in HashPeImage()
1810HashSize = mNtHeader.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) ((UINT8 *) (&mNtHeader.Pe32P… in HashPeImage()
1813 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage()
[all …]
/device/linaro/bootloader/edk2/CryptoPkg/Include/Library/
DBaseCryptLib.h1693 IN UINTN HashSize,
1722 IN UINTN HashSize,
2151 IN UINTN HashSize
/device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/PwdCredentialProviderDxe/
DPwdCredentialProvider.c282 UINTN HashSize; in GenerateCredential() local
285 HashSize = Sha1GetContextSize (); in GenerateCredential()
286 Hash = AllocatePool (HashSize); in GenerateCredential()
/device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/
DUsbCredentialProvider.c435 UINTN HashSize; in GenerateCredential() local
438 HashSize = Sha1GetContextSize (); in GenerateCredential()
439 Hash = AllocatePool (HashSize); in GenerateCredential()