What does HRESULT 0x80090003 (NTE_BAD_KEY) mean?

 
Previous Next
NTE_BAD_HASH NTE_BAD_LEN

NTE_BAD_KEY

NTE_BAD_KEY means that the key object supplied to the cryptographic operation is invalid for that call. A key can be unusable because it was imported incorrectly, created by another provider, or does not support the requested operation.

Recovery steps

  • Verify that the key handle is still valid and belongs to the provider context executing the call.
  • Confirm the key algorithm, key usage, and parameters are compatible with encryption, decryption, signing, or verification as applicable.
  • Reimport or reacquire the key from the correct container rather than reusing a failed handle.

Microsoft: security and setup HRESULT values


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