Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/cryptography/hazmat/primitives/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/cryptography/hazmat/primitives/__pycache__/cmac.cpython-310.pyc
o

�)%an�@sXddlmZddlmZmZmZddlmZddlm	Z	ddl
mZGdd�de�Z
dS)	�)�utils)�AlreadyFinalized�UnsupportedAlgorithm�_Reasons)�_get_backend)�CMACBackend)�ciphersc@s\eZdZ	ddejfdd�Zdeddfdd�Zdefd	d
�Zdeddfdd
�Z	ddd�Z
dS)�CMACN�	algorithmcCsdt|�}t|t�stdtj��t|tj�std��||_	||_
|dur-|j
�|j	�|_dS||_dS)Nz.Backend object does not implement CMACBackend.z*Expected instance of BlockCipherAlgorithm.)
r�
isinstancerrr�BACKEND_MISSING_INTERFACEr�BlockCipherAlgorithm�	TypeError�
_algorithm�_backend�create_cmac_ctx�_ctx)�selfr
�backend�ctx�r�E/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/cmac.py�__init__s
�
z
CMAC.__init__�data�returncCs.|jdur	td��t�d|�|j�|�dS)N�Context was already finalized.r)rrr�_check_bytes�update)rrrrrr&s
zCMAC.updatecCs&|jdur	td��|j��}d|_|S)Nr)rr�finalize)r�digestrrrr-s


z
CMAC.finalize�	signaturecCs:t�d|�|jdurtd��|jd}|_|�|�dS)Nr r)rrrr�verify)rr rrrrr!4s

zCMAC.verifycCs*|jdur	td��t|j|j|j��d�S)Nr)rr)rrr	rr�copy)rrrrr"<s

�z	CMAC.copy)NN)rr	)�__name__�
__module__�__qualname__rr
r�bytesrrr!r"rrrrr	s�
�r	N)�cryptographyr�cryptography.exceptionsrrr�cryptography.hazmat.backendsr�'cryptography.hazmat.backends.interfacesr�cryptography.hazmat.primitivesr�objectr	rrrr�<module>s

Spamworldpro Mini