/device/linaro/bootloader/edk2/SecurityPkg/Library/Tpm2CommandLib/ |
Tpm2Help.c | 24 UINT16 HashSize;
52 return mHashInfo[Index].HashSize;
|
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/ |
MeasureBootPeCoff.c | 62 UINTN HashSize;
139 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.CheckSum) - HashBase);
145 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.CheckSum) - HashBase);
148 Status = HashUpdate (HashHandle, HashBase, HashSize);
166 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress);
172 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress);
175 if (HashSize != 0) {
176 Status = HashUpdate (HashHandle, HashBase, HashSize);
190 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURITY]) - HashBase);
196 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURIT (…) [all...] |
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/ |
MeasureBootPeCoff.c | 62 UINTN HashSize;
139 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.CheckSum) - HashBase);
145 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.CheckSum) - HashBase);
148 Status = HashUpdate (HashHandle, HashBase, HashSize);
166 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress);
172 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress);
175 if (HashSize != 0) {
176 Status = HashUpdate (HashHandle, HashBase, HashSize);
190 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURITY]) - HashBase);
196 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURIT (…) [all...] |
/external/llvm/lib/DebugInfo/PDB/Raw/ |
NameMap.cpp | 41 uint32_t HashSize; 42 if (auto EC = Stream.readInteger(HashSize))
|
/device/linaro/bootloader/edk2/CryptoPkg/Application/Cryptest/ |
RsaVerify.c | 96 UINTN HashSize;
305 HashSize = SHA1_DIGEST_SIZE;
306 ZeroMem (HashValue, HashSize);
362 Status = RsaPkcs1Sign (Rsa, HashValue, HashSize, NULL, &SigSize);
369 Status = RsaPkcs1Sign (Rsa, HashValue, HashSize, Signature, &SigSize);
391 Status = RsaPkcs1Verify (Rsa, HashValue, HashSize, Signature, SigSize);
|
/device/linaro/bootloader/edk2/SecurityPkg/Hash2DxeCrypto/ |
Hash2DxeCrypto.c | 121 UINT32 HashSize;
141 @param[out] HashSize Holds the returned size of the algorithm's hash.
144 @retval EFI_INVALID_PARAMETER This or HashSize is NULL.
154 OUT UINTN *HashSize
291 @param[out] HashSize Holds the returned size of the algorithm's hash.
294 @retval EFI_INVALID_PARAMETER This or HashSize is NULL.
304 OUT UINTN *HashSize
309 if ((This == NULL) || (HashSize == NULL)) {
322 *HashSize = HashInfo->HashSize;
[all...] |
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/ |
DxeTpmMeasureBootLib.c | 316 UINTN HashSize;
444 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.CheckSum) - HashBase);
450 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.CheckSum) - HashBase);
453 HashStatus = Sha1Update (Sha1Ctx, HashBase, HashSize);
471 HashSize = Hdr.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress);
477 HashSize = Hdr.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - ImageAddress);
480 if (HashSize != 0) {
481 HashStatus = Sha1Update (Sha1Ctx, HashBase, HashSize);
495 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURITY]) - HashBase);
501 HashSize = (UINTN) ((UINT8 *)(&Hdr.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURIT (…) [all...] |
/device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/PwdCredentialProviderDxe/ |
PwdCredentialProvider.c | 282 UINTN HashSize;
285 HashSize = Sha1GetContextSize ();
286 Hash = AllocatePool (HashSize);
[all...] |
/device/linaro/bootloader/edk2/SecurityPkg/UserIdentification/UsbCredentialProviderDxe/ |
UsbCredentialProvider.c | 435 UINTN HashSize;
438 HashSize = Sha1GetContextSize ();
439 Hash = AllocatePool (HashSize);
[all...] |
/external/ImageMagick/MagickCore/ |
compress.c | 374 #define HashSize 1021 385 hash[((entry->length+a)*(entry->code+b)) % HashSize]=(HuffmanTable *) entry; \ 457 mb_hash=(HuffmanTable **) AcquireQuantumMemory(HashSize,sizeof(*mb_hash)); 458 mw_hash=(HuffmanTable **) AcquireQuantumMemory(HashSize,sizeof(*mw_hash)); 469 for (i=0; i < HashSize; i++) 559 entry=mw_hash[((length+MWHashA)*(code+MWHashB)) % HashSize]; 565 entry=mb_hash[((length+MBHashA)*(code+MBHashB)) % HashSize]; [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
winsafer.h | 110 DWORD HashSize;
|
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeImageVerificationLib/ |
DxeImageVerificationLib.c | 297 UINTN HashSize;
387 HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.CheckSum) - HashBase);
393 HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.CheckSum) - HashBase);
403 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize);
421 HashSize = mNtHeader.Pe32->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - mImageBase);
427 HashSize = mNtHeader.Pe32Plus->OptionalHeader.SizeOfHeaders - (UINTN) (HashBase - mImageBase);
430 if (HashSize != 0) {
431 Status = mHash[HashAlg].HashUpdate(HashCtx, HashBase, HashSize);
445 HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_SECURITY]) - HashBase);
451 HashSize = (UINTN) ((UINT8 *) (&mNtHeader.Pe32Plus->OptionalHeader.DataDirectory[EFI_IMAGE_DIRECTORY_ENTRY_ (…) [all...] |
/device/linaro/bootloader/edk2/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/ |
SecureBootConfigImpl.c | [all...] |