]>
Commit | Line | Data |
---|---|---|
30fdf114 | 1 | /** @file\r |
97fa0ee9 | 2 | Header file for CalcuateCrc32 routine\r |
30fdf114 | 3 | \r |
97fa0ee9 | 4 | Copyright (c) 2004 - 2014, Intel Corporation. All rights reserved.<BR>\r |
40d841f6 | 5 | This program and the accompanying materials \r |
30fdf114 LG |
6 | are licensed and made available under the terms and conditions of the BSD License \r |
7 | which accompanies this distribution. The full text of the license may be found at \r | |
8 | http://opensource.org/licenses/bsd-license.php \r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
11 | WITHOUT 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 | |
20 | EFI_STATUS\r | |
21 | CalculateCrc32 (\r | |
22 | IN UINT8 *Data,\r | |
23 | IN UINTN DataSize,\r | |
24 | IN OUT UINT32 *CrcOut\r | |
25 | )\r | |
26 | /*++\r | |
27 | \r | |
28 | Routine Description:\r | |
29 | \r | |
30 | The CalculateCrc32 routine.\r | |
31 | \r | |
32 | Arguments:\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 | |
39 | Returns:\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 |