File: //lib/python3/dist-packages/cryptography/hazmat/backends/__pycache__/interfaces.cpython-312.pyc
�
�)%a�( � �H � d dl Z G d� de j �� Z G d� de j �� Z G d� de j �� Z G d � d
e j �� Z G d� de j �� Z G d
� de j �� Z G d� de j �� Z G d� de j �� Z G d� de j �� Z
G d� de j �� Z G d� de j �� Z G d� de j �� Z
G d� de j �� Zy)� Nc �x � e Zd Zej d� � Zej d� � Zej d� � Zy)�
CipherBackendc � � y)zI
Return True if the given cipher and mode are supported.
N� ��self�cipher�modes �I/usr/lib/python3/dist-packages/cryptography/hazmat/backends/interfaces.py�cipher_supportedzCipherBackend.cipher_supported
� � � c � � y)zF
Get a CipherContext that can be used for encryption.
Nr r s r �create_symmetric_encryption_ctxz-CipherBackend.create_symmetric_encryption_ctx r
r c � � y)zF
Get a CipherContext that can be used for decryption.
Nr r s r �create_symmetric_decryption_ctxz-CipherBackend.create_symmetric_decryption_ctx r
r N)�__name__�
__module__�__qualname__�abc�abstractmethodr r r r r r r r sN � ����� ��
���� ��
���� �r r )� metaclassc �T � e Zd Zej d� � Zej d� � Zy)�HashBackendc � � y)zQ
Return True if the hash algorithm is supported by this backend.
Nr �r � algorithms r �hash_supportedzHashBackend.hash_supported r
r c � � y)zH
Create a HashContext for calculating a message digest.
Nr r s r �create_hash_ctxzHashBackend.create_hash_ctx$ r
r N)r r r r r r r r r r r r �4 � ����� ��
���� �r r c �T � e Zd Zej d� � Zej d� � Zy)�HMACBackendc � � y)zb
Return True if the hash algorithm is supported for HMAC by this
backend.
Nr r s r �hmac_supportedzHMACBackend.hmac_supported, r
r c � � y�zQ
Create a context for calculating a message authentication code.
Nr )r �keyr s r �create_hmac_ctxzHMACBackend.create_hmac_ctx3 r
r N)r r r r r r% r) r r r r# r# + s4 � ����� �� ���� �r r# c �T � e Zd Zej d� � Zej d� � Zy)�CMACBackendc � � y)zX
Returns True if the block cipher is supported for CMAC by this backend
Nr r s r �cmac_algorithm_supportedz$CMACBackend.cmac_algorithm_supported; r
r c � � yr'