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