]> git.proxmox.com Git - mirror_edk2.git/blob - MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.c
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Library / TpmMeasurementLibNull / TpmMeasurementLibNull.c
1 /** @file
2 This library is used by other modules to measure data to TPM.
3
4 Copyright (c) 2015, Intel Corporation. All rights reserved. <BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
6
7 **/
8
9 /**
10 Tpm measure and log data, and extend the measurement result into a specific PCR.
11
12 @param[in] PcrIndex PCR Index.
13 @param[in] EventType Event type.
14 @param[in] EventLog Measurement event log.
15 @param[in] LogLen Event log length in bytes.
16 @param[in] HashData The start of the data buffer to be hashed, extended.
17 @param[in] HashDataLen The length, in bytes, of the buffer referenced by HashData
18
19 @retval EFI_SUCCESS Operation completed successfully.
20 @retval EFI_UNSUPPORTED TPM device not available.
21 @retval EFI_OUT_OF_RESOURCES Out of memory.
22 @retval EFI_DEVICE_ERROR The operation was unsuccessful.
23 **/
24 EFI_STATUS
25 EFIAPI
26 TpmMeasureAndLogData (
27 IN UINT32 PcrIndex,
28 IN UINT32 EventType,
29 IN VOID *EventLog,
30 IN UINT32 LogLen,
31 IN VOID *HashData,
32 IN UINT64 HashDataLen
33 )
34 {
35 //
36 // Do nothing, just return EFI_SUCCESS.
37 //
38 return EFI_SUCCESS;
39 }