----- 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 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 number will be encoded.


I think, his point is, value in second octet is 1C (28 in decimal), so it
should have been encoded in the first octet only.

Rajul

> Hope this help you.
>
> regards,
> KB Devaraj
> RPG Cellular Services Ltd
> Chennai,India
> +91 9841012030
>
> > -----Original Message-----
> > From: Massoud Kamran [SMTP:[EMAIL PROTECTED]]
> > Sent: 05 December, 2001 12:17 AM
> > To: [EMAIL PROTECTED]
> > 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
>
>

Reply via email to