Home
last modified time | relevance | path

Searched refs:EventSize (Results 1 – 11 of 11) sorted by relevance

/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Pei/
DTcg2Pei.c307 sizeof (*NewEventHdr) + NewEventHdr->EventSize in LogHashEvent()
316 CopyMem (HobData, NewEventData, NewEventHdr->EventSize); in LogHashEvent()
326 …ntType) + GetDigestListSize (DigestList) + sizeof(TcgPcrEvent2->EventSize) + NewEventHdr->EventSize in LogHashEvent()
338 CopyMem (DigestBuffer, &NewEventHdr->EventSize, sizeof(TcgPcrEvent2->EventSize)); in LogHashEvent()
339 DigestBuffer = DigestBuffer + sizeof(TcgPcrEvent2->EventSize); in LogHashEvent()
340 CopyMem (DigestBuffer, NewEventData, NewEventHdr->EventSize); in LogHashEvent()
428 TcgEventHdr.EventSize = (UINT32) StrSize((CHAR16*)PcdGetPtr (PcdFirmwareVersionString)); in MeasureCRTMVersion()
433 TcgEventHdr.EventSize, in MeasureCRTMVersion()
496 TcgEventHdr.EventSize = sizeof (FvBlob); in MeasureFvImage()
711 TcgEvent.EventSize = (UINT32)sizeof (EventData); in MeasureSeparatorEventWithError()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/Tcg2Dxe/
DTcg2Dxe.c366 DEBUG ((EFI_D_INFO, " EventSize - 0x%08x\n", EventHdr->EventSize)); in DumpEvent()
367 InternalDumpHex ((UINT8 *)(EventHdr + 1), EventHdr->EventSize); in DumpEvent()
452 UINT32 EventSize; in DumpEvent2() local
481 CopyMem (&EventSize, DigestBuffer, sizeof(TcgPcrEvent2->EventSize)); in DumpEvent2()
482 DEBUG ((EFI_D_INFO, " EventSize - 0x%08x\n", EventSize)); in DumpEvent2()
483 EventBuffer = DigestBuffer + sizeof(TcgPcrEvent2->EventSize); in DumpEvent2()
484 InternalDumpHex (EventBuffer, EventSize); in DumpEvent2()
504 UINT32 EventSize; in GetPcrEvent2Size() local
520 CopyMem (&EventSize, DigestBuffer, sizeof(TcgPcrEvent2->EventSize)); in GetPcrEvent2Size()
521 EventBuffer = DigestBuffer + sizeof(TcgPcrEvent2->EventSize); in GetPcrEvent2Size()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpm2MeasureBootLib/
DDxeTpm2MeasureBootLib.c144 UINT32 EventSize; in Tcg2MeasureGptTable() local
213 EventSize = (UINT32)(sizeof (EFI_GPT_DATA) - sizeof (GptData->Partitions) in Tcg2MeasureGptTable()
215 …Tcg2Event = (EFI_TCG2_EVENT *) AllocateZeroPool (EventSize + sizeof (EFI_TCG2_EVENT) - sizeof(Tcg2… in Tcg2MeasureGptTable()
222 Tcg2Event->Size = EventSize + sizeof (EFI_TCG2_EVENT) - sizeof(Tcg2Event->Event); in Tcg2MeasureGptTable()
258 (UINT64) EventSize, in Tcg2MeasureGptTable()
308 UINT32 EventSize; in Tcg2MeasurePeImage() local
317 EventSize = sizeof (*ImageLoad) - sizeof (ImageLoad->DevicePath) + FilePathSize; in Tcg2MeasurePeImage()
318 Tcg2Event = AllocateZeroPool (EventSize + sizeof (EFI_TCG2_EVENT) - sizeof(Tcg2Event->Event)); in Tcg2MeasurePeImage()
323 Tcg2Event->Size = EventSize + sizeof (EFI_TCG2_EVENT) - sizeof(Tcg2Event->Event); in Tcg2MeasurePeImage()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasureBootLib/
DDxeTpmMeasureBootLib.c142 UINT32 EventSize; in TcgMeasureGptTable() local
213 EventSize = (UINT32)(sizeof (EFI_GPT_DATA) - sizeof (GptData->Partitions) in TcgMeasureGptTable()
215 TcgEvent = (TCG_PCR_EVENT *) AllocateZeroPool (EventSize + sizeof (TCG_PCR_EVENT_HDR)); in TcgMeasureGptTable()
224 TcgEvent->EventSize = EventSize; in TcgMeasureGptTable()
256 (UINT64) TcgEvent->EventSize, in TcgMeasureGptTable()
324 UINT32 EventSize; in TcgMeasurePeImage() local
341 EventSize = sizeof (*ImageLoad) - sizeof (ImageLoad->DevicePath) + FilePathSize; in TcgMeasurePeImage()
342 TcgEvent = AllocateZeroPool (EventSize + sizeof (TCG_PCR_EVENT)); in TcgMeasurePeImage()
347 TcgEvent->EventSize = EventSize; in TcgMeasurePeImage()
/device/linaro/bootloader/edk2/MdePkg/Include/IndustryStandard/
DUefiTcgPlatform.h96 UINT32 EventSize; ///< Size of the event data member
109 UINT32 EventSize; member
187 UINT32 EventSize; member
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Foundation/Include/
DEfiTpm.h74 UINT32 EventSize; // Size of the event data member
85 UINT32 EventSize; member
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TcgDxe/
DTcgDxe.c398 if (NewEventHdr->EventSize > (UINTN)(~0) - sizeof (*NewEventHdr)) { in TpmCommLogEvent()
402 NewLogSize = sizeof (*NewEventHdr) + NewEventHdr->EventSize; in TpmCommLogEvent()
413 NewEventHdr->EventSize in TpmCommLogEvent()
796 TcgEvent.EventSize = (UINT32)AsciiStrLen (String); in TcgMeasureAction()
800 TcgEvent.EventSize, in TcgMeasureAction()
838 TcgEvent.EventSize = sizeof (HandoffTables); in MeasureHandoffTables()
880 TcgEvent.EventSize = (UINT32)sizeof (EventData); in MeasureSeparatorEvent()
978 TcgEvent.EventSize = (UINT32)(sizeof (*VarLog) + VarNameLength * sizeof (*VarName) + VarSize in MeasureVariable()
981 VarLog = (EFI_VARIABLE_DATA*)AllocatePool (TcgEvent.EventSize); in MeasureVariable()
1003 TcgEvent.EventSize, in MeasureVariable()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEPei/
DTrEEPei.c221 sizeof (*NewEventHdr) + NewEventHdr->EventSize in LogHashEvent()
230 CopyMem (HobData, NewEventData, NewEventHdr->EventSize); in LogHashEvent()
318 TcgEventHdr.EventSize = (UINT32) StrSize((CHAR16*)PcdGetPtr (PcdFirmwareVersionString)); in MeasureCRTMVersion()
323 TcgEventHdr.EventSize, in MeasureCRTMVersion()
386 TcgEventHdr.EventSize = sizeof (FvBlob); in MeasureFvImage()
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TrEEDxe/
DTrEEDxe.c411 DEBUG ((EFI_D_INFO, " EventSize - 0x%08x\n", EventHdr->EventSize)); in DumpEventLog()
412 InternalDumpHex ((UINT8 *)(EventHdr + 1), EventHdr->EventSize); in DumpEventLog()
413 …ventHdr = (TCG_PCR_EVENT_HDR *)((UINTN)EventHdr + sizeof(TCG_PCR_EVENT_HDR) + EventHdr->EventSize); in DumpEventLog()
665 NewEventHdr->EventSize in TcgDxeLogHashEvent()
791 NewEventHdr.EventSize = Event->Size - sizeof(UINT32) - Event->Header.HeaderSize; in TreeHashLogExtendEvent()
961 ((TCG_PCR_EVENT_HDR*)TcgEvent)->EventSize in SetupEventLog()
989 TcgEvent.EventSize = (UINT32)AsciiStrLen (String); in TcgMeasureAction()
993 TcgEvent.EventSize, in TcgMeasureAction()
1030 TcgEvent.EventSize = sizeof (HandoffTables); in MeasureHandoffTables()
1073 TcgEvent.EventSize = (UINT32)sizeof (EventData); in MeasureSeparatorEvent()
[all …]
/device/linaro/bootloader/edk2/SecurityPkg/Tcg/TcgPei/
DTcgPei.c291 sizeof (*NewEventHdr) + NewEventHdr->EventSize in HashLogExtendEvent()
300 CopyMem (HobData, NewEventData, NewEventHdr->EventSize); in HashLogExtendEvent()
340 TcgEventHdr.EventSize = (UINT32) StrSize((CHAR16*)PcdGetPtr (PcdFirmwareVersionString)); in MeasureCRTMVersion()
345 TcgEventHdr.EventSize, in MeasureCRTMVersion()
409 TcgEventHdr.EventSize = sizeof (FvBlob); in MeasureFvImage()
/device/linaro/bootloader/edk2/SecurityPkg/Library/DxeTpmMeasurementLib/
DDxeTpmMeasurementLib.c79 TcgEvent->EventSize = LogLen; in Tpm12MeasureAndLogData()