/* Measure and log Separator event with error, and extend the measurement result into a specific PCR. */
EFI_STATUS MeasureSeparatorEventWithError(IN TPM_PCRINDEX PCRIndex)
/* Measure and log Separator event with error, and extend the measurement result into a specific PCR. */
EFI_STATUS MeasureSeparatorEventWithError(IN TPM_PCRINDEX PCRIndex)
{
  TCG_PCR_EVENT_HDR  TcgEvent;
  UINT32             EventData;
  EventData          = 0x1;
  TcgEvent.PCRIndex  = PCRIndex;
  TcgEvent.EventType = EV_SEPARATOR;
  TcgEvent.EventSize = (UINT32)sizeof (EventData);
  return HashLogExtendEvent (&mEdkiiTcgPpi, 0, (UINT8 *)&EventData, TcgEvent.EventSize, &TcgEvent, (UINT8 *)&EventData);
}