Hi
If the tag is 3 byte like 9F8118 , then how to calculate the value in the
tag
Regards
Prajnananda
-----Original Message-----
From: Hong-Gi Ko (???) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 06, 2001 03:05 PM
To: [EMAIL PROTECTED]
Subject: RE: [ASN.1] RE:
Tripathy,
Same rule..
9F8118 : 1001 1111 1000 0001 0001 1000
First 2 bit : tag class (UNIVERSAL / APPLICATION / CONTEXT-SPECIFIC /
PRIVATE)
next 1 bit : primitive/constructed
if 1 byte tag(tag value is less than 31, i.e., max 30) : next 5 bit is
value.
(For instance, the tag for MIN, 0x88(1000 1000) tag value is 8)
if 2 bye tag(tag value range 31 ~ 127) : next 5 bits filled with all 1.
next 7bits of 1 byte(except first 1 bit) is value.
(For instance, the tag for SMS_NotificationIndicator, 0x9F6D
SMS_NotificationIndicator ::= [109] OCTET STRING,
See X.218, X.209 and X.600 series for more detail.
Visit following sites.
http://www-sop.inria.fr/rodeo/personnel/hoschka/asn1.html
http://asn1.elibel.tm.fr/en/index.htm
Good luck with it,
/Hong-Gi Ko
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 06, 2001 5:55 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [ASN.1] RE:
>
>
> Hi Hong-Gi Ko
>
> Thanks a lot for helping me . If I write the asn1
> specifications the
> way u have suggested I may get the two octet tag like 9F69 . But
> if i want a
> tag like 9F8118 what i have to do . Please guide me .
>
> Thanks & Regards
> Tripathy
>
>
>
>
>
> -----Original Message-----
> From: Hong-Gi Ko (???) [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 06, 2001 12:38 PM
> To: [EMAIL PROTECTED]
> Subject: [ASN.1] RE:
>
>
> Tripathy,
> describe like this
> :
> aaa [105] IMPLICIT OCTET STRING,
> bbb [109] IMPLICIT OCTET STRING,
> :
> then, you can get what you want.
>
> Regards,
> /Hong-Gi Ko
>
>
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, September 06, 2001 2:45 PM
> > To: [EMAIL PROTECTED]
> > Subject:
> >
> >
> > Hi All
> > Good Evening. I am from india and I want some help regarding
> the tag. My
> > problem is like this. I want to encode some message of the ANSI . While
> > encoding the same I get the tag like 89,90,91,etc. Since i
> want to define
> > my own tag like 9F69 , 9F6d in that place . Can help me by sending some
> > examples or tips so that i can use the user defined tags while
> writing the
> > ASN1 specification. If not posssible can u send me some mailing
> > list so that
> > i can get some info regarding this.Please help me in this regard
> >
> > Regards
> > Pajnananda Tripathy
> >
> >