File manager - Edit - /snap/core20/2866/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/__pycache__/modes.cpython-38.pyc
Back
U �e�]� � @ s� d dl mZmZmZ d dlZd dlZd dlmZ e�ej �G dd� de ��Ze�ej �G dd� de ��Ze�ej �G dd � d e ��Z e�ej �G d d� de ��Ze�ej �G dd � d e ��Zdd� Zdd� Zdd� Ze�e�e�e�G dd� de ���Ze�e�e�e �G dd� de ���Ze�e�G dd� de ��Ze�e�e�e�G dd� de ���Ze�e�e�e�G dd� de ���Ze�e�e�e�G dd� de ���Ze�e�e�e�G d d!� d!e ���Ze�e�e�e�e�e�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 �N/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/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 '