What does HRESULT 0x80090002 (NTE_BAD_HASH) mean?

 
Previous Next
NTE_BAD_UID NTE_BAD_KEY

NTE_BAD_HASH

NTE_BAD_HASH means that the cryptographic provider rejected a hash object or hash value. The failure commonly appears when the hash handle, the selected algorithm, or the supplied data does not match the operation being requested.

How to diagnose it

  • Check that the hash was created by the same provider context used for the later operation.
  • Verify the selected hash algorithm, input bytes, and expected digest format.
  • Recreate the hash object instead of continuing with a handle that may already be invalid or finalized.

Microsoft: security and setup HRESULT values


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