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

Class DerNull

object --+    
         |    
 DerObject --+
             |
            DerNull

Class to model a DER NULL element.
Instance Methods
 
__init__(self)
Initialize the DER object as a NULL.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

    Inherited from DerObject
 
decode(self, derEle)
Decode a complete DER element, and re-initializes this object with it.
 
encode(self)
Return this DER element, fully encoded as a binary byte string.
Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

 
Initialize the DER object as a NULL.
Parameters:
  • asn1Id - The universal DER tag identifier for this object (e.g. 0x10 for a SEQUENCE). If None, the tag is not known yet.
  • payload - The initial payload of the object. If not specified, the payload is empty.
  • implicit - The IMPLICIT tag to use for the encoded object. It overrides the universal tag asn1Id.
  • constructed - True when the ASN.1 type is constructed. False when it is primitive.
Overrides: object.__init__