TianoCore EDK2 master
Loading...
Searching...
No Matches
TpmComm.c File Reference
#include "CommonHeader.h"

Go to the source code of this file.

Functions

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

Detailed Description

Basic TPM command functions.

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

Definition in file TpmComm.c.

Function Documentation

◆ 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 23 of file TpmComm.c.