Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/
DMeasureBootPeCoff.c114 UINTN HashSize; in MeasurePeImageAndExtend() local
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()
236 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend()
242 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend()
245 if (HashSize != 0) { in MeasurePeImageAndExtend()
246 Status = HashUpdate (HashHandle, HashBase, HashSize); in MeasurePeImageAndExtend()
260HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SE… in MeasurePeImageAndExtend()
266HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTR… in MeasurePeImageAndExtend()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/
DMeasureBootPeCoff.c114 UINTN HashSize; in MeasurePeImageAndExtend() local
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()
236 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend()
242 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in MeasurePeImageAndExtend()
245 if (HashSize != 0) { in MeasurePeImageAndExtend()
246 Status = HashUpdate (HashHandle, HashBase, HashSize); in MeasurePeImageAndExtend()
260HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SE… in MeasurePeImageAndExtend()
266HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTR… in MeasurePeImageAndExtend()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/
DDxeTpmMeasureBootLib.c318 UINTN HashSize; in TcgMeasurePeImage() local
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()
473 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in TcgMeasurePeImage()
479 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress); in TcgMeasurePeImage()
482 if (HashSize != 0) { in TcgMeasurePeImage()
483 HashStatus = Sha1Update (Sha1Ctx, HashBase, HashSize); in TcgMeasurePeImage()
497HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SE… in TcgMeasurePeImage()
503HashSize = (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.c303 UINTN HashSize; in HashPeImage() local
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()
428 HashSize = mNtHeader.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - mImageBase); in HashPeImage()
434 HashSize = mNtHeader.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - mImageBase); in HashPeImage()
437 if (HashSize != 0) { in HashPeImage()
438 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage()
452HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_E… in HashPeImage()
458HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTO… in HashPeImage()
[all …]
/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/MdePkg/Include/Protocol/
DHash.h118 OUT UINTN *HashSize
DHash2.h85 OUT UINTN *HashSize
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Protocol/Hash/
DHash.h93 OUT UINTN *HashSize
/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2CommandLib/
DTpm2Help.c24 UINT16 HashSize; member
53 return mHashInfo[Index].HashSize; in GetHashSizeFromAlgo()
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/
DSecureBootConfigImpl.c1779 UINTN HashSize; in HashPeImage() local
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()
1868HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_E… in HashPeImage()
1874HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTO… in HashPeImage()
1877 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage()
1890HashSize = mNtHeader.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) ((UINT8 *) (&mNtHeader.Pe32->Opt… in HashPeImage()
1896HashSize = mNtHeader.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) ((UINT8 *) (&mNtHeader.Pe32P… in HashPeImage()
1899 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage()
[all …]
/device/linaro/bootloader/edk2/CryptoPkg/Include/Library/
DBaseCryptLib.h1967 IN UINTN HashSize,
1996 IN UINTN HashSize,
2465 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()