HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //usr/lib64/python3.9/site-packages/cryptography/hazmat/primitives/__pycache__/hmac.cpython-39.pyc
a

�a��@sBddlZddlmZddlmZddlmZGdd�dej�ZdS)�N)�utils)�AlreadyFinalized)�hashesc@steZdZdeejejd�dd�Ze	ejd�dd��Z
edd�d	d
�Zdd�dd�Zed�d
d�Z
edd�dd�ZdS)�HMACN)�key�	algorithm�backendcCsPt|tj�std��||_||_|durFddlm}|�||j	�|_
n||_
dS)Nz*Expected instance of hashes.HashAlgorithm.r)r)�
isinstancer�
HashAlgorithm�	TypeError�
_algorithm�_keyZ,cryptography.hazmat.backends.openssl.backendrZcreate_hmac_ctxr�_ctx)�selfrrr�ctxZossl�r�I/usr/lib64/python3.9/site-packages/cryptography/hazmat/primitives/hmac.py�__init__sz
HMAC.__init__)�returncCs|jS)N)r�rrrrr%szHMAC.algorithm)�datarcCs.|jdurtd��t�d|�|j�|�dS)N�Context was already finalized.r)rrrZ_check_byteslike�update)rrrrrr)s
zHMAC.updatecCs*|jdurtd��t|j|j|j��d�S)Nr)r)rrrr
r�copyrrrrr/s
�z	HMAC.copycCs&|jdurtd��|j��}d|_|S)Nr)rr�finalize)rZdigestrrrr8s


z
HMAC.finalize)�	signaturercCs:t�d|�|jdurtd��|jd}|_|�|�dS)Nrr)r�_check_bytesrr�verify)rrrrrrr?s

zHMAC.verify)NN)�__name__�
__module__�__qualname__�bytesrr
�typing�Anyr�propertyrrrrrrrrrrs��	r)	r"ZcryptographyrZcryptography.exceptionsrZcryptography.hazmat.primitivesrZHashContextrrrrr�<module>s