TianoCore EDK2 master
Loading...
Searching...
No Matches
Tcg.h File Reference

Go to the source code of this file.

Data Structures

struct  _EDKII_TCG_PPI
 

Macros

#define EDKII_TCG_PRE_HASH   0x0000000000000001
 
#define EDKII_TCG_PRE_HASH_LOG_ONLY   0x0000000000000002
 

Typedefs

typedef struct _EDKII_TCG_PPI EDKII_TCG_PPI
 
typedef EFI_STATUS(EFIAPI * EDKII_TCG_HASH_LOG_EXTEND_EVENT) (IN EDKII_TCG_PPI *This, IN UINT64 Flags, IN UINT8 *HashData, IN UINTN HashDataLen, IN TCG_PCR_EVENT_HDR *NewEventHdr, IN UINT8 *NewEventData)
 

Variables

EFI_GUID gEdkiiTcgPpiGuid
 

Detailed Description

TCG PPI services.

Copyright (c) 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Tcg.h.

Macro Definition Documentation

◆ EDKII_TCG_PRE_HASH

#define EDKII_TCG_PRE_HASH   0x0000000000000001

Definition at line 19 of file Tcg.h.

◆ EDKII_TCG_PRE_HASH_LOG_ONLY

#define EDKII_TCG_PRE_HASH_LOG_ONLY   0x0000000000000002

Definition at line 24 of file Tcg.h.

Typedef Documentation

◆ EDKII_TCG_HASH_LOG_EXTEND_EVENT

typedef EFI_STATUS(EFIAPI * EDKII_TCG_HASH_LOG_EXTEND_EVENT) (IN EDKII_TCG_PPI *This, IN UINT64 Flags, IN UINT8 *HashData, IN UINTN HashDataLen, IN TCG_PCR_EVENT_HDR *NewEventHdr, IN UINT8 *NewEventData)

Tpm measure and log data, and extend the measurement result into a specific PCR.

Parameters
[in]ThisIndicates the calling context
[in]FlagsBitmap providing additional information
[in]HashDataIf BIT0 of Flags is 0, it is physical address of the start of the data buffer to be hashed, extended, and logged. If BIT0 of Flags is 1, it is physical address of the start of the pre-hash data buffter to be extended, and logged. The pre-hash data format is TPML_DIGEST_VALUES.
[in]HashDataLenThe length, in bytes, of the buffer referenced by HashData.
[in]NewEventHdrPointer to a TCG_PCR_EVENT_HDR data structure.
[in]NewEventDataPointer to the new event data.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_UNSUPPORTEDTPM device not available.
EFI_OUT_OF_RESOURCESOut of memory.
EFI_DEVICE_ERRORThe operation was unsuccessful.

Definition at line 46 of file Tcg.h.

◆ EDKII_TCG_PPI

typedef struct _EDKII_TCG_PPI EDKII_TCG_PPI

Definition at line 14 of file Tcg.h.