Files
slimbootloader/BootloaderCommonPkg/Include/Library/Crc32Lib.h
T
Aiden Park b24fd2759c Cosmetic: Convert LF to CRLF
This will fully support PatchCheck.py.
- Remove all trailing whitespace
- Convert LF to CRLF by default
- Update EFI_D_* to DEBUG_*
- Re-enable CRLF check in PatchCheck.py

Signed-off-by: Aiden Park <aiden.park@intel.com>
2019-12-02 16:21:19 -08:00

42 lines
1.1 KiB
C

/** @file
Header file for CalcuateCrc32 routine
Copyright (c) 2004 - 2017, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _CRC32_H_
#define _CRC32_H_
#include <PiPei.h>
typedef enum {
Crc32TypeDefault,
Crc32TypeCastagnoli,
Crc32TypeMax
} CRC32_TYPE;
/**
The CalculateCrc32WithType routine.
@param Data - The buffer contaning the data to be processed
@param DataSize - The size of data to be processed
@param Type - Which CRC table should be used, default or Castagnoli
@param CrcOut - A pointer to the caller allocated UINT32 that on
contains the CRC32 checksum of Data
@retval EFI_SUCCESS - Calculation is successful.
@retval EFI_INVALID_PARAMETER - Data / CrcOut = NULL, or DataSize = 0
**/
EFI_STATUS
EFIAPI
CalculateCrc32WithType (
IN UINT8 *Data,
IN UINTN DataSize,
IN CRC32_TYPE Type,
IN OUT UINT32 *CrcOut
);
#endif