TianoCore EDK2 master
|
#include <Uefi/UefiBaseType.h>
#include <Pi/PiFirmwareVolume.h>
#include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/ReportStatusCodeLib.h>
#include <Library/PcdLib.h>
#include <Library/PrintLib.h>
#include <Library/TcgEventLogRecordLib.h>
#include <Library/TpmMeasurementLib.h>
#include <IndustryStandard/UefiTcgPlatform.h>
Go to the source code of this file.
Functions | |
VOID * | TpmMeasurementGetFvName (IN EFI_PHYSICAL_ADDRESS FvBase, IN UINT64 FvLength) |
EFI_STATUS EFIAPI | MeasureFirmwareBlob (IN UINT32 PcrIndex, IN CHAR8 *Description OPTIONAL, IN EFI_PHYSICAL_ADDRESS FirmwareBlobBase, IN UINT64 FirmwareBlobLength) |
EFI_STATUS EFIAPI | MeasureHandoffTable (IN UINT32 PcrIndex, IN CHAR8 *Description OPTIONAL, IN EFI_GUID *TableGuid, IN VOID *TableAddress, IN UINTN TableLength) |
This library is used by other modules to measure data to TPM.
Copyright (c) 2020, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file TcgEventLogRecordLib.c.
EFI_STATUS EFIAPI MeasureFirmwareBlob | ( | IN UINT32 | PcrIndex, |
IN CHAR8 *Description | OPTIONAL, | ||
IN EFI_PHYSICAL_ADDRESS | FirmwareBlobBase, | ||
IN UINT64 | FirmwareBlobLength | ||
) |
Measure a FirmwareBlob.
[in] | PcrIndex | PcrIndex of the measurement. |
[in] | Description | Description for this FirmwareBlob. |
[in] | FirmwareBlobBase | Base address of this FirmwareBlob. |
[in] | FirmwareBlobLength | Size in bytes of this FirmwareBlob. |
EFI_SUCCESS | Operation completed successfully. |
EFI_UNSUPPORTED | TPM device not available. |
EFI_OUT_OF_RESOURCES | Out of memory. |
EFI_DEVICE_ERROR | The operation was unsuccessful. |
Definition at line 87 of file TcgEventLogRecordLib.c.
EFI_STATUS EFIAPI MeasureHandoffTable | ( | IN UINT32 | PcrIndex, |
IN CHAR8 *Description | OPTIONAL, | ||
IN EFI_GUID * | TableGuid, | ||
IN VOID * | TableAddress, | ||
IN UINTN | TableLength | ||
) |
Measure a HandoffTable.
[in] | PcrIndex | PcrIndex of the measurement. |
[in] | Description | Description for this HandoffTable. |
[in] | TableGuid | GUID of this HandoffTable. |
[in] | TableAddress | Base address of this HandoffTable. |
[in] | TableLength | Size in bytes of this HandoffTable. |
EFI_SUCCESS | Operation completed successfully. |
EFI_UNSUPPORTED | TPM device not available. |
EFI_OUT_OF_RESOURCES | Out of memory. |
EFI_DEVICE_ERROR | The operation was unsuccessful. |
Definition at line 157 of file TcgEventLogRecordLib.c.
VOID * TpmMeasurementGetFvName | ( | IN EFI_PHYSICAL_ADDRESS | FvBase, |
IN UINT64 | FvLength | ||
) |
Get the FvName from the FV header.
Causion: The FV is untrusted input.
[in] | FvBase | Base address of FV image. |
[in] | FvLength | Length of FV image. |
NULL | FvName is NOT found |
Definition at line 34 of file TcgEventLogRecordLib.c.