TianoCore EDK2
master
Loading...
Searching...
No Matches
Crc32.c
Go to the documentation of this file.
1
15
#include <
Uefi.h
>
16
#include <
Library/BaseLib.h
>
17
30
EFI_STATUS
31
EFIAPI
32
RuntimeDriverCalculateCrc32
(
33
IN
VOID *Data,
34
IN
UINTN
DataSize,
35
OUT
UINT32 *CrcOut
36
)
37
{
38
if
((Data ==
NULL
) || (DataSize == 0) || (CrcOut ==
NULL
)) {
39
return
EFI_INVALID_PARAMETER;
40
}
41
42
*CrcOut =
CalculateCrc32
(Data, DataSize);
43
return
EFI_SUCCESS
;
44
}
UINTN
UINT64 UINTN
Definition:
ProcessorBind.h:112
BaseLib.h
CalculateCrc32
UINT32 EFIAPI CalculateCrc32(IN VOID *Buffer, IN UINTN Length)
Definition:
CheckSum.c:600
RuntimeDriverCalculateCrc32
EFI_STATUS EFIAPI RuntimeDriverCalculateCrc32(IN VOID *Data, IN UINTN DataSize, OUT UINT32 *CrcOut)
Definition:
Crc32.c:32
NULL
#define NULL
Definition:
Base.h:319
IN
#define IN
Definition:
Base.h:279
OUT
#define OUT
Definition:
Base.h:284
Uefi.h
EFI_STATUS
RETURN_STATUS EFI_STATUS
Definition:
UefiBaseType.h:29
EFI_SUCCESS
#define EFI_SUCCESS
Definition:
UefiBaseType.h:112
MdeModulePkg
Core
RuntimeDxe
Crc32.c
Generated on Fri Nov 15 2024 18:01:11 for TianoCore EDK2 by
1.9.6