HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-31-18-78 6.17.0-1017-aws #17~24.04.1-Ubuntu SMP Tue May 26 21:09:53 UTC 2026 aarch64
User: ubuntu (1000)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/rsa/__pycache__/core.cpython-312.pyc
�

%
�a���L�dZdededdfd�Zdedededefd	�Zd
edededefd�Zy)
z}Core mathematical operations.

This is the actual core RSA implementation, which is only defined
mathematically on integers.
�var�name�returnNc�X�t|t�ryt|�d|j����)Nz should be an integer, not )�
isinstance�int�	TypeError�	__class__)rrs  �*/usr/lib/python3/dist-packages/rsa/core.py�
assert_intrs#���#�s���
��s�}�}�M�
N�N��message�ekey�nc��t|d�t|d�t|d�|dkrtd��||kDrtd||fz��t|||�S)z@Encrypts a message using encryption key 'ekey', working modulo nr
rr�z'Only non-negative numbers are supportedz#The message %i is too long for n=%i)r�
ValueError�
OverflowError�pow)r
rrs   r
�encrypt_intrs`���w�	�"��t�V���q�#����{��B�C�C���{��A�W�a�L�P�Q�Q��w��a� � r�
cyphertext�dkeyc�h�t|d�t|d�t|d�t|||�}|S)zHDecrypts a cypher text using the decryption key 'dkey', working modulo nrrr)rr)rrrr
s    r
�decrypt_intr-s5���z�<�(��t�V���q�#���*�d�A�&�G��Nr)�__doc__r�strrrr�rr
�<module>rsj���O�C�O�s�O�t�O�
!��
!�C�
!�C�
!�C�
!� �C��s��s��s�r