My guess is option c) . (BTW: it is "BIT STRING" not "BIT_STRING").
Regards, Ed Day Objective Systems, Inc. REAL WORLD ASN.1 AND XML SOLUTIONS Tel: +1 (484) 875-3020 Fax: +1 (484) 875-2913 Toll-free: (877) 307-6855 (USA only) mailto:eday@;obj-sys.com http://www.obj-sys.com ----- Original Message ----- From: "Ricardo Barroso" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, October 31, 2002 2:39 PM Subject: [ASN.1] BIT_STRING value meaning? > Hi! > > I have a question about BIT_STRINGs because I haven't understood one > thing... > > If I have the following ASN.1 definition: > > MyBitString ::= BIT_STRING { > valueA (0), > valueB (2) } > > What are the correct representation of the BIT_STRING bits correspondent > to valueB? > > a) 01000000 (the lowest bit is at left and the value is the > decimal correspondent value) > b) 00000010 (the lowest bit is at right and the value is the > decimal correspondent value) > c) 00100000 (the lowest bit is at left and the value means that > the correspondent second (2) bit number has value one (1)) > d) 00000100 (the lowest bit is at right and the value means that > the correspondent second (2) bit number has value one (1)) > > I suppose that's the option a) but I don't know If I am right!? > > Thanks in advance, > Ricardo Barroso >
