What does NTSTATUS 0xC0290025 (STATUS_TPM_WRONG_ENTITYTYPE) mean?

 
Previous Next
STATUS_TPM_INVALID_KEYUSAGE STATUS_TPM_INVALID_POSTINIT

STATUS_TPM_WRONG_ENTITYTYPE

The TPM entity type is not allowed for the command

STATUS_TPM_WRONG_ENTITYTYPE is a Windows NTSTATUS value mapped from the TPM facility. For STATUS_TPM_WRONG_ENTITYTYPE, 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 TPM entity and handle classes. TPM commands distinguish key handles, authorization sessions, counters, owner entities, NV areas, and other resource classes. This status means the submitted entity type does not match what the command requires.

The handle may exist and still be wrong. Diagnose the class of the entity as well as its value. This commonly catches wrapper bugs where a session handle is passed in a key slot, an owner authorization is used where a key is expected, or a resource handle is retained after context virtualization changed its meaning.

Diagnostic focus

  • Log every handle with its intended TPM entity class.
  • Check command prototypes and marshaling order, especially for commands with multiple handles.
  • Verify that resource virtualization did not substitute or flush the entity before command submission.

References for STATUS_TPM_WRONG_ENTITYTYPE


Looking for a different code? Search another status or error code.