ok
Direktori : /opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Util/__pycache__/ |
Current File : //opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Util/__pycache__/number.cpython-311.pyc |
� f��fsx � � � d dl Z d dlZd dlZd dlmZ d dlmZ dZd� Zd� Z dd�Z dd�Zdd�Zej dd � d k re j Znd� Zej dd � dk rd � Znd� Zdd�Zdd�Zdd�Zdd�Zd dlZdd�Zd� Zd dlZdd�Zd� ZdZdS )� N)�Random)� iter_rangec � � |dk rt � � �| dk s|dk rt d� � �t | |� � \ }}| dk r|dk r|dz }|S )zDReturn ceil(n/d), that is, the smallest integer r such that r*d >= nr zNon positive values� )�ZeroDivisionError� ValueError�divmod)�n�d�r�qs �t/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Util/number.py�ceil_divr % si � � �A�v�v��!�!�!� �A���1�q�5�5��.�/�/�/��!�Q�<�<�D�A�q� �Q���Q�!�V�V� �Q����H� c �T � | dk rt d� � �| � � � S )z)Returns the size of the number N in bits.r z4Size in bits only available for non-negative numbers)r � bit_length)�Ns r �sizer 2 s* � � �1�u�u��O�P�P�P��<�<�>�>�r c �� � |�t j } || dz � � }| dz }|dk r6t |d� � � � d|z z }t j d|� � |z }t |� � }|S )a6 Return a random number at most N bits long. If :data:`randfunc` is omitted, then :meth:`Random.get_random_bytes` is used. .. deprecated:: 3.0 This function is for internal use only and may be renamed or removed in the future. Use :func:`Crypto.Random.random.getrandbits` instead. N� � r r �B)r �get_random_bytes�ord�struct�pack� bytes_to_long)r �randfunc�S�odd_bits� rand_bits�values r �getRandomIntegerr# : s{ � � ���*�����A����A��1�u�H��1�}�}�������$�$��8��4� ��K��Y�'�'�!�+���!���E��Lr c � � || z dz }t |� � }t ||� � }||k rt ||� � }||k �| |z S )a9 Return a random number *n* so that *a <= n < b*. If :data:`randfunc` is omitted, then :meth:`Random.get_random_bytes` is used. .. deprecated:: 3.0 This function is for internal use only and may be renamed or removed in the future. Use :func:`Crypto.Random.random.randrange` instead. r )r r# )�a�br �range_�bitsr"