What does HRESULT 0x80280019 (TPM_E_BAD_PARAM_SIZE) mean?

 
Previous Next
TPM_E_WRONGPCRVAL TPM_E_SHA_THREAD

TPM_E_BAD_PARAM_SIZE

TPM_E_BAD_PARAM_SIZE means the paramSize value in a TPM 1.2 command has the wrong value. This is a wire-format failure in the command envelope: the TPM cannot safely rely on the declared total input length.

It should be handled before investigating key policy, PCR state, or authorization. A corrupted length field can shift later fields, causing misleading secondary errors if the caller continues with a partially decoded request.

Checks that are specific to this result

  • Compute the serialized command length independently and compare it with the transmitted paramSize field.
  • Verify integer width, byte order, structure packing, and any transport wrapper that may add or remove bytes.
  • Compare the command tag, ordinal, and total length with the TPM 1.2 command definition; do not apply a TPM 2.0 header layout to a TPM 1.2 packet.

A retry with the same serialized bytes is expected to fail again. Correct the encoder or transport boundary first.

References


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