HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/thread-self/root/lib/python3/dist-packages/secretstorage/__pycache__/dhcrypto.cpython-38.pyc
U

V��Wz	�@szdZddlZddlZddlZddlmZddlmZdZe	e
d�rLdd�Zndd	lmZeee�d
�Z
Gdd�de�ZdS)
z�This module contains needed classes, functions and constants
to implement dh-ietf1024-sha256-aes128-cbc-pkcs7 secret encryption
algorithm.�N)�sha256)�int_from_bytes)��rrrrrrr�������!�h���4�����b��������)��N���g���tr����;���"�Q�Jr�y�r�����������:�C��0�+�
�m���_��7�O���5r5r5r$r�E�����vr�^�~r���L�B��rr9���krr�\�rD��rH���8rI��Z����rS�$��|�K����I�(�fr$��r[�S�rrrrrrrr�to_bytescCst�|t�|��d�d�S)Nr�big)�intrb�mathZceil�
bit_length)Znumber�rg�8/usr/lib/python3/dist-packages/secretstorage/dhcrypto.py�int_to_bytess�ri)rircc@seZdZdd�Zdd�ZdS)�SessioncCs>d|_d|_d|_d|_tt�d�d�|_td|jt	�|_
dS)NTrrcr)Zobject_path�server_public_key�aes_keyZ	encryptedr�os�urandom�my_private_key�pow�
DH_PRIME_1024Z
my_public_key)�selfrgrgrh�__init__'szSession.__init__cCsdt||jt�}t|�}ddt|�|}d}t�||t���}t�|dt���}|dd�|_	dS)N�rs ��)
rprorqri�len�hmac�newrZdigestrl)rrrkZ
common_secretZsaltZpseudo_random_keyZoutput_blockrgrgrh�set_server_public_key0s�zSession.set_server_public_keyN)�__name__�
__module__�__qualname__rsrzrgrgrgrhrj&s	rj)�__doc__rxrermZhashlibrZcryptography.utilsrZDH_PRIME_1024_BYTES�hasattrrdri�	bytearrayrq�objectrjrgrgrgrh�<module>s