| Previous | Next |
| CRYPT_E_STREAM_INSUFFICIENT_DATA | CRYPT_E_BAD_ENCODE |
CRYPT_E_BAD_LEN
The output buffer supplied to a CryptoAPI operation was too small. This is normally a caller-side size-management problem rather than a corrupt certificate or message.
What to check
- Use the documented size-query pattern: call the API to obtain the required size, allocate or resize the buffer, then call it again.
- Treat lengths as byte counts and preserve the required-size value returned by the failing API.
- Check for integer truncation when converting a CryptoAPI length to another type.
Microsoft: CryptDecryptMessage
Looking for a different code? Search another status or error code.