Hi Ed, Thanks for references -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ed Day Sent: Wednesday, December 04, 2002 7:44 PM To: [EMAIL PROTECTED] Subject: Re: [ASN.1] BER Encoded tag
Hi Massoud: >From ITU-T X.690 (which is the current version of the ITU-T standard you reference below): 8.1.2.2 For tags with a number ranging from zero to 30 (inclusive), the identifier octets shall comprise a single octet encoded as follows: a) bits 8 and 7 shall be encoded to represent the class of the tag as specified in Table 1; b) bit 6 shall be a zero or a one according to the rules of 8.1.2.5; c) bits 5 to 1 shall encode the number of the tag as a binary integer with bit 5 as the most significant bit. You are correct: there is no option to encode the tag the way it is shown. 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:[EMAIL PROTECTED] http://www.obj-sys.com ----- Original Message ----- From: "Massoud Kamran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, December 04, 2001 1:46 PM Subject: [ASN.1] BER Encoded tag > I am decoding a transfer syntax based on BER according to the specification > of the application that I am dealing with. During decoding I check a tag > "9F1C" and my code consider that as an error as it is specified based on my > understanding of 8825, X209 that the tag less than 30 has to encoded on 1 > byte. > I would like to know if you have the same understanding than me. apparently > the application programmers who encode the PDU pretend that this is allowed, > I disagree. I will be pleased to know your point of view. > Thanks for your input > M.Kamran