/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/ |
D | MeasureBootPeCoff.c | 114 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() 260 …HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SE… in MeasurePeImageAndExtend() 266 …HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTR… in MeasurePeImageAndExtend() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/ |
D | MeasureBootPeCoff.c | 114 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() 260 …HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SE… in MeasurePeImageAndExtend() 266 …HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTR… in MeasurePeImageAndExtend() [all …]
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/ |
D | DxeTpmMeasureBootLib.c | 318 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() 497 …HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SE… in TcgMeasurePeImage() 503 …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 | 303 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() 452 …HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_E… in HashPeImage() 458 …HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTO… in HashPeImage() [all …]
|
/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/MdePkg/Include/Protocol/ |
D | Hash.h | 118 OUT UINTN *HashSize
|
D | Hash2.h | 85 OUT UINTN *HashSize
|
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Efi/Protocol/Hash/ |
D | Hash.h | 93 OUT UINTN *HashSize
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2CommandLib/ |
D | Tpm2Help.c | 24 UINT16 HashSize; member 53 return mHashInfo[Index].HashSize; in GetHashSizeFromAlgo()
|
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/ |
D | SecureBootConfigImpl.c | 1779 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() 1868 …HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_E… in HashPeImage() 1874 …HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTO… in HashPeImage() 1877 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize); in HashPeImage() 1890 …HashSize = mNtHeader.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) ((UINT8 *) (&mNtHeader.Pe32->Opt… in HashPeImage() 1896 …HashSize = 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/ |
D | BaseCryptLib.h | 1967 IN UINTN HashSize, 1996 IN UINTN HashSize, 2465 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()
|