This ASN.1 dump tool is at
http://www.cs.auckland.ac.nz/~pgut001/

Geoff Elgey wrote:
> 
> G'day,
> 
> >  Just i am in search of Some Information . I want to write a C++
> > program that will
> >
> >  decode the ASN.1 input in bin format,
> >
> >   Ex :
> >  Input                 Display
> >  02 01 03           Integer length = 1 value =03
> >
> >  82 01 12            Application Context  primitive Tag =02  Length =1
> > Value = 12
> 
> Have a look at Peter Gutmann's "asn1dump" utility for a start (it is
> writen in C, but you could figure out how to rewrite it in C++).
> 
> I don't have the URL handy, so you'll have to search for it (or maybe
> someone here can point you to it).
> 
> Just looking at DER/BER tags is not enough though, as a tag of 0x30
> could be either a SEQUENCE or a SEQUENCE OF, and if you get an IMPLICIT
> tag, then you may not be able to determine what the value represents.
> 
> But try it and tell us your experiences.
> 
> Cheers,
> Geoff
> --
> Geoffrey Elgey ph: +61-7-38641487  Distributed Systems Technology
> Centre
> Security Unit  fax:+61-7-38641282  QUT, Brisbane, Australia
>                    http://www.dstc.edu.au
> DSTC is the Australian W3C Office  email: [EMAIL PROTECTED]

Reply via email to