[ASN.1] BER Encoded tag

2002-12-04 Thread Massoud Kamran
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

RE: [ASN.1] BER Encoded tag

2002-12-04 Thread devaraj[IT]
Hi Kamran, As per the ASN.1 definition,if the tag number is greater than 30,then it will encoded in two or more octets. In the First octet,first two bits represent the tag number,third bit represent primitive or constructive and remaining bits contains all ones. In the second octet,actual tag

Re: [ASN.1] BER Encoded tag

2002-12-04 Thread Ed Day
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

Re: [ASN.1] BER Encoded tag

2002-12-04 Thread Rajul Gupta
- Original Message - From: devaraj[IT] [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, December 04, 2002 2:24 PM Subject: RE: [ASN.1] BER Encoded tag Hi Kamran, As per the ASN.1 definition,if the tag number is greater than 30,then it will encoded in two or more octets. In

RE: [ASN.1] BER Encoded tag

2002-12-04 Thread Massoud Kamran
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