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__/hmac.cpython-36.pyc
3

�h1	�@s�ddlmZmZmZddlmZddlmZmZm	Z	ddl
mZddlm
Z
ddlmZmZejej�ejej�Gdd�de���Zd	S)
�)�absolute_import�division�print_function)�utils)�AlreadyFinalized�UnsupportedAlgorithm�_Reasons)�_get_backend)�HMACBackend)�hashes�macc@s@eZdZd
dd�Zejd�Zdd�Zdd�Zd	d
�Z	dd�Z
dS)�HMACNcCsjt|�}t|t�stdtj��t|tj�s2td��||_	||_
||_|dkr`|j
j||j
�|_n||_dS)Nz.Backend object does not implement HMACBackend.z*Expected instance of hashes.HashAlgorithm.)r	�
isinstancer
rrZBACKEND_MISSING_INTERFACErZ
HashAlgorithm�	TypeError�
_algorithm�_backend�_keyZcreate_hmac_ctx�	algorithm�_ctx)�self�keyr�backend�ctx�r�/usr/lib64/python3.6/hmac.py�__init__s
z
HMAC.__init__rcCs.|jdkrtd��tjd|�|jj|�dS)NzContext was already finalized.�data)rrrZ_check_byteslike�update)rrrrrr*s
zHMAC.updatecCs.|jdkrtd��t|j|j|j|jj�d�S)NzContext was already finalized.)rr)rrr
rrr�copy)rrrrr0s
z	HMAC.copycCs&|jdkrtd��|jj�}d|_|S)NzContext was already finalized.)rr�finalize)rZdigestrrrr:s


z
HMAC.finalizecCs:tjd|�|jdkrtd��|jd}|_|j|�dS)N�	signaturezContext was already finalized.)r�_check_bytesrr�verify)rr rrrrr"As

zHMAC.verify)NN)�__name__�
__module__�__qualname__rrZread_only_propertyrrrrr"rrrrr
s


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