TianoCore EDK2 master
|
#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) |
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.
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().
[in] | Data | Raw data to be digested. |
[in] | DataLen | Size of the raw data. |
[out] | Digest | Pointer to a buffer that stores the final digest. |
EFI_SUCCESS | Always successfully calculate the final digest. |