[Mono-devel-list] Generic ASN1 routines

Sebastien Pouliot spouliot at videotron.ca
Fri May 14 07:29:45 EDT 2004


Hello Michael,

>Searching through this mailing list, I've found references to ASN1
>parsing code in the mono runtime.  However browsing through monodoc
>shows no ASN1 classes exposed.  Are there any generic ASN1 parsing
>routines for .NET (Mono, mainly), a la the C libasn1 from the gnu
>people?

The ASN1 class is defined as internal in corlib assembly (so it won't show
up in monodoc). It is also declared public in Mono.Security assembly (which
isn't part of monodoc at the moment).

>Being able to compile and use a grammar would be nice, although
>really all I need is to be able to parse the ASN1 byte stream into a
>tree and then serialize the tree back out into a byte stream
>(automatically calculating the size field for each tag).

The class is a lightweight class without an ASN1 compiler which is enough
for parsing X.509 certificates and related structures. It also looks like it
would be able to do what you need easily. Look at the source code in
PKCS7.cs or X509Certificate.cs (in Mono.Security) for example on how to use
the source code.

>This is actually a fairly simple operation, so I can just write my own
>routines.  However if there already is a class library for this type of
>thing out there, it would save me time.

Please report any bug (or suggestions) into bugzilla.

Have fun,

Sebastien Pouliot
http://pages.infinit.net/ctech/poupou.html


-----Original Message-----
From: mono-devel-list-admin at lists.ximian.com
[mailto:mono-devel-list-admin at lists.ximian.com]On Behalf Of Michael
Torrie
Sent: 14 mai 2004 01:26
To: mono-devel-list at lists.ximian.com
Subject: [Mono-devel-list] Generic ASN1 routines


>Searching through this mailing list, I've found references to ASN1
>parsing code in the mono runtime.  However browsing through monodoc
shows no ASN1 classes exposed.  Are there any generic ASN1 parsing
routines for .NET (Mono, mainly), a la the C libasn1 from the gnu
people?  Being able to compile and use a grammar would be nice, although
really all I need is to be able to parse the ASN1 byte stream into a
tree and then serialize the tree back out into a byte stream
(automatically calculating the size field for each tag).  This is
actually a fairly simple operation, so I can just write my own
routines.  However if there already is a class library for this type of
thing out there, it would save me time.

thanks.

Michael
--
Michael Torrie <torriem at chem.byu.edu>
_______________________________________________
Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list