TianoCore EDK2 master
|
#include <PiPei.h>
#include <Library/Tpm12CommandLib.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/Tpm12DeviceLib.h>
Go to the source code of this file.
Data Structures | |
struct | TPM_CMD_NV_DEFINE_SPACE |
struct | TPM_CMD_NV_READ_VALUE |
struct | TPM_RSP_NV_READ_VALUE |
struct | TPM_CMD_NV_WRITE_VALUE |
Macros | |
#define | TPMNVVALUELENGTH 1024 |
Functions | |
EFI_STATUS EFIAPI | Tpm12NvDefineSpace (IN TPM12_NV_DATA_PUBLIC *PubInfo, IN TPM_ENCAUTH *EncAuth) |
EFI_STATUS EFIAPI | Tpm12NvReadValue (IN TPM_NV_INDEX NvIndex, IN UINT32 Offset, IN OUT UINT32 *DataSize, OUT UINT8 *Data) |
EFI_STATUS EFIAPI | Tpm12NvWriteValue (IN TPM_NV_INDEX NvIndex, IN UINT32 Offset, IN UINT32 DataSize, IN UINT8 *Data) |
Implement TPM1.2 NV storage related command.
Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.
(C) Copyright 2016 Hewlett Packard Enterprise Development LP
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Tpm12NvStorage.c.
#define TPMNVVALUELENGTH 1024 |
Definition at line 20 of file Tpm12NvStorage.c.
EFI_STATUS EFIAPI Tpm12NvDefineSpace | ( | IN TPM12_NV_DATA_PUBLIC * | PubInfo, |
IN TPM_ENCAUTH * | EncAuth | ||
) |
Send NV DefineSpace command to TPM1.2.
PubInfo | The public parameters of the NV area. |
EncAuth | The encrypted AuthData, only valid if the attributes require subsequent authorization. |
EFI_SUCCESS | Operation completed successfully. |
EFI_DEVICE_ERROR | Unexpected device behavior. |
Definition at line 64 of file Tpm12NvStorage.c.
EFI_STATUS EFIAPI Tpm12NvReadValue | ( | IN TPM_NV_INDEX | NvIndex, |
IN UINT32 | Offset, | ||
IN OUT UINT32 * | DataSize, | ||
OUT UINT8 * | Data | ||
) |
Send NV ReadValue command to TPM1.2.
NvIndex | The index of the area to set. |
Offset | The offset into the area. |
DataSize | The size of the data area. |
Data | The data to set the area to. |
EFI_SUCCESS | Operation completed successfully. |
EFI_DEVICE_ERROR | Unexpected device behavior. |
Definition at line 129 of file Tpm12NvStorage.c.
EFI_STATUS EFIAPI Tpm12NvWriteValue | ( | IN TPM_NV_INDEX | NvIndex, |
IN UINT32 | Offset, | ||
IN UINT32 | DataSize, | ||
IN UINT8 * | Data | ||
) |
Send NV WriteValue command to TPM1.2.
NvIndex | The index of the area to set. |
Offset | The offset into the NV Area. |
DataSize | The size of the data parameter. |
Data | The data to set the area to. |
EFI_SUCCESS | Operation completed successfully. |
EFI_DEVICE_ERROR | Unexpected device behavior. |
Definition at line 191 of file Tpm12NvStorage.c.