File manager - Edit - /usr/lib/python3/dist-packages/cryptography/hazmat/backends/__pycache__/interfaces.cpython-310.pyc
Back
o �)%a�( � @ s d dl Z G dd� de jd�ZG dd� de jd�ZG dd� de jd�ZG d d � d e jd�ZG dd� de jd�ZG d d� de jd�ZG dd� de jd�ZG dd� de jd�Z G dd� de jd�Z G dd� de jd�ZG dd� de jd�ZG dd� de jd�Z G dd� de jd�ZdS )� Nc @ �6 e Zd Zejdd� �Zejdd� �Zejdd� �ZdS )� CipherBackendc C � dS )zI Return True if the given cipher and mode are supported. N� ��self�cipher�moder r �I/usr/lib/python3/dist-packages/cryptography/hazmat/backends/interfaces.py�cipher_supported � zCipherBackend.cipher_supportedc C r )zF Get a CipherContext that can be used for encryption. Nr r r r r �create_symmetric_encryption_ctx r z-CipherBackend.create_symmetric_encryption_ctxc C r )zF Get a CipherContext that can be used for decryption. Nr r r r r �create_symmetric_decryption_ctx r z-CipherBackend.create_symmetric_decryption_ctxN)�__name__� __module__�__qualname__�abc�abstractmethodr r r r r r r r s r )� metaclassc @ �( e Zd Zejdd� �Zejdd� �ZdS )�HashBackendc C r )zQ Return True if the hash algorithm is supported by this backend. Nr �r � algorithmr r r �hash_supported r zHashBackend.hash_supportedc C r )zH Create a HashContext for calculating a message digest. Nr r r r r �create_hash_ctx$ r zHashBackend.create_hash_ctxN)r r r r r r r r r r r r � r c @ r )�HMACBackendc C r )zb Return True if the hash algorithm is supported for HMAC by this backend. Nr r r r r �hmac_supported, r zHMACBackend.hmac_supportedc C r �zQ Create a context for calculating a message authentication code. Nr )r �keyr r r r �create_hmac_ctx3 r zHMACBackend.create_hmac_ctxN)r r r r r r r r r r r r + � r c @ r )�CMACBackendc C r )zX Returns True if the block cipher is supported for CMAC by this backend Nr r r r r �cmac_algorithm_supported; r z$CMACBackend.cmac_algorithm_supportedc C r r r r r r r �create_cmac_ctxA r zCMACBackend.create_cmac_ctxN)r r r r r r# r$ r r r r r"