python-asn1 icon indicating copy to clipboard operation
python-asn1 copied to clipboard

DER encoder uses indefinite length for constructed sequences

Open peter-vanvugt opened this issue 11 months ago • 1 comments

This does not comply with DER encoding rules, which (IIUC) forbids the use of indefinite lengths.

It seems that OpenSSL doesn't complain, at least for some functions/versions, but the version of BoringsSL that I'm using does.

peter-vanvugt avatar Mar 07 '25 22:03 peter-vanvugt

You are right. It is more a CER encoding than a DER one. It will fix this in the next version

andrivet avatar Mar 08 '25 14:03 andrivet