Last change
on this file since 80924 was 80721, checked in by vboxsync, 5 years ago |
Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
1.2 KB
|
Line | |
---|
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 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.