Your IP : 216.73.216.213
���^�1 � @ s� d d l m Z m Z d d l Z d d l Td d d d d d g Z Gd
d � d � Z Gd d � d e � Z Gd d � d e � Z Gd
d � d e � Z Gd d � d e � Z
Gd d � d e � Z d d � Z d S)� )�
long_to_bytes�
bytes_to_longN)�*� DerObject�
DerInteger�DerOctetString�DerNull�DerSequence�DerObjectIdc @ s� e Z d Z d Z d d d d d d d d d
d d d
i Z d e d � d d � Z d d � Z d d � Z d d � Z d d � Z
d d d � Z d S)r z�Base class for defining a single DER object.
Instantiate this class ONLY when you have to decode a DER element.
�SEQUENCE�0 z
BIT STRING� �INTEGER� zOCTET STRING� �NULL� zOBJECT IDENTIFIER� N� c C sj t | � s | d k r$ | | _ n9 t | � d k rH t | � | _ n | j j | � | _ | | _ d S)z�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).N� )�isInt�typeTag�len�ord�typeTags�get�payload)�self�ASN1Typer � r �C/opt/alt/python35/lib64/python3.5/site-packages/Crypto/Util/asn1.py�__init__'