ASN.1 encoder & decoder

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Doug Stell

    #1

    ASN.1 encoder & decoder

    Can anyone provide guidance on building an ASN.1 decoder and encoder
    in Python? This does not have to be a general purpose implementation,
    drivenf from an ASN.1 template. It can be dedicated hard coded to a
    particular template.

    Doug Stell, celiadoug@mchsi .com
  • Bruce Stephens

    #2
    Re: ASN.1 encoder & decoder

    Doug Stell <celiadoug@mchs i.comwrites:
    Can anyone provide guidance on building an ASN.1 decoder and encoder
    in Python?
    <http://sourceforge.net/projects/pyasn1/>?

    Comment

    • Doug Stell

      #3
      Re: ASN.1 encoder &amp; decoder

      I looked at pyasn1. Unfortunately, it is not useful and provides a C
      interface. Thanks, anyhow.

      I figure that I will have to write my own, but am unsure of the best
      approach. Nested lists and distionaries might be useful and I am
      looking to the feasibility of those mechanisms.

      On Fri, 25 Aug 2006 23:20:41 +0100, Bruce Stephens
      <bruce+usenet@c enderis.demon.c o.ukwrote:
      >Doug Stell <celiadoug@mchs i.comwrites:
      >
      >Can anyone provide guidance on building an ASN.1 decoder and encoder
      >in Python?
      >
      ><http://sourceforge.net/projects/pyasn1/>?

      Comment

      • Paul Rubin

        #4
        Re: ASN.1 encoder &amp; decoder

        Doug Stell <celiadoug@mchs i.comwrites:
        Can anyone provide guidance on building an ASN.1 decoder and encoder
        in Python? This does not have to be a general purpose implementation,
        drivenf from an ASN.1 template. It can be dedicated hard coded to a
        particular template.
        There might be some useful code in www.trevp.com/tlslite .

        Comment

        • Bruce Stephens

          #5
          Re: ASN.1 encoder &amp; decoder

          Doug Stell <celiadoug@mchs i.comwrites:
          I looked at pyasn1. Unfortunately, it is not useful and provides a C
          interface. Thanks, anyhow.
          What makes you say that? It appears to me (looking at the code in
          CVS) to be written entirely in Python, and the home page,
          <http://pyasn1.sourcefo rge.net/shows examples clearly with a Python
          interface.

          I've no idea whether or not it's useful in any other sense.

          [...]

          Comment

          • etingof@gmail.com

            #6
            Re: ASN.1 encoder &amp; decoder

            I looked at pyasn1. Unfortunately, it is not useful and provides a C
            interface. Thanks, anyhow.
            pyasn1 is a pure-python implementation. C interface is not supported.
            I figure that I will have to write my own, but am unsure of the best
            approach. Nested lists and distionaries might be useful and I am
            looking to the feasibility of those mechanisms.
            Try looking at the pyasn1 homepage http://pyasn1.sf.net where some
            design ideas were discussed.

            -ilya

            Comment

            • Doug Stell

              #7
              Re: ASN.1 encoder &amp; decoder

              Thanks Paul. This is exactly the type andlevel of implementation that
              I was looking for.

              I will look at the other implementation again.

              On 25 Aug 2006 16:32:46 -0700, Paul Rubin
              <http://phr.cx@NOSPAM.i nvalidwrote:
              >Doug Stell <celiadoug@mchs i.comwrites:
              >Can anyone provide guidance on building an ASN.1 decoder and encoder
              >in Python? This does not have to be a general purpose implementation,
              >drivenf from an ASN.1 template. It can be dedicated hard coded to a
              >particular template.
              >
              >There might be some useful code in www.trevp.com/tlslite .

              Comment

              Working...