SecurityPkg[all]
0.98
|
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) |
EFI_STATUS EFIAPI | Tpm12Extend (IN TPM_DIGEST *DigestToExtend, IN TPM_PCRINDEX PcrIndex, OUT TPM_DIGEST *NewPcrValue) |
EFI_STATUS EFIAPI | Tpm12PhysicalPresence (IN TPM_PHYSICAL_PRESENCE PhysicalPresence) |
EFI_STATUS EFIAPI | Tpm12ContinueSelfTest (VOID) |
EFI_STATUS EFIAPI | Tpm12GetCapabilityFlagPermanent (OUT TPM_PERMANENT_FLAGS *TpmPermanentFlags) |
EFI_STATUS EFIAPI | Tpm12GetCapabilityFlagVolatile (OUT TPM_STCLEAR_FLAGS *VolatileFlags) |
This library is used by other modules to send TPM12 command.
Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
EFI_STATUS EFIAPI Tpm12ContinueSelfTest | ( | VOID | ) |
Send TPM_ContinueSelfTest command to TPM.
EFI_SUCCESS | Operation completed successfully. |
EFI_TIMEOUT | The register can't run into the expected status in time. |
EFI_BUFFER_TOO_SMALL | Response data buffer is too small. |
EFI_DEVICE_ERROR | Unexpected device behavior. |
EFI_STATUS EFIAPI Tpm12Extend | ( | IN TPM_DIGEST * | DigestToExtend, |
IN TPM_PCRINDEX | PcrIndex, | ||
OUT TPM_DIGEST * | NewPcrValue | ||
) |
Extend a TPM PCR.
[in] | DigestToExtend | The 160 bit value representing the event to be recorded. |
[in] | PcrIndex | The PCR to be updated. |
[out] | NewPcrValue | New PCR value after extend. |
EFI_SUCCESS | Operation completed successfully. |
EFI_TIMEOUT | The register can't run into the expected status in time. |
EFI_BUFFER_TOO_SMALL | Response data buffer is too small. |
EFI_DEVICE_ERROR | Unexpected device behavior. |
EFI_STATUS EFIAPI Tpm12ForceClear | ( | VOID | ) |
Send ForceClear command to TPM1.2.
EFI_SUCCESS | Operation completed successfully. |
EFI_DEVICE_ERROR | Unexpected device behavior. |
EFI_STATUS EFIAPI Tpm12GetCapabilityFlagPermanent | ( | OUT TPM_PERMANENT_FLAGS * | TpmPermanentFlags | ) |
Get TPM capability permanent flags.
[out] | TpmPermanentFlags | Pointer to the buffer for returned flag structure. |
EFI_SUCCESS | Operation completed successfully. |
EFI_TIMEOUT | The register can't run into the expected status in time. |
EFI_BUFFER_TOO_SMALL | Response data buffer is too small. |
EFI_DEVICE_ERROR | Unexpected device behavior. |
EFI_STATUS EFIAPI Tpm12GetCapabilityFlagVolatile | ( | OUT TPM_STCLEAR_FLAGS * | VolatileFlags | ) |
Get TPM capability volatile flags.
[out] | VolatileFlags | Pointer to the buffer for returned flag structure. |
EFI_SUCCESS | Operation completed successfully. |
EFI_DEVICE_ERROR | The command was unsuccessful. |
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. |
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. |
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. |
EFI_STATUS EFIAPI Tpm12PhysicalPresence | ( | IN TPM_PHYSICAL_PRESENCE | PhysicalPresence | ) |
Send TSC_PhysicalPresence command to TPM.
[in] | PhysicalPresence | The state to set the TPMs Physical Presence flags. |
EFI_SUCCESS | Operation completed successfully. |
EFI_TIMEOUT | The register can't run into the expected status in time. |
EFI_BUFFER_TOO_SMALL | Response data buffer is too small. |
EFI_DEVICE_ERROR | Unexpected device behavior. |
EFI_STATUS EFIAPI Tpm12SaveState | ( | VOID | ) |
Send SaveState command to TPM1.2.
EFI_SUCCESS | Operation completed successfully. |
EFI_DEVICE_ERROR | Unexpected device behavior. |
EFI_STATUS EFIAPI Tpm12Startup | ( | IN TPM_STARTUP_TYPE | TpmSt | ) |
Send Startup command to TPM1.2.
TpmSt | Startup Type. |
EFI_SUCCESS | Operation completed successfully. |
EFI_DEVICE_ERROR | Unexpected device behavior. |