File manager - Edit - /snap/core20/2866/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/__pycache__/base.cpython-38.pyc
Back
U �e�]� � @ s� d dl mZmZmZ d dlZd dlZd dlmZ d dlm Z m Z mZmZm Z d dlmZ d dlmZ e�ej�G dd� de��Ze�ej�G d d � d e��Ze�ej�G dd� de��Ze�ej�G d d� de��Ze�ej�G dd� de��Ze�ej�G dd� de��ZG dd� de�Ze�e�G dd� de��Ze�e�e�e�e�e�G dd� de����Ze�e�G dd� de��ZdS )� )�absolute_import�division�print_functionN)�utils)�AlreadyFinalized�AlreadyUpdated�NotYetFinalized�UnsupportedAlgorithm�_Reasons)� CipherBackend)�modesc @ s( e Zd Zejdd� �Zejdd� �ZdS )�CipherAlgorithmc C s dS )zE A string naming this mode (e.g. "AES", "Camellia"). N� ��selfr r �M/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/base.py�name s zCipherAlgorithm.namec C s dS )zW The size of the key being used as an integer in bits (e.g. 128, 256). Nr r r r r �key_size s zCipherAlgorithm.key_sizeN)�__name__� __module__�__qualname__�abc�abstractpropertyr r r r r r r s r c @ s e Zd Zejdd� �ZdS )�BlockCipherAlgorithmc C s dS )zK The size of a block as an integer in bits (e.g. 64, 128). Nr r r r r � block_size% s zBlockCipherAlgorithm.block_sizeN)r r r r r r r r r r r # s r c @ s6 e Zd Zejdd� �Zejdd� �Zejdd� �ZdS )� CipherContextc C s dS )zk Processes the provided bytes through the cipher and returns the results as bytes. Nr �r �datar 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 Zbufr r r �update_into5 s zCipherContext.update_intoc C s dS )zM Returns the results of processing the final block as bytes. Nr r r r r �finalize<