/* Measure and log an action string, and extend the measurement result into RTMR. */
EFI_STATUS TdMeasureAction(IN UINT32 MrIndex, IN CHAR8 *String)
/* Measure and log an action string, and extend the measurement result into RTMR. */
EFI_STATUS TdMeasureAction(IN UINT32 MrIndex, IN CHAR8 *String)
{
  CC_EVENT_HDR  CcEvent;
  CcEvent.MrIndex   = MrIndex;
  CcEvent.EventType = EV_EFI_ACTION;
  CcEvent.EventSize = (UINT32)AsciiStrLen (String);
  return TdxDxeHashLogExtendEvent (
           0,
           (UINT8 *)String,
           CcEvent.EventSize,
           &CcEvent,
           (UINT8 *)String
           );
}