Home | Trees | Indices | Help |
|
---|
|
Base class for defining a single DER object.
Instantiate this class ONLY when you have to decode a DER element.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
typeTags =
|
|
Initialize the DER object according to a specific type. The ASN.1 type is either specified as the ASN.1 string (e.g. 'SEQUENCE'), directly with its numerical tag or with no tag at all (None). |
Given a (part of a) DER element, and an index to the first byte of a DER length tag (L), return a tuple with the payload size, and the index of the first byte of the such payload (V). Raises a ValueError exception if the DER length is invalid. Raises an IndexError exception if the DER element is too short. |
Decode a complete DER element, and re-initializes this object with it.
@return Index of the first unused byte in the given DER element. Raises a ValueError exception in case of parsing errors. Raises an IndexError exception if the DER element is too short. |
|
typeTags
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jan 13 12:36:11 2012 | http://epydoc.sourceforge.net |