You've already forked slimbootloader
mirror of
https://github.com/Dasharo/slimbootloader.git
synced 2026-03-06 15:26:20 -08:00
b24fd2759c
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>
42 lines
1.1 KiB
C
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
|