]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/C/Common/Crc32.h
License header updated to match correct format.
[mirror_edk2.git] / BaseTools / Source / C / Common / Crc32.h
CommitLineData
30fdf114 1/** @file\r
97fa0ee9 2Header file for CalcuateCrc32 routine\r
30fdf114 3\r
97fa0ee9 4Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r
40d841f6 5This program and the accompanying materials \r
30fdf114
LG
6are licensed and made available under the terms and conditions of the BSD License \r
7which accompanies this distribution. The full text of the license may be found at \r
8http://opensource.org/licenses/bsd-license.php \r
9 \r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
12\r
30fdf114
LG
13**/\r
14\r
15#ifndef _CRC32_H\r
16#define _CRC32_H\r
17\r
18#include <Common/UefiBaseTypes.h>\r
19\r
20EFI_STATUS\r
21CalculateCrc32 (\r
22 IN UINT8 *Data,\r
23 IN UINTN DataSize,\r
24 IN OUT UINT32 *CrcOut\r
25 )\r
26/*++\r
27\r
28Routine Description:\r
29\r
30 The CalculateCrc32 routine.\r
31\r
32Arguments:\r
33\r
34 Data - The buffer contaning the data to be processed\r
35 DataSize - The size of data to be processed\r
36 CrcOut - A pointer to the caller allocated UINT32 that on\r
37 contains the CRC32 checksum of Data\r
38\r
39Returns:\r
40\r
41 EFI_SUCCESS - Calculation is successful.\r
42 EFI_INVALID_PARAMETER - Data / CrcOut = NULL, or DataSize = 0\r
43\r
44--*/\r
45;\r
46\r
47#endif\r