Package Crypto :: Package Util :: Module asn1
[frames] | no frames]

Module asn1

ASN.1 DER encoding and decoding

This module provides minimal support for encoding and decoding ASN.1 DER objects.

Classes
  DerObject
Base class for defining a single DER object.
  DerInteger
Class to model a DER INTEGER.
  DerSequence
Class to model a DER SEQUENCE.
  DerOctetString
Class to model a DER OCTET STRING.
  DerNull
Class to model a DER NULL element.
  DerObjectId
Class to model a DER OBJECT ID.
  DerBitString
Class to model a DER BIT STRING.
  DerSetOf
Class to model a DER SET OF.
Functions
 
newDerInteger(number)
Create a DerInteger object, already initialized with an integer.
 
newDerSequence(*der_objs)
Create a DerSequence object, already initialized with all objects passed as parameters.
 
newDerOctetString(binstring)
Create a DerOctetString object, already initialized with the binary string.
 
newDerObjectId(dottedstring)
Create a DerObjectId object, already initialized with the given Object Identifier (a dotted string).
 
newDerBitString(binstring)
Create a DerStringString object, already initialized with the binary string.
 
newDerSetOf(*der_objs)
Create a DerSequence object, already initialized with all objects passed as parameters.