/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/ |
D | MeasureBootPeCoff.c | 62 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() 190 …HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SE… in MeasurePeImageAndExtend() 196 …HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTR… in MeasurePeImageAndExtend() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/ |
D | MeasureBootPeCoff.c | 62 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() 190 …HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SE… in MeasurePeImageAndExtend() 196 …HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTR… in MeasurePeImageAndExtend() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/ |
D | DxeTpmMeasureBootLib.c | 316 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() 495 …HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SE… in TcgMeasurePeImage() 501 …HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTR… in TcgMeasurePeImage() [all …]
|
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/Pk/ |
D | CryptAuthenticode.c | 70 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()
|
D | CryptRsaExt.c | 323 IN UINTN HashSize, in RsaPkcs1Sign() argument 355 switch (HashSize) { in RsaPkcs1Sign() 375 (UINT32) HashSize, in RsaPkcs1Sign()
|
D | CryptRsaBasic.c | 287 IN UINTN HashSize, in RsaPkcs1Verify() argument 310 switch (HashSize) { in RsaPkcs1Verify() 331 (UINT32) HashSize, in RsaPkcs1Verify()
|
D | CryptAuthenticodeNull.c | 46 IN UINTN HashSize in AuthenticodeVerify() argument
|
D | CryptRsaExtNull.c | 116 IN UINTN HashSize, in RsaPkcs1Sign() argument
|
/device/linaro/bootloader/edk2/CryptoPkg/Application/Cryptest/ |
D | RsaVerify.c | 96 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/ |
D | Hash2DxeCrypto.c | 121 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/ |
D | DxeImageVerificationLib.c | 297 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() 445 …HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_E… in HashPeImage() 451 …HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTO… in HashPeImage() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2CommandLib/ |
D | Tpm2Help.c | 24 UINT16 HashSize; member 52 return mHashInfo[Index].HashSize; in GetHashSizeFromAlgo()
|
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/Pk/ |
D | CryptAuthenticodeNull.c | 46 IN UINTN HashSize in AuthenticodeVerify() argument
|
D | CryptRsaExtNull.c | 116 IN UINTN HashSize, in RsaPkcs1Sign() argument
|
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLibRuntimeCryptProtocol/ |
D | RuntimeDxeIpfCryptLib.c | 403 IN UINTN HashSize, in RsaPkcs1Verify() argument 415 HashSize, in RsaPkcs1Verify()
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Protocol/Hash/ |
D | Hash.h | 93 OUT UINTN *HashSize
|
/device/linaro/bootloader/edk2/MdePkg/Include/Protocol/ |
D | Hash.h | 118 OUT UINTN *HashSize
|
D | Hash2.h | 85 OUT UINTN *HashSize
|
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/ |
D | SecureBootConfigImpl.c | 1693 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() 1782 …HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_E… in HashPeImage() 1788 …HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTO… in HashPeImage() 1791 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage() 1804 …HashSize = mNtHeader.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) ((UINT8 *) (&mNtHeader.Pe32->Opt… in HashPeImage() 1810 …HashSize = 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/ |
D | BaseCryptLib.h | 1693 IN UINTN HashSize, 1722 IN UINTN HashSize, 2151 IN UINTN HashSize
|
/device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/PwdCredentialProviderDxe/ |
D | PwdCredentialProvider.c | 282 UINTN HashSize; in GenerateCredential() local 285 HashSize = Sha1GetContextSize (); in GenerateCredential() 286 Hash = AllocatePool (HashSize); in GenerateCredential()
|
/device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/ |
D | UsbCredentialProvider.c | 435 UINTN HashSize; in GenerateCredential() local 438 HashSize = Sha1GetContextSize (); in GenerateCredential() 439 Hash = AllocatePool (HashSize); in GenerateCredential()
|