module documentation

Pure, simple, BER encoding and decoding

Class BERBase Undocumented
Class BERBoolean No class docstring; 0/1 instance variable, 0/1 class variable, 1/3 method, 0/1 class method documented
Class BERDecoderContext Undocumented
Class BEREnumerated Undocumented
Class BERException Undocumented
Class BERExceptionInsufficientData Undocumented
Class BERInteger No class docstring; 0/1 instance variable, 0/1 class variable, 1/3 method, 0/1 class method documented
Class BERNull Undocumented
Class BEROctetString Undocumented
Class BERSequence Undocumented
Class BERSequenceOf Undocumented
Class BERSet Undocumented
Class BERStructured Undocumented
Class UnknownBERTag Undocumented
Function ber2int Undocumented
Function berDecodeLength Return a tuple of (length, lengthLength). m must be atleast one byte long.
Function berDecodeMultiple berDecodeMultiple(content, berdecoder) -> [objects]
Function berDecodeObject berDecodeObject(context, bytes) -> (berobject, bytesUsed) berobject may be None.
Function int2ber Undocumented
Function int2berlen Undocumented
Function need Undocumented
Constant CLASS_APPLICATION Undocumented
Constant CLASS_CONTEXT Undocumented
Constant CLASS_MASK Undocumented
Constant CLASS_PRIVATE Undocumented
Constant CLASS_UNIVERSAL Undocumented
Constant NOT_STRUCTURED Undocumented
Constant STRUCTURED Undocumented
Constant STRUCTURED_MASK Undocumented
Constant TAG_MASK Undocumented
def ber2int(e, signed=True): (source)

Undocumented

def berDecodeLength(m, offset=0): (source)

Return a tuple of (length, lengthLength). m must be atleast one byte long.

def berDecodeMultiple(content, berdecoder): (source)

berDecodeMultiple(content, berdecoder) -> [objects] Decodes everything in content and returns a list of decoded objects. All of content will be decoded, and content must contain complete BER objects.

def berDecodeObject(context, m): (source)

berDecodeObject(context, bytes) -> (berobject, bytesUsed) berobject may be None.

def int2ber(i, signed=True): (source)

Undocumented

def int2berlen(i): (source)

Undocumented

def need(buf, n): (source)

Undocumented

CLASS_APPLICATION: int = (source)

Undocumented

Value
64
CLASS_CONTEXT: int = (source)

Undocumented

Value
128
CLASS_MASK: int = (source)

Undocumented

Value
192
CLASS_PRIVATE: int = (source)

Undocumented

Value
192
CLASS_UNIVERSAL: int = (source)

Undocumented

Value
0
NOT_STRUCTURED: int = (source)

Undocumented

Value
0
STRUCTURED: int = (source)

Undocumented

Value
32
STRUCTURED_MASK: int = (source)

Undocumented

Value
32
TAG_MASK: int = (source)

Undocumented

Value
31