| Previous | Next |
| CRYPT_E_ASN1_INTERNAL | CRYPT_E_ASN1_CORRUPT |
CRYPT_E_ASN1_EOD
The encoded object is truncated
CRYPT_E_ASN1_EOD reports an unexpected end of ASN.1 data. A decoder was still expecting identifier octets, length octets, content bytes, or the closing portion of a constructed value when the supplied buffer ended. The most useful evidence is therefore the actual byte count and the outer structure being decoded.
This differs from a semantic certificate failure: signature trust, expiration, and key usage are evaluated only after the DER object can be decoded. It also differs from CRYPT_E_ASN1_NOEOD, where a complete value has been read but extra data remains where the decoder expected the object to end.
Where truncation originates
- A file or registry blob was read with a shorter length than its encoded size.
- A base64 or PEM transport lost its final block or padding.
- An embedded length claims more content than the containing buffer provides.
- The caller passed the size of a pointer or structure instead of the encoded byte array.
References
- ITU-T X.690: identifier, length, and contents octets
- Microsoft: CryptDecodeObjectEx input buffers
- RFC 5280: DER-encoded certificate structures
Looking for a different code? Search another status or error code.