HEX
Server: Apache
System: Linux dinesh8189 5.15.98-grsec-sharedvalley-2.lc.el8.x86_64 #1 SMP Thu Mar 9 09:07:30 -03 2023 x86_64
User: cgmgerenciamento1 (814285)
PHP: 8.1.26
Disabled: apache_child_terminate,dl,escapeshellarg,escapeshellcmd,exec,link,mail,openlog,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,php_check_syntax,php_strip_whitespace,popen,proc_close,proc_open,shell_exec,symlink,system
Upload Files
File: //usr/lib64/python3.6/site-packages/cryptography/hazmat/primitives/__pycache__/cmac.cpython-36.pyc
3

�h��@s|ddlmZmZmZddlmZddlmZmZm	Z	ddl
mZddlm
Z
ddlmZmZejej�Gdd�de��Zd	S)
�)�absolute_import�division�print_function)�utils)�AlreadyFinalized�UnsupportedAlgorithm�_Reasons)�_get_backend)�CMACBackend)�ciphers�macc@s6eZdZddd�Zdd�Zdd�Zdd	�Zd
d�ZdS)
�CMACNcCsbt|�}t|t�stdtj��t|tj�s2td��||_	||_
|dkrX|j
j|j	�|_n||_dS)Nz.Backend object does not implement CMACBackend.z*Expected instance of BlockCipherAlgorithm.)
r	�
isinstancer
rrZBACKEND_MISSING_INTERFACErZBlockCipherAlgorithm�	TypeError�
_algorithm�_backendZcreate_cmac_ctx�_ctx)�self�	algorithm�backend�ctx�r�/usr/lib64/python3.6/cmac.py�__init__s
z
CMAC.__init__cCs.|jdkrtd��tjd|�|jj|�dS)NzContext was already finalized.�data)rrr�_check_bytes�update)rrrrrr&s
zCMAC.updatecCs&|jdkrtd��|jj�}d|_|S)NzContext was already finalized.)rr�finalize)rZdigestrrrr-s


z
CMAC.finalizecCs:tjd|�|jdkrtd��|jd}|_|j|�dS)N�	signaturezContext was already finalized.)rrrr�verify)rrrrrrr4s

zCMAC.verifycCs*|jdkrtd��t|j|j|jj�d�S)NzContext was already finalized.)rr)rrr
rr�copy)rrrrr <s
z	CMAC.copy)NN)�__name__�
__module__�__qualname__rrrrr rrrrr
s

r
N)Z
__future__rrrZcryptographyrZcryptography.exceptionsrrrZcryptography.hazmat.backendsr	Z'cryptography.hazmat.backends.interfacesr
Zcryptography.hazmat.primitivesrrZregister_interfaceZ
MACContext�objectr
rrrr�<module>s