| Previous | Next |
| STATUS_TPM_INSTALL_DISABLED | STATUS_TPM_KEYNOTFOUND |
STATUS_TPM_INVALID_KEYHANDLE
The key handle is not a valid TPM key handle
STATUS_TPM_INVALID_KEYHANDLE is a Windows NTSTATUS value mapped from the TPM facility. 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 loaded key handles and key slots. The command supplied a handle in a position where the TPM expected a loaded key, but the handle value does not decode as a valid key handle for this TPM context.
This is a handle-format or handle-class failure. It differs from a key-not-found response, where the handle may be syntactically recognizable but does not refer to a currently loaded key. In Windows, TBS context closing can also flush TPM objects, so a handle saved by one context may not remain usable by another.
Diagnostic focus
- Record the handle value, the command ordinal, and the TBS context that created the handle.
- Check whether the handle came from the same TPM context and was not used after context close or flush.
- Confirm that the handle type is key, not authorization session, counter, or another resource type.
References
- 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.
