관리-도구
편집 파일: modes.cpython-36.pyc
3 l�_J � @ s� d dl mZmZmZ d dlZd dlZd dlmZ ejej �G dd� de ��Zejej �G dd� de ��Zejej �G dd � d e ��Z ejej �G d d� de ��Zejej �G dd � d e ��Zdd� Zdd� Zdd� Zeje�eje�G dd� de ���Zeje�eje �G dd� de ���Zeje�G dd� de ��Zeje�eje�G dd� de ���Zeje�eje�G dd� de ���Zeje�eje�G dd� de ���Zeje�eje�G d d!� d!e ���Zeje�eje�eje�G d"d#� d#e ����ZdS )$� )�absolute_import�division�print_functionN)�utilsc @ s( e Zd Zejdd� �Zejdd� �ZdS )�Modec C s dS )z@ A string naming this mode (e.g. "ECB", "CBC"). N� )�selfr r �/usr/lib64/python3.6/modes.py�name s z Mode.namec C s dS )zq Checks that all the necessary invariants of this (mode, algorithm) combination are met. Nr )r � algorithmr r r �validate_for_algorithm s zMode.validate_for_algorithmN)�__name__� __module__�__qualname__�abc�abstractpropertyr �abstractmethodr r r r r r s r c @ s e Zd Zejdd� �ZdS )�ModeWithInitializationVectorc C s dS )zP The value of the initialization vector for this mode as bytes. Nr )r r r r �initialization_vector s z2ModeWithInitializationVector.initialization_vectorN)r r r r r r r r r r r s r c @ s e Zd Zejdd� �ZdS )� ModeWithTweakc C s dS )z@ The value of the tweak for this mode as bytes. Nr )r r r r �tweak) s zModeWithTweak.tweakN)r r r r r r r r r r r '