| Previous | Next |
| TPMAPI_E_INVALID_ENCODING | TPMAPI_E_ENCRYPTION_FAILED |
TPMAPI_E_INVALID_KEY_SIZE
TPMAPI_E_INVALID_KEY_SIZE is a Windows TPM API result. It indicates that the key size is unsupported, malformed, or inconsistent with the selected algorithm and parameters.
What to check for TPMAPI_E_INVALID_KEY_SIZE
- Confirm that the requested algorithm and key size are supported by the target TPM and policy.
- Validate all size fields after importing or decoding a key blob.
- Use a supported key template instead of modifying only one field of an existing template.
Microsoft documentation for TPMAPI error codes
Diagnostic interpretation
This result has the HRESULT value 0x8029010F. AllStat records the condition as “The key size is not valid.”.
Evidence to capture
- Capture any IErrorInfo text, activity identifier, event-log entry, and subsystem trace that mentions this result or the tpmapi / key / size operation.
- check the documented return contract of the specific API because the same HRESULT can require different recovery in different interfaces.
Retry and recovery
” has changed.
Looking for a different code? Search another status or error code.
