Crc32.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /** @file
  2. Header file for CalculateCrc32 routine
  3. Copyright (c) 2004 - 2018, Intel Corporation. All rights reserved.<BR>
  4. This program and the accompanying materials
  5. are licensed and made available under the terms and conditions of the BSD License
  6. which accompanies this distribution. The full text of the license may be found at
  7. http://opensource.org/licenses/bsd-license.php
  8. THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
  10. **/
  11. #ifndef _CRC32_H
  12. #define _CRC32_H
  13. #include <Common/UefiBaseTypes.h>
  14. EFI_STATUS
  15. CalculateCrc32 (
  16. IN UINT8 *Data,
  17. IN UINTN DataSize,
  18. IN OUT UINT32 *CrcOut
  19. )
  20. /*++
  21. Routine Description:
  22. The CalculateCrc32 routine.
  23. Arguments:
  24. Data - The buffer containing the data to be processed
  25. DataSize - The size of data to be processed
  26. CrcOut - A pointer to the caller allocated UINT32 that on
  27. contains the CRC32 checksum of Data
  28. Returns:
  29. EFI_SUCCESS - Calculation is successful.
  30. EFI_INVALID_PARAMETER - Data / CrcOut = NULL, or DataSize = 0
  31. --*/
  32. ;
  33. #endif