VirtualBox

source: vbox/trunk/src/VBox/Devices/EFI/FirmwareNew/MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurementLibNull.c@ 77662

最後變更 在這個檔案從77662是 77662,由 vboxsync 提交於 6 年 前

EFI: First step in UDK2018 merge. Does not build yet.

  • 屬性 svn:eol-style 設為 native
檔案大小: 1.5 KB
 
1/** @file
2 This library is used by other modules to measure data to TPM.
3
4Copyright (c) 2015, Intel Corporation. All rights reserved. <BR>
5This program and the accompanying materials
6are licensed and made available under the terms and conditions of the BSD License
7which accompanies this distribution. The full text of the license may be found at
8http://opensource.org/licenses/bsd-license.php
9
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11WITHOUT 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**/
30EFI_STATUS
31EFIAPI
32TpmMeasureAndLogData (
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}
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette