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

Go to the source code of this file.

Data Structures

struct  _EDKII_CC_PPI
 

Macros

#define EDKII_CC_PRE_HASH   0x0000000000000001
 
#define EDKII_CC_PRE_HASH_LOG_ONLY   0x0000000000000002
 

Typedefs

typedef struct _EDKII_CC_PPI EDKII_CC_PPI
 
typedef EFI_STATUS(EFIAPI * EDKII_CC_HASH_LOG_EXTEND_EVENT) (IN EDKII_CC_PPI *This, IN UINT64 Flags, IN EFI_PHYSICAL_ADDRESS HashData, IN UINTN HashDataLen, IN CC_EVENT_HDR *NewEventHdr, IN UINT8 *NewEventData)
 
typedef EFI_STATUS(EFIAPI * EDKII_CC_MAP_PCR_TO_MR_INDEX) (IN EDKII_CC_PPI *This, IN TCG_PCRINDEX PcrIndex, OUT EFI_CC_MR_INDEX *MrIndex)
 

Variables

EFI_GUID gEdkiiCcPpiGuid
 

Detailed Description

CC Measurement PPI services.

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

Definition in file CcMeasurement.h.

Macro Definition Documentation

◆ EDKII_CC_PRE_HASH

#define EDKII_CC_PRE_HASH   0x0000000000000001

Definition at line 19 of file CcMeasurement.h.

◆ EDKII_CC_PRE_HASH_LOG_ONLY

#define EDKII_CC_PRE_HASH_LOG_ONLY   0x0000000000000002

Definition at line 24 of file CcMeasurement.h.

Typedef Documentation

◆ EDKII_CC_HASH_LOG_EXTEND_EVENT

typedef EFI_STATUS(EFIAPI * EDKII_CC_HASH_LOG_EXTEND_EVENT) (IN EDKII_CC_PPI *This, IN UINT64 Flags, IN EFI_PHYSICAL_ADDRESS HashData, IN UINTN HashDataLen, IN CC_EVENT_HDR *NewEventHdr, IN UINT8 *NewEventData)

Do a hash operation on a data buffer, extend a specific RTMR with the hash result, and build a GUIDed HOB recording the event which will be passed to the DXE phase and added into the Event Log.

Parameters
[in]ThisIndicates the calling context
[in]FlagsBitmap providing additional information
[in]HashDataPhysical address of the start of the data buffer to be hashed.
[in]HashDataLenThe length, in bytes, of the buffer referenced by HashData.
[in]NewEventHdrPointer to a CC_EVENT_HDR data structure.
[in]NewEventDataPointer to the new event data.
Return values
EFI_SUCCESSOperation completed successfully.
OthersOther error as indicated

Definition at line 42 of file CcMeasurement.h.

◆ EDKII_CC_MAP_PCR_TO_MR_INDEX

typedef EFI_STATUS(EFIAPI * EDKII_CC_MAP_PCR_TO_MR_INDEX) (IN EDKII_CC_PPI *This, IN TCG_PCRINDEX PcrIndex, OUT EFI_CC_MR_INDEX *MrIndex)

The EDKII_CC_MEASUREMENT_PPI MapPcrToMrIndex function call provides callers the info on TPM PCR <-> CC MR mapping information.

Parameters
[in]ThisIndicates the calling context
[in]PcrIndexTPM PCR index.
[out]MrIndexCC MR index.
Return values
EFI_SUCCESSThe MrIndex is returned.
OthersOther error as indicated

Definition at line 64 of file CcMeasurement.h.

◆ EDKII_CC_PPI

typedef struct _EDKII_CC_PPI EDKII_CC_PPI

Definition at line 14 of file CcMeasurement.h.