I read the following PER encoding example from the book "ASN.1 complete".


Choice-example ::= CHOICE
            { normal NULL,
              high NULL,
              ... !2 -- see para 14.6 for exception handling --
              medium NULL  }

   first-choice Choice-example ::= normal:NULL
   second-choice Choice-example ::= medium:NULL

first-choice: E: 0  I: 0  C: (a total of two bits)

second-choice: E: 1 (extensions bit set)
                      I: 000000 (index as a normally small whole number)
                      L: P00000001 (general length "wrapper")
                      C: 00000000 (padded encoding of NULL)

Should the length and contect of the second-choice be

                      L: P00000000
                      C:

, since there is no need to encode NULL?


-Tailin
_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1

Reply via email to