| 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.
Looking for a different code? Search another status or error code.