SecurityPkg/Include/Library/Tpm12CommandLib.h File Reference


Data Structures

struct  TPM12_PCR_SELECTION
struct  TPM12_PCR_INFO_SHORT
struct  TPM12_NV_DATA_PUBLIC

Functions

EFI_STATUS EFIAPI Tpm12Startup (IN TPM_STARTUP_TYPE TpmSt)
EFI_STATUS EFIAPI Tpm12SaveState (VOID)
EFI_STATUS EFIAPI Tpm12ForceClear (VOID)
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

This library is used by other modules to send TPM12 command.

Copyright (c) 2013 - 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.


Function Documentation

EFI_STATUS EFIAPI Tpm12ForceClear ( VOID   ) 

Send ForceClear command to TPM1.2.

Return values:
EFI_SUCCESS Operation completed successfully.
EFI_DEVICE_ERROR Unexpected device behavior.

References EFI_STATUS(), and Tpm12SubmitCommand().

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().

EFI_STATUS EFIAPI Tpm12SaveState ( VOID   ) 

Send SaveState command to TPM1.2.

Return values:
EFI_SUCCESS Operation completed successfully.
EFI_DEVICE_ERROR Unexpected device behavior.

References EFI_STATUS(), and Tpm12SubmitCommand().

EFI_STATUS EFIAPI Tpm12Startup ( IN TPM_STARTUP_TYPE  TpmSt  ) 

Send Startup command to TPM1.2.

Parameters:
TpmSt Startup Type.
Return values:
EFI_SUCCESS Operation completed successfully.
EFI_DEVICE_ERROR Unexpected device behavior.

References EFI_STATUS(), and Tpm12SubmitCommand().

Referenced by DetectTpmDevice().


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