File: //opt/alt/python37/lib64/python3.7/site-packages/Crypto/Util/__pycache__/asn1.cpython-37.opt-1.pyc
B
��c�1 � @ s� d dl mZmZ d dlZd dlT dddddd gZG d
d� d�ZG dd� de�ZG dd� de�ZG d
d� de�Z G dd� de�Z
G dd � d e�Zdd� ZdS )� )�
long_to_bytes�
bytes_to_longN)�*� DerObject�
DerInteger�DerOctetString�DerNull�DerSequence�DerObjectIdc @ s^ e Zd ZdZddddddd�Zd ed
�fdd�Zd
d� Zdd� Zdd� Z dd� Z
ddd�Zd S )r z�Base class for defining a single DER object.
Instantiate this class ONLY when you have to decode a DER element.
�0 � � � � � )�SEQUENCEz
BIT STRING�INTEGERzOCTET STRING�NULLzOBJECT IDENTIFIERN� c C sH t |�s|dkr|| _n&t|�dkr0t|�| _n| j�|�| _|| _dS )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/python37/lib64/python3.7/site-packages/Crypto/Util/asn1.py�__init__'