SecurityPkg/Library/Tpm2CommandLib/Tpm2DictionaryAttack.c File Reference


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, 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 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] LockHandle TPM_RH_LOCKOUT
[in] AuthSession Auth Session context
Return values:
EFI_SUCCESS Operation completed successfully.
EFI_DEVICE_ERROR Unexpected device behavior.

References CopyAuthSessionCommand(), EFI_STATUS(), Tpm2SubmitCommand(), and UINTN().

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] LockHandle TPM_RH_LOCKOUT
[in] AuthSession Auth Session context
[in] NewMaxTries Count of authorization failures before the lockout is imposed
[in] NewRecoveryTime Time in seconds before the authorization failure count is automatically decremented
[in] LockoutRecovery Time in seconds after a lockoutAuth failure before use of lockoutAuth is allowed
Return values:
EFI_SUCCESS Operation completed successfully.
EFI_DEVICE_ERROR Unexpected device behavior.

References CopyAuthSessionCommand(), EFI_STATUS(), Tpm2SubmitCommand(), and UINTN().


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