Remix.run Logo
flowerthoughts 15 hours ago

The one thing that grinds my gears about BER/CER/DER is that they managed to come up with two different varint encoding schemes for the tag and length.

cryptonector 14 hours ago | parent [-]

Meh. One rarely ever needs tags larger than 30, and even more seldom tags larger than twice that, say.

flowerthoughts 6 hours ago | parent [-]

Yeah, but if you're writing a parser for use by others, you have to implement both, even if it's "rarely" used. Or some intern somewhere will have a bad day after getting tasked with "just add this value here, it'll be an easy starter project." :)

cryptonector 2 hours ago | parent [-]

And then it's a tiny bit more code. It's really not a problem.