rusticata / der-parser

BER/DER parser written in pure Rust. Fast, zero-copy, safe.
Apache License 2.0
85 stars 28 forks source link

Objects with private tags are parsed like universal tags #48

Closed lilyball closed 3 years ago

lilyball commented 3 years ago

Looking at the parsing implementation, for parse_der() or parse_ber(), any object with a BerClass::Private tag is still parsed as though it were BerClass::Universal, even though private tags are enterprise-specific and therefore assuming they have the same meaning as universal tags is unlikely to be true.