Current File : //usr/lib64/python2.7/site-packages/Crypto/Util/asn1.pyo |
�
Bd\Rc @ s� d d l m Z m Z d d l Z d d l Td d d d d d g Z d d d
� � YZ d e f d � � YZ d e f d � � YZ d e f d
� � YZ d e f d � � YZ
d e f d � � YZ d � Z d S( i����( t
long_to_bytest
bytes_to_longN( t *t DerObjectt
DerIntegert DerOctetStringt DerNullt DerSequencet DerObjectIdc B s� e Z d Z i d d 6d d 6d d 6d d 6d d
6d d 6Z d e d
� d � Z d � Z d � Z d � Z d � Z
d d � Z RS( s� Base class for defining a single DER object.
Instantiate this class ONLY when you have to decode a DER element.
i0 t SEQUENCEi s
BIT STRINGi t INTEGERi s OCTET STRINGi t NULLi s OBJECT IDENTIFIERt c C sj t | � s | d k r$ | | _ n9 t | � d k rH t | � | _ n | j j | � | _ | | _ d S( s� 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).i N( t isIntt Nonet typeTagt lent ordt typeTagst gett payload( t selft ASN1TypeR ( ( s6 /usr/lib64/python2.7/site-packages/Crypto/Util/asn1.pyt __init__'