| Previous | Next |
| TPM_20_E_MODE | TPM_20_E_HANDLE |
TPM_20_E_TYPE
TPM 2.0 structures frequently use a selector followed by a union whose active member is determined by that selector. A public object declared as RSA, ECC, keyed hash or symmetric cipher therefore has a different parameter branch and a different set of legal schemes. This error points to a type mismatch at that structural boundary.
Common causes
- The
typefield selects one public-object family while the parameter area was built for another. - A command expects a handle, hierarchy, scheme or algorithm interface type that differs from the supplied value.
- Serialization code uses an incorrect union selector or reuses a template after changing only one field.
Practical diagnosis
Dump both the selector and the union branch that was marshaled. Compare the request with the command-specific structure definition rather than converting the error to a generic “unsupported algorithm” message. A correctly supported algorithm can still be rejected when it appears in the wrong typed slot.
TCG: selector and union structure model · tpm2-tss: public template passed to CreatePrimary · tpm2_create: public object types
Looking for a different code? Search another status or error code.