HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/rsa/__pycache__/core.cpython-310.pyc
o

j��`}�@sRdZdededdfdd�Zdeded	edefd
d�Zded
ed	edefdd�ZdS)z}Core mathematical operations.

This is the actual core RSA implementation, which is only defined
mathematically on integers.
�var�name�returnNcCs t|t�rdStd||jf��)Nz%s should be an integer, not %s)�
isinstance�int�	TypeError�	__class__)rr�r�*/usr/lib/python3/dist-packages/rsa/core.py�
assert_ints
r
�message�ekey�ncCsRt|d�t|d�t|d�|dkrtd��||kr#td||f��t|||�S)z@Encrypts a message using encryption key 'ekey', working modulo nrrr
�z'Only non-negative numbers are supportedz#The message %i is too long for n=%i)r
�
ValueError�
OverflowError�pow)rrr
rrr	�encrypt_ints


r�
cyphertext�dkeycCs.t|d�t|d�t|d�t|||�}|S)zHDecrypts a cypher text using the decryption key 'dkey', working modulo nrrr
)r
r)rrr
rrrr	�decrypt_int-s



r)�__doc__r�strr
rrrrrr	�<module>s