| Previous | Next |
| STATUS_TPM_INVALID_KEYHANDLE | STATUS_TPM_INAPPROPRIATE_ENC |
STATUS_TPM_KEYNOTFOUND
The TPM key referenced by the handle is not loaded
STATUS_TPM_KEYNOTFOUND is a Windows NTSTATUS value mapped from the TPM facility. For STATUS_TPM_KEYNOTFOUND, in this package the code belongs to TPM 1.2 style command processing, where Windows software, TBS, the TPM driver, and the hardware device all may be visible in the same failure path.
The relevant area is key loading and transient TPM resources. The handle value was meaningful enough to be treated as a key reference, but the TPM does not currently have the key associated with that handle loaded.
This commonly appears when software assumes TPM handles are persistent across context closure, power transitions, process restarts, or resource virtualization boundaries. Re-load the parent/key chain and rebuild the handle state rather than retrying the same stale handle.
Diagnostic focus
- Log the load sequence that produced the handle and whether the TBS context is still open.
- Check for FlushSpecific, context close, power-management, or resource-virtualization events before the failure.
- Reload the key hierarchy in dependency order and compare the new handle with the stale one.
References for STATUS_TPM_KEYNOTFOUND
- TCG: TPM 1.2 Part 1 Design Principles
- TCG: TPM 1.2 Part 2 Structures of the TPM
- TCG: TPM 1.2 Part 3 Commands
- Microsoft: TPM Base Services
- Microsoft: Using TPM Base Services
- Microsoft: MS-ERREF NTSTATUS values
Looking for a different code? Search another status or error code.