TianoCore EDK2 master
Loading...
Searching...
No Matches
Tpm2DictionaryAttack.c File Reference

Go to the source code of this file.

Data Structures

struct  TPM2_DICTIONARY_ATTACK_LOCK_RESET_COMMAND
 
struct  TPM2_DICTIONARY_ATTACK_LOCK_RESET_RESPONSE
 
struct  TPM2_DICTIONARY_ATTACK_PARAMETERS_COMMAND
 
struct  TPM2_DICTIONARY_ATTACK_PARAMETERS_RESPONSE
 

Functions

EFI_STATUS EFIAPI Tpm2DictionaryAttackLockReset (IN TPMI_RH_LOCKOUT LockHandle, IN TPMS_AUTH_COMMAND *AuthSession)
 
EFI_STATUS EFIAPI Tpm2DictionaryAttackParameters (IN TPMI_RH_LOCKOUT LockHandle, IN TPMS_AUTH_COMMAND *AuthSession, IN UINT32 NewMaxTries, IN UINT32 NewRecoveryTime, IN UINT32 LockoutRecovery)
 

Detailed Description

Implement TPM2 DictionaryAttack related command.

Copyright (c) 2013 - 2016, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file Tpm2DictionaryAttack.c.

Function Documentation

◆ Tpm2DictionaryAttackLockReset()

EFI_STATUS EFIAPI Tpm2DictionaryAttackLockReset ( IN TPMI_RH_LOCKOUT  LockHandle,
IN TPMS_AUTH_COMMAND AuthSession 
)

This command cancels the effect of a TPM lockout due to a number of successive authorization failures. If this command is properly authorized, the lockout counter is set to zero.

Parameters
[in]LockHandleTPM_RH_LOCKOUT
[in]AuthSessionAuth Session context
Return values
EFI_SUCCESSOperation completed successfully.
EFI_DEVICE_ERRORUnexpected device behavior.

Definition at line 61 of file Tpm2DictionaryAttack.c.

◆ Tpm2DictionaryAttackParameters()

EFI_STATUS EFIAPI Tpm2DictionaryAttackParameters ( IN TPMI_RH_LOCKOUT  LockHandle,
IN TPMS_AUTH_COMMAND AuthSession,
IN UINT32  NewMaxTries,
IN UINT32  NewRecoveryTime,
IN UINT32  LockoutRecovery 
)

This command cancels the effect of a TPM lockout due to a number of successive authorization failures. If this command is properly authorized, the lockout counter is set to zero.

Parameters
[in]LockHandleTPM_RH_LOCKOUT
[in]AuthSessionAuth Session context
[in]NewMaxTriesCount of authorization failures before the lockout is imposed
[in]NewRecoveryTimeTime in seconds before the authorization failure count is automatically decremented
[in]LockoutRecoveryTime in seconds after a lockoutAuth failure before use of lockoutAuth is allowed
Return values
EFI_SUCCESSOperation completed successfully.
EFI_DEVICE_ERRORUnexpected device behavior.

Definition at line 140 of file Tpm2DictionaryAttack.c.