Site icon EfmSoft

What does HRESULT 0x80090004 (NTE_BAD_LEN) mean?

 
Previous Next
NTE_BAD_KEY NTE_BAD_DATA

NTE_BAD_LEN

NTE_BAD_LEN means that a length value passed to the cryptographic provider is invalid for the requested operation. The problem can involve input size, output-buffer length, key length, or an algorithm-specific block-size requirement.

What to check

  • Check whether the API expects bytes, bits, characters, or a buffer size that includes a terminating value.
  • Read required output lengths returned by a sizing call instead of relying on a fixed buffer.
  • Validate padding, block alignment, and key-size requirements for the chosen algorithm.

Microsoft: security and setup HRESULT values


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

Exit mobile version