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