| // This file was extracted from the TCG Published |
| // Trusted Platform Module Library |
| // Level 00 Revision 01.16 |
| #include "InternalRoutines.h" |
| #include "DictionaryAttackLockReset_fp.h" |
| TPM2_DictionaryAttackLockReset( |
| DictionaryAttackLockReset_In *in // IN: input parameter list |
| // Input parameter is not reference in command action |
| // The command needs NV update. Check if NV is available. |
| // A TPM_RC_NV_UNAVAILABLE or TPM_RC_NV_RATE error may be returned at |
| result = NvIsAvailable(); |
| if(result != TPM_RC_SUCCESS) return result; |
| // Record the changes to NV |
| NvWriteReserved(NV_FAILED_TRIES, &gp.failedTries); |