File manager - Edit - /usr/lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/__pycache__/modes.cpython-310.pyc
Back
o �)%a� � @ sJ d dl Z d dlZd dlmZ d dlmZ G dd� de jd�ZG dd� de jd�ZG d d � d e jd�Z G dd� de jd�Z G d d� de jd�Zdd� Zdd� Z dedefdd�Zdd� ZG dd� dee�ZG dd� dee �ZG dd� de�ZG dd � d ee�ZG d!d"� d"ee�ZG d#d$� d$ee�ZG d%d&� d&ee �ZG d'd(� d(eee�ZdS ))� N)�utils)�CipherAlgorithmc @ s8 e Zd Zejdefdd��Zejdeddfdd��Z dS )�Mode�returnc C � 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 � z Mode.name� algorithmNc C r )zq Checks that all the necessary invariants of this (mode, algorithm) combination are met. Nr �r r r r r �validate_for_algorithm r zMode.validate_for_algorithm) �__name__� __module__�__qualname__�abc�abstractproperty�strr �abstractmethodr r r r r r r s r )� metaclassc @ � e Zd Zejdefdd��ZdS )�ModeWithInitializationVectorr c C r )zP The value of the initialization vector for this mode as bytes. Nr r r r r �initialization_vector r z2ModeWithInitializationVector.initialization_vectorN)r r r r r �bytesr r r r r r � r c @ r )� ModeWithTweakr c C r )z@ The value of the tweak for this mode as bytes. Nr r r r r �tweak% r zModeWithTweak.tweakN)r r r r r r r r r r r r $ r r c @ r )� ModeWithNoncer c C r )z@ The value of the nonce for this mode as bytes. Nr r r r r �nonce- r zModeWithNonce.nonceN)r r r r r r r r r r r r , r r c @ r )�ModeWithAuthenticationTagr c C r )zP The value of the tag supplied to the constructor of this mode. Nr r r r r �tag5 r zModeWithAuthenticationTag.tagN)r r r r r r r"