File: //lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/__pycache__/base.cpython-310.pyc
o
�)%a� � @ sB d dl Z d dlZd dlmZ d dlmZmZmZmZm Z d dl
mZ d dlm
Z
d dlmZ d dlmZ G dd � d e jd
�ZG dd� de jd
�ZG d
d� de jd
�ZG dd� de jd
�ZG dd� de jd
�ZG dd� de�Ze�e�G dd� de��Ze�e�e�e�e�e�G dd� de����Ze�e�G dd� de��ZdS )� N)�utils)�AlreadyFinalized�AlreadyUpdated�NotYetFinalized�UnsupportedAlgorithm�_Reasons)�_get_backend)�
CipherBackend)�CipherAlgorithm)�modesc @ � e Zd Zejdefdd��ZdS )�BlockCipherAlgorithm�returnc C � dS )zK
The size of a block as an integer in bits (e.g. 64, 128).
N� ��selfr r �M/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/base.py�
block_size � zBlockCipherAlgorithm.block_sizeN)�__name__�
__module__�__qualname__�abc�abstractproperty�intr r r r r r
� r
)� metaclassc @ sP e Zd Zejdedefdd��Zejdedefdd��Zejdefdd��Z d S )
�
CipherContext�datar c C r )zk
Processes the provided bytes through the cipher and returns the results
as bytes.
Nr �r r r r r �update r zCipherContext.updatec C r )z�
Processes the provided bytes and writes the resulting data into the
provided buffer. Returns the number of bytes written.
Nr �r r �bufr r r �update_into'