SecurityPkg/Library/Tpm12CommandLib/Tpm12NvStorage.c File Reference


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)

Detailed Description

Implement TPM1.2 NV storage related command.

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 Documentation

#define TPMCMDBUFLENGTH   1024


Function Documentation

EFI_STATUS EFIAPI Tpm12NvDefineSpace ( IN TPM12_NV_DATA_PUBLIC PubInfo,
IN TPM_ENCAUTH *  EncAuth 
)

Send NV DefineSpace command to TPM1.2.

Parameters:
PubInfo The public parameters of the NV area.
EncAuth The encrypted AuthData, only valid if the attributes require subsequent authorization.
Return values:
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.

Parameters:
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.
Return values:
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.

Parameters:
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.
Return values:
EFI_SUCCESS Operation completed successfully.
EFI_DEVICE_ERROR Unexpected device behavior.

References EFI_STATUS(), and Tpm12SubmitCommand().


Generated on Thu Sep 24 23:44:24 2015 for SecurityPkg[ALL] by  doxygen 1.5.7.1