Oh dear! You are right!
John L
Tai-Lin Chin wrote:
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
--
Prof John Larmouth
Larmouth T&PDS Ltd
(Training and Protocol Development Services Ltd)
1 Blueberry Road
Bowdon [EMAIL PROTECTED]
Cheshire WA14 3LS
England
Tel: +44 161 928 1605 Fax: +44 161 928 8069
_______________________________________________
ASN1 mailing list
[email protected]
http://lists.asn1.org/mailman/listinfo/asn1