/* If Buffer is NULL, then ASSERT(). If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). */
UINT32 FtwCalculateCrc32(IN VOID *Buffer, IN UINTN Length)
/* If Buffer is NULL, then ASSERT(). If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). */
UINT32 FtwCalculateCrc32(IN VOID *Buffer, IN UINTN Length)
{
  EFI_STATUS  Status;
  UINT32      ReturnValue;
  Status = gBS->CalculateCrc32 (Buffer, Length, &ReturnValue);
  ASSERT_EFI_ERROR (Status);
  return ReturnValue;
}