File manager - Edit - /usr/local/CyberCP/lib/python3.10/site-packages/cryptography/hazmat/primitives/ciphers/__pycache__/base.cpython-310.pyc
Back
o �hs � @ s d dl mZ d dlZd dlZd dlmZ d dlmZ d dl m Z G dd� dejd�ZG d d � d eejd�Z G dd� de ejd�ZG d d� de ejd�Zejdeje j dd�ZG dd� deje �Zeeje je jde je jf Ze�ejj� e�ejj� e�ejj� dS )� )�annotationsN)�openssl)�CipherAlgorithm)�modesc @ sL e Zd Zejddd��Zejddd ��Zejdd d��Zejddd��ZdS )� CipherContext�data�bytes�returnc C � dS )zk Processes the provided bytes through the cipher and returns the results as bytes. N� ��selfr r r �^/usr/local/CyberCP/lib/python3.10/site-packages/cryptography/hazmat/primitives/ciphers/base.py�update � zCipherContext.update�buf�intc 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 r r r r �update_into r zCipherContext.update_intoc C r )zM Returns the results of processing the final block as bytes. Nr �r r r r �finalize r zCipherContext.finalize�nonce�Nonec C r )z� Resets the nonce for the cipher context to the provided value. Raises an exception if it does not support reset or if the provided nonce does not have a valid length. Nr )r r r r r �reset_nonce$ r zCipherContext.reset_nonceN)r r r r )r r r r r r �r r )r r r r ) �__name__� __module__�__qualname__�abc�abstractmethodr r r r r r r r r s r )� metaclassc @ s e Zd Zejddd��ZdS ) �AEADCipherContextr r r r c C r )z3 Authenticates the provided bytes. Nr r r r r �authenticate_additional_data. r z.AEADCipherContext.authenticate_additional_dataN)r r r r )r r r r r r! r r r r r - � r c @ s e Zd Zejddd��ZdS )�AEADDecryptionContext�tagr r c C r )z� Returns the results of processing the final block as bytes and allows delayed passing of the authentication tag. Nr )r r$ r r r �finalize_with_tag6 r z'AEADDecryptionContext.finalize_with_tagN)r$ r r r )r r r r r r% r r r r r# 5 r"