/* This function calculates the UINT8 sum for the requested region. */
UINT8 CalculateSum8(IN UINT8 *Buffer, IN UINTN Size)
/* This function calculates the UINT8 sum for the requested region. */
UINT8 CalculateSum8(IN UINT8 *Buffer, IN UINTN Size)
{
  UINTN Index;
  UINT8 Sum;
  Sum = 0;
  for (Index = 0; Index < Size; Index++) {
    Sum = (UINT8) (Sum + Buffer[Index]);
  }
  return Sum;
}