/* Check if the CRC field in the Partition table header is valid for Partition entry array. */
BOOLEAN PartitionCheckGptEntryArrayCRC(IN EFI_PARTITION_TABLE_HEADER *PartHeader, IN EFI_PARTITION_ENTRY *PartEntry)
/* Check if the CRC field in the Partition table header is valid for Partition entry array. */
BOOLEAN PartitionCheckGptEntryArrayCRC(IN EFI_PARTITION_TABLE_HEADER *PartHeader, IN EFI_PARTITION_ENTRY *PartEntry)
{
  UINT32  Crc;
  UINTN   Size;
  Size = (UINTN)MultU64x32 (PartHeader->NumberOfPartitionEntries, PartHeader->SizeOfPartitionEntry);
  Crc  = CalculateCrc32 (PartEntry, Size);
  return (BOOLEAN)(PartHeader->PartitionEntryArrayCRC32 == Crc);
}