/* Computes and returns a 32-bit CRC for a data buffer. */
EFI_STATUS EFIAPI UnitTestCalculateCrc32(IN VOID *Data, IN UINTN DataSize, OUT UINT32 *Crc32)
/* Computes and returns a 32-bit CRC for a data buffer. */
EFI_STATUS EFIAPI UnitTestCalculateCrc32(IN VOID *Data, IN UINTN DataSize, OUT UINT32 *Crc32)
{
  if ((Data == NULL) || (Crc32 == NULL) || (DataSize == 0)) {
    return EFI_INVALID_PARAMETER;
  }
  *Crc32 = CalculateCrc32 (Data, DataSize);
  return EFI_SUCCESS;
}