Defines | |
#define | TPMCMDBUFLENGTH 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) |
Copyright (c) 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#define TPMCMDBUFLENGTH 1024 |
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. |
References EFI_STATUS(), and Tpm12SubmitCommand().
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. |
References EFI_STATUS(), and Tpm12SubmitCommand().
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. |
References EFI_STATUS(), and Tpm12SubmitCommand().