| Previous | Next |
| TPM_E_INVALID_KEYHANDLE | TPM_E_INAPPROPRIATE_ENC |
TPM_E_KEYNOTFOUND
TPM_E_KEYNOTFOUND means the key handle points to an invalid key. The handle is syntactically acceptable enough to reach key lookup, but the TPM has no valid matching key object available for the requested operation.
This differs from TPM_E_INVALID_KEYHANDLE, which is a handle-interpretation problem. It also differs from authorization failure: no amount of changing authorization data will recover a key that is no longer loaded, has been invalidated, or belongs to a different TPM state.
Evidence to collect
- Whether the key was expected to be transient, loaded from a context blob, or persistent under the TPM 1.2 ownership model.
- Any preceding clear, ownership, reboot, firmware, or context-management event that could have changed key availability.
- The command sequence showing key creation or load followed by the failing use. This distinguishes a lifecycle bug from an external state change.
Use the application’s documented key-recovery or re-provisioning path; do not fabricate a replacement handle.
References
- Microsoft: TPM HRESULT values in Winerror.h
- TCG TPM 1.2 Part 2: Structures
- TCG TPM 1.2 Part 3: Commands
Looking for a different code? Search another status or error code.