How does [0] and [3] wơrk in ASN1?
I'm decoding ASN1 (as used in X.509 for HTTPS certificates). I'm doing pretty well, but there is a thing that I just cannot find and understandable documentation for. In this JS ASN1 parser you see a [0] and a [3] under a SEQUENCE element, the first looking like this in data: A0 03 02 01 02 ... . I want to know what this means and how to decode it. Another example is Anatomy of an X.509 v3 Certificate , there is a [0] right after the first two SEQUENCE elements. What I don't understand is how A0 fits with the scheme where the first 2 bits of the tag byte are a class, the next a primitive