| Previous | Next |
| TPM_E_KEYNOTFOUND | TPM_E_MIGRATEFAIL |
TPM_E_INAPPROPRIATE_ENC
TPM_E_INAPPROPRIATE_ENC reports an unacceptable encryption scheme in a TPM 1.2 request. It is a compatibility error between the requested operation, the selected key or object attributes, and the declared encryption parameters. It is not a statement that ciphertext has already been corrupted.
TPM 1.2 uses algorithm and parameter structures to define key behavior. A caller can therefore provide a well-formed key handle and a well-formed payload yet still ask for an encryption scheme the key or command does not permit.
What to compare
- The key’s public parameters and usage restrictions against the command’s encryption requirements.
- The exact scheme identifier and its parameter block, including any key-size and padding assumptions.
- The TPM generation: a scheme available through a TPM 2.0 provider is not automatically valid for a TPM 1.2 command.
Changing only the ciphertext or retrying transport will not correct a key/scheme compatibility failure.
References
- Microsoft: TPM HRESULT values in Winerror.h
- TCG TPM 1.2 Part 1: Design Principles
- TCG TPM 1.2 Part 2: Structures
Looking for a different code? Search another status or error code.