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

Go to the source code of this file.

Data Structures

struct  TPM_CMD_EXTEND
 
struct  TPM_RSP_EXTEND
 

Functions

EFI_STATUS EFIAPI Tpm12Extend (IN TPM_DIGEST *DigestToExtend, IN TPM_PCRINDEX PcrIndex, OUT TPM_DIGEST *NewPcrValue)
 

Detailed Description

Implement TPM1.2 PCR related commands.

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

Definition in file Tpm12Pcr.c.

Function Documentation

◆ Tpm12Extend()

EFI_STATUS EFIAPI Tpm12Extend ( IN TPM_DIGEST DigestToExtend,
IN TPM_PCRINDEX  PcrIndex,
OUT TPM_DIGEST NewPcrValue 
)

Extend a TPM PCR.

Parameters
[in]DigestToExtendThe 160 bit value representing the event to be recorded.
[in]PcrIndexThe PCR to be updated.
[out]NewPcrValueNew PCR value after extend.
Return values
EFI_SUCCESSOperation completed successfully.
EFI_TIMEOUTThe register can't run into the expected status in time.
EFI_BUFFER_TOO_SMALLResponse data buffer is too small.
EFI_DEVICE_ERRORUnexpected device behavior.

Definition at line 46 of file Tpm12Pcr.c.