Home
last modified time | relevance | path

Searched refs:TcgEvent (Results 1 – 6 of 6) sorted by relevance

/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasurementLib/
DDxeTpmMeasurementLib.c58 TCG_PCR_EVENT *TcgEvent; in Tpm12MeasureAndLogData() local
62 TcgEvent = NULL; in Tpm12MeasureAndLogData()
72 TcgEvent = (TCG_PCR_EVENT *)AllocateZeroPool (sizeof (TCG_PCR_EVENT_HDR) + LogLen); in Tpm12MeasureAndLogData()
73 if(TcgEvent == NULL) { in Tpm12MeasureAndLogData()
77 TcgEvent->PCRIndex = PcrIndex; in Tpm12MeasureAndLogData()
78 TcgEvent->EventType = EventType; in Tpm12MeasureAndLogData()
79 TcgEvent->EventSize = LogLen; in Tpm12MeasureAndLogData()
80 CopyMem (&TcgEvent->Event[0], EventLog, LogLen); in Tpm12MeasureAndLogData()
87 TcgEvent, in Tpm12MeasureAndLogData()
92 FreePool (TcgEvent); in Tpm12MeasureAndLogData()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/
DDxeTpmMeasureBootLib.c140 TCG_PCR_EVENT *TcgEvent; in TcgMeasureGptTable() local
215 TcgEvent = (TCG_PCR_EVENT *) AllocateZeroPool (EventSize + sizeof (TCG_PCR_EVENT_HDR)); in TcgMeasureGptTable()
216 if (TcgEvent == NULL) { in TcgMeasureGptTable()
222 TcgEvent->PCRIndex = 5; in TcgMeasureGptTable()
223 TcgEvent->EventType = EV_EFI_GPT_EVENT; in TcgMeasureGptTable()
224 TcgEvent->EventSize = EventSize; in TcgMeasureGptTable()
225 GptData = (EFI_GPT_DATA *) TcgEvent->Event; in TcgMeasureGptTable()
256 (UINT64) TcgEvent->EventSize, in TcgMeasureGptTable()
258 TcgEvent, in TcgMeasureGptTable()
268 FreePool (TcgEvent); in TcgMeasureGptTable()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TcgDxe/
DTcgDxe.c717 TCG_PCR_EVENT *TcgEvent; in SetupEventLog() local
765 TcgEvent = GET_GUID_HOB_DATA (GuidHob.Guid); in SetupEventLog()
769 (TCG_PCR_EVENT_HDR*)TcgEvent, in SetupEventLog()
770 TcgEvent->Event in SetupEventLog()
792 TCG_PCR_EVENT_HDR TcgEvent; in TcgMeasureAction() local
794 TcgEvent.PCRIndex = 5; in TcgMeasureAction()
795 TcgEvent.EventType = EV_EFI_ACTION; in TcgMeasureAction()
796 TcgEvent.EventSize = (UINT32)AsciiStrLen (String); in TcgMeasureAction()
800 TcgEvent.EventSize, in TcgMeasureAction()
801 &TcgEvent, in TcgMeasureAction()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/
DTrEEDxe.c901 VOID *TcgEvent; in SetupEventLog() local
952 TcgEvent = GET_GUID_HOB_DATA (GuidHob.Guid); in SetupEventLog()
958 TcgEvent, in SetupEventLog()
960 ((TCG_PCR_EVENT*)TcgEvent)->Event, in SetupEventLog()
961 ((TCG_PCR_EVENT_HDR*)TcgEvent)->EventSize in SetupEventLog()
985 TCG_PCR_EVENT_HDR TcgEvent; in TcgMeasureAction() local
987 TcgEvent.PCRIndex = 5; in TcgMeasureAction()
988 TcgEvent.EventType = EV_EFI_ACTION; in TcgMeasureAction()
989 TcgEvent.EventSize = (UINT32)AsciiStrLen (String); in TcgMeasureAction()
993 TcgEvent.EventSize, in TcgMeasureAction()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/
DTcg2Dxe.c1370 VOID *TcgEvent; in SetupEventLog() local
1557TcgEvent = AllocateCopyPool (GET_GUID_HOB_DATA_SIZE (GuidHob.Guid), GET_GUID_HOB_DATA (GuidHob.… in SetupEventLog()
1558 ASSERT (TcgEvent != NULL); in SetupEventLog()
1564 TcgEvent, in SetupEventLog()
1566 ((TCG_PCR_EVENT*)TcgEvent)->Event, in SetupEventLog()
1567 ((TCG_PCR_EVENT_HDR*)TcgEvent)->EventSize in SetupEventLog()
1571 DigestListBin = (UINT8 *)TcgEvent + sizeof(TCG_PCRINDEX) + sizeof(TCG_EVENTTYPE); in SetupEventLog()
1604 TcgEvent, in SetupEventLog()
1611 FreePool (TcgEvent); in SetupEventLog()
1633 TCG_PCR_EVENT_HDR TcgEvent; in TcgMeasureAction() local
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Pei/
DTcg2Pei.c702 TCG_PCR_EVENT_HDR TcgEvent; in MeasureSeparatorEventWithError() local
709 TcgEvent.PCRIndex = PCRIndex; in MeasureSeparatorEventWithError()
710 TcgEvent.EventType = EV_SEPARATOR; in MeasureSeparatorEventWithError()
711 TcgEvent.EventSize = (UINT32)sizeof (EventData); in MeasureSeparatorEventWithError()
712 …return HashLogExtendEvent(0,(UINT8 *)&EventData, TcgEvent.EventSize, &TcgEvent,(UINT8 *)&EventData… in MeasureSeparatorEventWithError()