What does HRESULT 0x80091008 (CRYPT_E_INVALID_INDEX) mean?

 
Previous Next
CRYPT_E_HASH_VALUE CRYPT_E_ALREADY_DECRYPTED

CRYPT_E_INVALID_INDEX

The caller requested a signer, recipient, certificate, CRL, or attribute by an index that is no longer valid for the current message state.

What to check for CRYPT_E_INVALID_INDEX

  • Validate bounds against the count returned for the currently decoded message.
  • After deleting a signer, certificate, CRL, or unauthenticated attribute through CryptMsgControl, reacquire indices; Microsoft documents that existing indices can become invalid.
  • Do not reuse cached index values across a new message handle or a new decode operation.

Microsoft: CryptMsgControl

Microsoft: CryptMsgGetParam

Diagnostic interpretation

CRYPT_E_INVALID_INDEX has the HRESULT value 0x80091008. AllStat records the condition as “The index value is not valid.”.

Evidence to capture

  • Capture any IErrorInfo text, activity identifier, event-log entry, and subsystem trace that mentions this result or the crypt / index operation.
  • compare the failing machine with a working one at the same configuration boundary: component version, policy, registration, identity, and target resource.

Retry and recovery

” has changed.


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