| Server IP : 93.115.150.27 / Your IP : 216.73.216.221 Web Server : LiteSpeed System : Linux host2.azar.host 4.18.0-553.80.1.lve.el8.x86_64 #1 SMP Wed Oct 22 19:29:36 UTC 2025 x86_64 User : dorfakkh ( 1797) PHP Version : 8.1.34 Disable Function : show_source, system, passthru, exec, popen, proc_open, mail MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /lib64/python3.6/site-packages/cryptography/hazmat/backends/openssl/__pycache__/ |
Upload File : |
3
ꅭh� � @ st d dl mZmZmZ d dlmZ d dlmZmZm Z d dl
mZmZm
Z
eje
j�ejej�G dd� de���ZdS )� )�absolute_import�division�print_function)�utils)�InvalidSignature�UnsupportedAlgorithm�_Reasons)�
constant_time�hashes�macc @ s@ e Zd Zd
dd�Zejd�Zdd� Zdd� Zd d
� Z dd� Z
dS )�_HMACContextNc C s� || _ || _|d kr�| jjj� }| jj|| jjjk� | jjj|| jjj�}| jj |�}|| jjjkrzt
dj|j�t
j��| jjj|�}| jjj||t|�|| jjj�}| jj|dk� || _|| _d S )Nz*{} is not a supported hash on this backendr )�
_algorithm�_backend�_lib�Cryptography_HMAC_CTX_new�openssl_assert�_ffi�NULL�gc�Cryptography_HMAC_CTX_freeZ_evp_md_from_algorithmr �format�namer ZUNSUPPORTED_HASH�from_bufferZHMAC_Init_ex�len�_ctx�_key)�selfZbackend�key� algorithm�ctxZevp_mdZkey_ptr�res� r! �/usr/lib64/python3.6/hmac.py�__init__ s&