I have been presented with an ASN.1 document that includes two encoding/decoding attributes;
- AUTOMATIC TAGS
- My understanding; the tags are defined automatically using the encoding rules unless a tag notation is present in the definition
- EXTENSIBILITY IMPLIED
- My understanding; types may have elements that are not defined within the ASN.1 document. If found, the encoder should silently ignore. Additionally, my decoder should also be ready to handle values with unspecified tags.
Q1: Are my understandings above correct?
Q2: w.r.t AUTOMATIC TAGS; defining automatically seems infeasible (obviously not...) but my understanding is that someEncoder
would therefore assign SomeType.class
with tag (for example) 0xBB
; how does someDecoder
know how to decode 0xBB
back to SomeType
?
Q2: w.r.t unspecified tags; once again, I am unsure how to pass an unspecified Tag back to something else.