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

Go to the source code of this file.

Macros

#define RTMR_COUNT   4
 
#define TD_EXTEND_BUFFER_LEN   (64 + 48)
 

Functions

EFI_STATUS EFIAPI TdExtendRtmr (IN UINT32 *Data, IN UINT32 DataLen, IN UINT8 Index)
 

Variables

UINT8 mExtendBuffer [TD_EXTEND_BUFFER_LEN]
 

Detailed Description

Extends one of the RTMR measurement registers in TDCS with the provided extension data in memory.

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

Definition in file Rtmr.c.

Macro Definition Documentation

◆ RTMR_COUNT

#define RTMR_COUNT   4

Definition at line 19 of file Rtmr.c.

◆ TD_EXTEND_BUFFER_LEN

#define TD_EXTEND_BUFFER_LEN   (64 + 48)

Definition at line 20 of file Rtmr.c.

Function Documentation

◆ TdExtendRtmr()

EFI_STATUS EFIAPI TdExtendRtmr ( IN UINT32 *  Data,
IN UINT32  DataLen,
IN UINT8  Index 
)

This function extends one of the RTMR measurement register in TDCS with the provided extension data in memory. RTMR extending supports SHA384 which length is 48 bytes.

Parameters
[in]DataPoint to the data to be extended
[in]DataLenLength of the data. Must be 48
[in]IndexRTMR index
Returns
EFI_SUCCESS
EFI_INVALID_PARAMETER
EFI_DEVICE_ERROR

Definition at line 40 of file Rtmr.c.

Variable Documentation

◆ mExtendBuffer

UINT8 mExtendBuffer[TD_EXTEND_BUFFER_LEN]

Definition at line 22 of file Rtmr.c.