/* Calculates the checksum of the header of a file. The header is a zero byte checksum, so zero means header is good */
STATIC UINT8 CalculateHeaderChecksum(IN EFI_FFS_FILE_HEADER *FileHeader)
/* Calculates the checksum of the header of a file. The header is a zero byte checksum, so zero means header is good */
STATIC UINT8 CalculateHeaderChecksum(IN EFI_FFS_FILE_HEADER *FileHeader)
{
  UINT8  Sum;
  Sum = CalculateSum8 ((CONST VOID *)FileHeader, sizeof (EFI_FFS_FILE_HEADER));
  Sum = (UINT8)(Sum - FileHeader->State);
  Sum = (UINT8)(Sum - FileHeader->IntegrityCheck.Checksum.File);
  return Sum;
}