관리-도구
편집 파일: modes.cpython-39.opt-1.pyc
a �a � @ s^ d dl Z d dlZd dlmZ d dlmZmZ d dlmZm Z G dd� de j d�ZG dd � d e j d�ZG d d� de j d�Z G dd � d e j d�ZG dd� de j d�Zdd� Zdd� Zeedd�dd�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)�UnsupportedAlgorithm�_Reasons)�BlockCipherAlgorithm�CipherAlgorithmc @ s6 e Zd Zejed�dd��Zejedd�dd��Z dS )�Mode��returnc C s dS )z@ A string naming this mode (e.g. "ECB", "CBC"). N� ��selfr r �R/usr/lib64/python3.9/site-packages/cryptography/hazmat/primitives/ciphers/modes.py�name s z Mode.nameN�� algorithmr c C s dS )zq Checks that all the necessary invariants of this (mode, algorithm) combination are met. Nr �r r r r r �validate_for_algorithm s zMode.validate_for_algorithm) �__name__� __module__�__qualname__�abc�abstractproperty�strr �abstractmethodr r r r r r r s r )� metaclassc @ s e Zd Zejed�dd��ZdS )�ModeWithInitializationVectorr c 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 �bytesr r r r r r s r c @ s e Zd Zejed�dd��ZdS )� ModeWithTweakr c 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 r ( s r c @ s e Zd Zejed�dd��ZdS )� ModeWithNoncer c C s dS )z@ The value of the nonce for this mode as bytes. Nr r r r r �nonce1 s zModeWithNonce.nonceN)r r r r r r r! r r r r r 0 s r c @ s&