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
31EFIAPI
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}
UINT64 UINTN
UINT32 EFIAPI CalculateCrc32(IN VOID *Buffer, IN UINTN Length)
Definition: CheckSum.c:600
EFI_STATUS EFIAPI RuntimeDriverCalculateCrc32(IN VOID *Data, IN UINTN DataSize, OUT UINT32 *CrcOut)
Definition: Crc32.c:32
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
#define EFI_SUCCESS
Definition: UefiBaseType.h:112