File: //lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/__pycache__/base.cpython-38.pyc
U
�)%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 @ s e Zd Zejed�dd��ZdS )�BlockCipherAlgorithm��returnc C s 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 s zBlockCipherAlgorithm.block_sizeN)�__name__�
__module__�__qualname__�abc�abstractproperty�intr r r r r r s r )� metaclassc @ sL e Zd Zejeed�dd��Zejeed�dd��Zejed�dd��Z d S )
�
CipherContext��datar c C s dS )zk
Processes the provided bytes through the cipher and returns the results
as bytes.
Nr �r r r r r �update s zCipherContext.updatec C s dS )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'