| Server IP : 93.86.61.54 / Your IP : 216.73.216.156 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/paramiko/__pycache__/ |
Upload File : |
o
��4b � @ sP d Z ddlZddlmZ ddlmZmZ ddlmZ dd� Z G dd � d e
�ZdS )
z,
Utility functions for dealing with primes.
� N)�util)� byte_mask�long)�SSHExceptionc C sv t �| d �}|d d }td|d �d } t�|�}|dkr-t|d |�|dd� }t �|d�}|| k r: |S q)z returns a random # from 0 to N-1� � � � Tr N)r �
bit_length�pow�os�urandomr �inflate_long)�n�bits�
byte_count�
hbyte_mask�x�num� r �1/usr/lib/python3/dist-packages/paramiko/primes.py�_roll_random s
�r c @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd
S )�ModulusPackzx
convenience object for holding the contents of the /etc/ssh/moduli file,
on systems that have such a file.
c C s i | _ g | _d S )N)�pack� discarded)�selfr r r �__init__: s
zModulusPack.__init__c
C s� |� � \}}}}}}}t|�}t|�}t|�}t|�}t|�}t|d�}|dk s8|dk s8|d@ rB|dk rB|dk rB| j�|df� d S |dkrHd}t�|�} | |krd| |d krd| j�|d �|�f� d S | | jvrng | j| <