TianoCore EDK2 master
Loading...
Searching...
No Matches
TcgDxe.c File Reference

Go to the source code of this file.

Data Structures

struct  _TCG_DXE_DATA
 

Macros

#define TCG_DXE_DATA_FROM_THIS(this)    BASE_CR (this, TCG_DXE_DATA, TcgProtocol)
 

Typedefs

typedef struct _TCG_DXE_DATA TCG_DXE_DATA
 

Functions

EFI_STATUS GetProcessorsCpuLocation (OUT EFI_CPU_PHYSICAL_LOCATION **LocationBuf, OUT UINTN *Num)
 
EFI_STATUS EFIAPI TcgDxeStatusCheck (IN EFI_TCG_PROTOCOL *This, OUT TCG_EFI_BOOT_SERVICE_CAPABILITY *ProtocolCapability, OUT UINT32 *TCGFeatureFlags, OUT EFI_PHYSICAL_ADDRESS *EventLogLocation, OUT EFI_PHYSICAL_ADDRESS *EventLogLastEntry)
 
EFI_STATUS EFIAPI TpmCommHashAll (IN CONST UINT8 *Data, IN UINTN DataLen, OUT TPM_DIGEST *Digest)
 
EFI_STATUS EFIAPI TcgDxeHashAll (IN EFI_TCG_PROTOCOL *This, IN UINT8 *HashData, IN UINT64 HashDataLen, IN TCG_ALGORITHM_ID AlgorithmId, IN OUT UINT64 *HashedDataLen, IN OUT UINT8 **HashedDataResult)
 
EFI_STATUS TpmCommLogEvent (IN OUT UINT8 **EventLogPtr, IN OUT UINTN *LogSize, IN UINTN MaxSize, IN TCG_PCR_EVENT_HDR *NewEventHdr, IN UINT8 *NewEventData)
 
EFI_STATUS EFIAPI TcgDxeLogEventI (IN TCG_DXE_DATA *TcgData, IN TCG_PCR_EVENT_HDR *NewEventHdr, IN UINT8 *NewEventData)
 
EFI_STATUS EFIAPI TcgDxeLogEvent (IN EFI_TCG_PROTOCOL *This, IN TCG_PCR_EVENT *TCGLogData, IN OUT UINT32 *EventNumber, IN UINT32 Flags)
 
EFI_STATUS EFIAPI TcgDxePassThroughToTpm (IN EFI_TCG_PROTOCOL *This, IN UINT32 TpmInputParameterBlockSize, IN UINT8 *TpmInputParameterBlock, IN UINT32 TpmOutputParameterBlockSize, IN UINT8 *TpmOutputParameterBlock)
 
EFI_STATUS EFIAPI TcgDxeHashLogExtendEventI (IN TCG_DXE_DATA *TcgData, IN UINT8 *HashData, IN UINT64 HashDataLen, IN OUT TCG_PCR_EVENT_HDR *NewEventHdr, IN UINT8 *NewEventData)
 
EFI_STATUS EFIAPI TcgDxeHashLogExtendEvent (IN EFI_TCG_PROTOCOL *This, IN EFI_PHYSICAL_ADDRESS HashData, IN UINT64 HashDataLen, IN TPM_ALGORITHM_ID AlgorithmId, IN OUT TCG_PCR_EVENT *TCGLogData, IN OUT UINT32 *EventNumber, OUT EFI_PHYSICAL_ADDRESS *EventLogLastEntry)
 
EFI_STATUS EFIAPI SetupEventLog (VOID)
 
EFI_STATUS EFIAPI TcgMeasureAction (IN CHAR8 *String)
 
EFI_STATUS EFIAPI MeasureHandoffTables (VOID)
 
EFI_STATUS EFIAPI MeasureSeparatorEvent (IN TPM_PCRINDEX PCRIndex)
 
VOID *EFIAPI ReadVariable (IN CHAR16 *VarName, IN EFI_GUID *VendorGuid, OUT UINTN *VarSize)
 
EFI_STATUS EFIAPI MeasureVariable (IN TPM_PCRINDEX PCRIndex, IN TCG_EVENTTYPE EventType, IN CHAR16 *VarName, IN EFI_GUID *VendorGuid, IN VOID *VarData, IN UINTN VarSize)
 
EFI_STATUS EFIAPI ReadAndMeasureBootVariable (IN CHAR16 *VarName, IN EFI_GUID *VendorGuid, OUT UINTN *VarSize, OUT VOID **VarData)
 
EFI_STATUS EFIAPI MeasureAllBootVariables (VOID)
 
VOID EFIAPI OnReadyToBoot (IN EFI_EVENT Event, IN VOID *Context)
 
VOID EFIAPI InstallAcpiTable (IN EFI_EVENT Event, IN VOID *Context)
 
VOID EFIAPI OnExitBootServices (IN EFI_EVENT Event, IN VOID *Context)
 
VOID EFIAPI OnExitBootServicesFailed (IN EFI_EVENT Event, IN VOID *Context)
 
EFI_STATUS GetTpmStatus (OUT BOOLEAN *TPMDeactivatedFlag)
 
EFI_STATUS EFIAPI DriverEntry (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Variables

EFI_TCG_CLIENT_ACPI_TABLE mTcgClientAcpiTemplate
 
EFI_TCG_SERVER_ACPI_TABLE mTcgServerAcpiTemplate
 
UINTN mBootAttempts = 0
 
CHAR16 mBootVarName [] = L"BootOrder"
 
TCG_DXE_DATA mTcgDxeData
 

Detailed Description

This module implements TCG EFI Protocol.

Caution: This module requires additional review when modified. This driver will have external input - TcgDxePassThroughToTpm This external input must be validated carefully to avoid security issue like buffer overflow, integer overflow.

TcgDxePassThroughToTpm() will receive untrusted input and do basic validation.

Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file TcgDxe.c.

Macro Definition Documentation

◆ TCG_DXE_DATA_FROM_THIS

#define TCG_DXE_DATA_FROM_THIS (   this)     BASE_CR (this, TCG_DXE_DATA, TcgProtocol)

Definition at line 51 of file TcgDxe.c.

Function Documentation

◆ DriverEntry()

EFI_STATUS EFIAPI DriverEntry ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

The driver's entry point.

It publishes EFI TCG Protocol.

Parameters
[in]ImageHandleThe firmware allocated handle for the EFI image.
[in]SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe entry point is executed successfully.
otherSome error occurs when executing this entry point.

Definition at line 1377 of file TcgDxe.c.

◆ GetProcessorsCpuLocation()

EFI_STATUS GetProcessorsCpuLocation ( OUT EFI_CPU_PHYSICAL_LOCATION **  LocationBuf,
OUT UINTN Num 
)

Get All processors EFI_CPU_LOCATION in system. LocationBuf is allocated inside the function Caller is responsible to free LocationBuf.

Parameters
[out]LocationBufReturns Processor Location Buffer.
[out]NumReturns processor number.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_UNSUPPORTEDMpService protocol not found.

Definition at line 134 of file TcgDxe.c.

◆ GetTpmStatus()

EFI_STATUS GetTpmStatus ( OUT BOOLEAN *  TPMDeactivatedFlag)

Get TPM Deactivated state.

Parameters
[out]TPMDeactivatedFlagReturns TPM Deactivated state.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_DEVICE_ERRORThe operation was unsuccessful.

Definition at line 1348 of file TcgDxe.c.

◆ InstallAcpiTable()

VOID EFIAPI InstallAcpiTable ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Install TCG ACPI Table when ACPI Table Protocol is available.

A system's firmware uses an ACPI table to identify the system's TCG capabilities to the Post-Boot environment. The information in this ACPI table is not guaranteed to be valid until the Host Platform transitions from pre-boot state to post-boot state.

Parameters
[in]EventEvent whose notification function is being invoked
[in]ContextPointer to the notification function's context

Definition at line 1206 of file TcgDxe.c.

◆ MeasureAllBootVariables()

EFI_STATUS EFIAPI MeasureAllBootVariables ( VOID  )

Measure and log all EFI boot variables, and extend the measurement result into a specific PCR.

The EFI boot variables are BootOrder and Boot#### variables.

Return values
EFI_SUCCESSOperation completed successfully.
EFI_OUT_OF_RESOURCESOut of memory.
EFI_DEVICE_ERRORThe operation was unsuccessful.

Definition at line 1061 of file TcgDxe.c.

◆ MeasureHandoffTables()

EFI_STATUS EFIAPI MeasureHandoffTables ( VOID  )

Measure and log EFI handoff tables, and extend the measurement result into PCR[1].

Return values
EFI_SUCCESSOperation completed successfully.
EFI_DEVICE_ERRORThe operation was unsuccessful.

Definition at line 812 of file TcgDxe.c.

◆ MeasureSeparatorEvent()

EFI_STATUS EFIAPI MeasureSeparatorEvent ( IN TPM_PCRINDEX  PCRIndex)

Measure and log Separator event, and extend the measurement result into a specific PCR.

Parameters
[in]PCRIndexPCR index.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_DEVICE_ERRORThe operation was unsuccessful.

Definition at line 867 of file TcgDxe.c.

◆ MeasureVariable()

EFI_STATUS EFIAPI MeasureVariable ( IN TPM_PCRINDEX  PCRIndex,
IN TCG_EVENTTYPE  EventType,
IN CHAR16 *  VarName,
IN EFI_GUID VendorGuid,
IN VOID *  VarData,
IN UINTN  VarSize 
)

Measure and log an EFI variable, and extend the measurement result into a specific PCR.

Parameters
[in]PCRIndexPCR Index.
[in]EventTypeEvent type.
[in]VarNameA Null-terminated string that is the name of the vendor's variable.
[in]VendorGuidA unique identifier for the vendor.
[in]VarDataThe content of the variable data.
[in]VarSizeThe size of the variable data.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_OUT_OF_RESOURCESOut of memory.
EFI_DEVICE_ERRORThe operation was unsuccessful.

Definition at line 959 of file TcgDxe.c.

◆ OnExitBootServices()

VOID EFIAPI OnExitBootServices ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Exit Boot Services Event notification handler.

Measure invocation and success of ExitBootServices.

Parameters
[in]EventEvent whose notification function is being invoked
[in]ContextPointer to the notification function's context

Definition at line 1281 of file TcgDxe.c.

◆ OnExitBootServicesFailed()

VOID EFIAPI OnExitBootServicesFailed ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Exit Boot Services Failed Event notification handler.

Measure Failure of ExitBootServices.

Parameters
[in]EventEvent whose notification function is being invoked
[in]ContextPointer to the notification function's context

Definition at line 1320 of file TcgDxe.c.

◆ OnReadyToBoot()

VOID EFIAPI OnReadyToBoot ( IN EFI_EVENT  Event,
IN VOID *  Context 
)

Ready to Boot Event notification handler.

Sequence of OS boot events is measured in this event notification handler.

Parameters
[in]EventEvent whose notification function is being invoked
[in]ContextPointer to the notification function's context

Definition at line 1119 of file TcgDxe.c.

◆ ReadAndMeasureBootVariable()

EFI_STATUS EFIAPI ReadAndMeasureBootVariable ( IN CHAR16 *  VarName,
IN EFI_GUID VendorGuid,
OUT UINTN VarSize,
OUT VOID **  VarData 
)

Read then Measure and log an EFI boot variable, and extend the measurement result into PCR[5].

Parameters
[in]VarNameA Null-terminated string that is the name of the vendor's variable.
[in]VendorGuidA unique identifier for the vendor.
[out]VarSizeThe size of the variable data.
[out]VarDataPointer to the content of the variable.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_OUT_OF_RESOURCESOut of memory.
EFI_DEVICE_ERRORThe operation was unsuccessful.

Definition at line 1024 of file TcgDxe.c.

◆ ReadVariable()

VOID *EFIAPI ReadVariable ( IN CHAR16 *  VarName,
IN EFI_GUID VendorGuid,
OUT UINTN VarSize 
)

Read an EFI Variable.

This function allocates a buffer to return the contents of the variable. The caller is responsible for freeing the buffer.

Parameters
[in]VarNameA Null-terminated string that is the name of the vendor's variable.
[in]VendorGuidA unique identifier for the vendor.
[out]VarSizeThe size of the variable data.
Returns
A pointer to the buffer to return the contents of the variable.Otherwise NULL.

Definition at line 902 of file TcgDxe.c.

◆ SetupEventLog()

EFI_STATUS EFIAPI SetupEventLog ( VOID  )

Initialize the Event Log and log events passed from the PEI phase.

Return values
EFI_SUCCESSOperation completed successfully.
EFI_OUT_OF_RESOURCESOut of memory.

Definition at line 707 of file TcgDxe.c.

◆ TcgDxeHashAll()

EFI_STATUS EFIAPI TcgDxeHashAll ( IN EFI_TCG_PROTOCOL This,
IN UINT8 *  HashData,
IN UINT64  HashDataLen,
IN TCG_ALGORITHM_ID  AlgorithmId,
IN OUT UINT64 *  HashedDataLen,
IN OUT UINT8 **  HashedDataResult 
)

This service abstracts the capability to do a hash operation on a data buffer.

Parameters
[in]ThisIndicates the calling context
[in]HashDataPointer to the data buffer to be hashed
[in]HashDataLenLength of the data buffer to be hashed
[in]AlgorithmIdIdentification of the Algorithm to use for the hashing operation
[in,out]HashedDataLenResultant length of the hashed data
[in,out]HashedDataResultResultant buffer of the hashed data
Return values
EFI_SUCCESSOperation completed successfully.
EFI_INVALID_PARAMETERHashDataLen is NULL.
EFI_INVALID_PARAMETERHashDataLenResult is NULL.
EFI_OUT_OF_RESOURCESCannot allocate buffer of size *HashedDataLen.
EFI_UNSUPPORTEDAlgorithmId not supported.
EFI_BUFFER_TOO_SMALL*HashedDataLen < sizeof (TCG_DIGEST).

Definition at line 320 of file TcgDxe.c.

◆ TcgDxeHashLogExtendEvent()

EFI_STATUS EFIAPI TcgDxeHashLogExtendEvent ( IN EFI_TCG_PROTOCOL This,
IN EFI_PHYSICAL_ADDRESS  HashData,
IN UINT64  HashDataLen,
IN TPM_ALGORITHM_ID  AlgorithmId,
IN OUT TCG_PCR_EVENT TCGLogData,
IN OUT UINT32 *  EventNumber,
OUT EFI_PHYSICAL_ADDRESS EventLogLastEntry 
)

This service abstracts the capability to do a hash operation on a data buffer, extend a specific TPM PCR with the hash result, and add an entry to the Event Log

Parameters
[in]ThisIndicates the calling context
[in]HashDataPhysical address of the start of the data buffer to be hashed, extended, and logged.
[in]HashDataLenThe length, in bytes, of the buffer referenced by HashData
[in]AlgorithmIdIdentification of the Algorithm to use for the hashing operation
[in,out]TCGLogDataThe physical address of the start of the data buffer containing the TCG_PCR_EVENT data structure.
[in,out]EventNumberThe event number of the event just logged.
[out]EventLogLastEntryPhysical address of the first byte of the entry just placed in the Event Log. If the Event Log was empty when this function was called then this physical address will be the same as the physical address of the start of the Event Log.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_UNSUPPORTEDAlgorithmId != TPM_ALG_SHA.
EFI_UNSUPPORTEDCurrent TPL >= EFI_TPL_CALLBACK.
EFI_DEVICE_ERRORThe command was unsuccessful.

Definition at line 630 of file TcgDxe.c.

◆ TcgDxeHashLogExtendEventI()

EFI_STATUS EFIAPI TcgDxeHashLogExtendEventI ( IN TCG_DXE_DATA TcgData,
IN UINT8 *  HashData,
IN UINT64  HashDataLen,
IN OUT TCG_PCR_EVENT_HDR NewEventHdr,
IN UINT8 *  NewEventData 
)

Do a hash operation on a data buffer, extend a specific TPM PCR with the hash result, and add an entry to the Event Log.

Parameters
[in]TcgDataTCG_DXE_DATA structure.
[in]HashDataPhysical address of the start of the data buffer to be hashed, extended, and logged.
[in]HashDataLenThe length, in bytes, of the buffer referenced by HashData
[in,out]NewEventHdrPointer to a TCG_PCR_EVENT_HDR data structure.
[in]NewEventDataPointer to the new event data.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_OUT_OF_RESOURCESNo enough memory to log the new event.
EFI_DEVICE_ERRORThe command was unsuccessful.

Definition at line 555 of file TcgDxe.c.

◆ TcgDxeLogEvent()

EFI_STATUS EFIAPI TcgDxeLogEvent ( IN EFI_TCG_PROTOCOL This,
IN TCG_PCR_EVENT TCGLogData,
IN OUT UINT32 *  EventNumber,
IN UINT32  Flags 
)

This service abstracts the capability to add an entry to the Event Log.

Parameters
[in]ThisIndicates the calling context
[in]TCGLogDataPointer to the start of the data buffer containing the TCG_PCR_EVENT data structure. All fields in this structure are properly filled by the caller.
[in,out]EventNumberThe event number of the event just logged
[in]FlagsIndicate additional flags. Only one flag has been defined at this time, which is 0x01 and means the extend operation should not be performed. All other bits are reserved.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_OUT_OF_RESOURCESInsufficient memory in the event log to complete this action.

Definition at line 470 of file TcgDxe.c.

◆ TcgDxeLogEventI()

EFI_STATUS EFIAPI TcgDxeLogEventI ( IN TCG_DXE_DATA TcgData,
IN TCG_PCR_EVENT_HDR NewEventHdr,
IN UINT8 *  NewEventData 
)

Add a new entry to the Event Log.

Parameters
[in]TcgDataTCG_DXE_DATA structure.
[in]NewEventHdrPointer to a TCG_PCR_EVENT_HDR data structure.
[in]NewEventDataPointer to the new event data.
Return values
EFI_SUCCESSThe new event log entry was added.
EFI_OUT_OF_RESOURCESNo enough memory to log the new event.

Definition at line 424 of file TcgDxe.c.

◆ TcgDxePassThroughToTpm()

EFI_STATUS EFIAPI TcgDxePassThroughToTpm ( IN EFI_TCG_PROTOCOL This,
IN UINT32  TpmInputParameterBlockSize,
IN UINT8 *  TpmInputParameterBlock,
IN UINT32  TpmOutputParameterBlockSize,
IN UINT8 *  TpmOutputParameterBlock 
)

This service is a proxy for commands to the TPM.

Parameters
[in]ThisIndicates the calling context
[in]TpmInputParameterBlockSizeSize of the TPM input parameter block
[in]TpmInputParameterBlockPointer to the TPM input parameter block
[in]TpmOutputParameterBlockSizeSize of the TPM output parameter block
[in]TpmOutputParameterBlockPointer to the TPM output parameter block
Return values
EFI_SUCCESSOperation completed successfully.
EFI_INVALID_PARAMETERInvalid ordinal.
EFI_UNSUPPORTEDCurrent Task Priority Level >= EFI_TPL_CALLBACK.
EFI_TIMEOUTThe TIS timed-out.

Definition at line 513 of file TcgDxe.c.

◆ TcgDxeStatusCheck()

EFI_STATUS EFIAPI TcgDxeStatusCheck ( IN EFI_TCG_PROTOCOL This,
OUT TCG_EFI_BOOT_SERVICE_CAPABILITY ProtocolCapability,
OUT UINT32 *  TCGFeatureFlags,
OUT EFI_PHYSICAL_ADDRESS EventLogLocation,
OUT EFI_PHYSICAL_ADDRESS EventLogLastEntry 
)

This service provides EFI protocol capability information, state information about the TPM, and Event Log state information.

Parameters
[in]ThisIndicates the calling context
[out]ProtocolCapabilityThe callee allocates memory for a TCG_BOOT_SERVICE_CAPABILITY structure and fills in the fields with the EFI protocol capability information and the current TPM state information.
[out]TCGFeatureFlagsThis is a pointer to the feature flags. No feature flags are currently defined so this parameter MUST be set to 0. However, in the future, feature flags may be defined that, for example, enable hash algorithm agility.
[out]EventLogLocationThis is a pointer to the address of the event log in memory.
[out]EventLogLastEntryIf the Event Log contains more than one entry, this is a pointer to the address of the start of the last entry in the event log in memory.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_INVALID_PARAMETERProtocolCapability does not match TCG capability.

Definition at line 227 of file TcgDxe.c.

◆ TcgMeasureAction()

EFI_STATUS EFIAPI TcgMeasureAction ( IN CHAR8 *  String)

Measure and log an action string, and extend the measurement result into PCR[5].

Parameters
[in]StringA specific string that indicates an Action event.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_DEVICE_ERRORThe operation was unsuccessful.

Definition at line 785 of file TcgDxe.c.

◆ TpmCommHashAll()

EFI_STATUS EFIAPI TpmCommHashAll ( IN CONST UINT8 *  Data,
IN UINTN  DataLen,
OUT TPM_DIGEST Digest 
)

Single function calculates SHA1 digest value for all raw data. It combines Sha1Init(), Sha1Update() and Sha1Final().

Parameters
[in]DataRaw data to be digested.
[in]DataLenSize of the raw data.
[out]DigestPointer to a buffer that stores the final digest.
Return values
EFI_SUCCESSAlways successfully calculate the final digest.

Definition at line 278 of file TcgDxe.c.

◆ TpmCommLogEvent()

EFI_STATUS TpmCommLogEvent ( IN OUT UINT8 **  EventLogPtr,
IN OUT UINTN LogSize,
IN UINTN  MaxSize,
IN TCG_PCR_EVENT_HDR NewEventHdr,
IN UINT8 *  NewEventData 
)

Add a new entry to the Event Log.

Parameters
[in,out]EventLogPtrPointer to the Event Log data.
[in,out]LogSizeSize of the Event Log.
[in]MaxSizeMaximum size of the Event Log.
[in]NewEventHdrPointer to a TCG_PCR_EVENT_HDR data structure.
[in]NewEventDataPointer to the new event data.
Return values
EFI_SUCCESSThe new event log entry was added.
EFI_OUT_OF_RESOURCESNo enough memory to log the new event.

Definition at line 378 of file TcgDxe.c.

Variable Documentation

◆ mBootAttempts

UINTN mBootAttempts = 0

Definition at line 119 of file TcgDxe.c.

◆ mBootVarName

CHAR16 mBootVarName[] = L"BootOrder"

Definition at line 120 of file TcgDxe.c.

◆ mTcgClientAcpiTemplate

EFI_TCG_CLIENT_ACPI_TABLE mTcgClientAcpiTemplate
Initial value:
= {
{
sizeof (mTcgClientAcpiTemplate),
0x02
},
0,
0,
(EFI_PHYSICAL_ADDRESS)(SIZE_4GB - 1)
}
#define EFI_ACPI_3_0_TRUSTED_COMPUTING_PLATFORM_ALLIANCE_CAPABILITIES_TABLE_SIGNATURE
Definition: Acpi30.h:713
UINT64 EFI_PHYSICAL_ADDRESS
Definition: UefiBaseType.h:50

Definition at line 63 of file TcgDxe.c.

◆ mTcgDxeData

TCG_DXE_DATA mTcgDxeData
Initial value:
= {
{
},
{
sizeof (mTcgDxeData.BsCap),
{ 1, 2, 0, 0 },
{ 1, 2, 0, 0 },
1,
},
&mTcgClientAcpiTemplate,
&mTcgServerAcpiTemplate,
0,
}
#define NULL
Definition: Base.h:319
#define TRUE
Definition: Base.h:301
#define FALSE
Definition: Base.h:307
EFI_STATUS EFIAPI TcgDxeHashLogExtendEvent(IN EFI_TCG_PROTOCOL *This, IN EFI_PHYSICAL_ADDRESS HashData, IN UINT64 HashDataLen, IN TPM_ALGORITHM_ID AlgorithmId, IN OUT TCG_PCR_EVENT *TCGLogData, IN OUT UINT32 *EventNumber, OUT EFI_PHYSICAL_ADDRESS *EventLogLastEntry)
Definition: TcgDxe.c:630
EFI_STATUS EFIAPI TcgDxeStatusCheck(IN EFI_TCG_PROTOCOL *This, OUT TCG_EFI_BOOT_SERVICE_CAPABILITY *ProtocolCapability, OUT UINT32 *TCGFeatureFlags, OUT EFI_PHYSICAL_ADDRESS *EventLogLocation, OUT EFI_PHYSICAL_ADDRESS *EventLogLastEntry)
Definition: TcgDxe.c:227
EFI_STATUS EFIAPI TcgDxeLogEvent(IN EFI_TCG_PROTOCOL *This, IN TCG_PCR_EVENT *TCGLogData, IN OUT UINT32 *EventNumber, IN UINT32 Flags)
Definition: TcgDxe.c:470
EFI_STATUS EFIAPI TcgDxePassThroughToTpm(IN EFI_TCG_PROTOCOL *This, IN UINT32 TpmInputParameterBlockSize, IN UINT8 *TpmInputParameterBlock, IN UINT32 TpmOutputParameterBlockSize, IN UINT8 *TpmOutputParameterBlock)
Definition: TcgDxe.c:513
EFI_STATUS EFIAPI TcgDxeHashAll(IN EFI_TCG_PROTOCOL *This, IN UINT8 *HashData, IN UINT64 HashDataLen, IN TCG_ALGORITHM_ID AlgorithmId, IN OUT UINT64 *HashedDataLen, IN OUT UINT8 **HashedDataResult)
Definition: TcgDxe.c:320

Definition at line 676 of file TcgDxe.c.

◆ mTcgServerAcpiTemplate

EFI_TCG_SERVER_ACPI_TABLE mTcgServerAcpiTemplate

Definition at line 84 of file TcgDxe.c.