]>
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 | |
5 | This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | /**\r | |
16 | Tpm measure and log data, and extend the measurement result into a specific PCR.\r | |
17 | \r | |
18 | @param[in] PcrIndex PCR Index.\r | |
19 | @param[in] EventType Event type.\r | |
20 | @param[in] EventLog Measurement event log.\r | |
21 | @param[in] LogLen Event log length in bytes.\r | |
22 | @param[in] HashData The start of the data buffer to be hashed, extended.\r | |
23 | @param[in] HashDataLen The length, in bytes, of the buffer referenced by HashData\r | |
24 | \r | |
25 | @retval EFI_SUCCESS Operation completed successfully.\r | |
26 | @retval EFI_UNSUPPORTED TPM device not available.\r | |
27 | @retval EFI_OUT_OF_RESOURCES Out of memory.\r | |
28 | @retval EFI_DEVICE_ERROR The operation was unsuccessful.\r | |
29 | **/\r | |
30 | EFI_STATUS\r | |
31 | EFIAPI\r | |
32 | TpmMeasureAndLogData (\r | |
33 | IN UINT32 PcrIndex,\r | |
34 | IN UINT32 EventType,\r | |
35 | IN VOID *EventLog,\r | |
36 | IN UINT32 LogLen,\r | |
37 | IN VOID *HashData,\r | |
38 | IN UINT64 HashDataLen\r | |
39 | )\r | |
40 | {\r | |
41 | //\r | |
42 | // Do nothing, just return EFI_SUCCESS.\r | |
43 | //\r | |
44 | return EFI_SUCCESS;\r | |
45 | }\r |