TianoCore EDK2 master
|
#include <IndustryStandard/UefiTcgPlatform.h>
#include <Library/Tpm2CommandLib.h>
#include <Library/Tpm2DeviceLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
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) |
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.
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.
[in] | LockHandle | TPM_RH_LOCKOUT |
[in] | AuthSession | Auth Session context |
EFI_SUCCESS | Operation completed successfully. |
EFI_DEVICE_ERROR | Unexpected device behavior. |
Definition at line 61 of file Tpm2DictionaryAttack.c.
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.
[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 |
EFI_SUCCESS | Operation completed successfully. |
EFI_DEVICE_ERROR | Unexpected device behavior. |
Definition at line 140 of file Tpm2DictionaryAttack.c.