HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/site-packages/rsa/__pycache__/core.cpython-38.pyc
U

JD�g��@sBdZeedd�dd�Zeeeed�dd�Zeeeed�d	d
�ZdS)z}Core mathematical operations.

This is the actual core RSA implementation, which is only defined
mathematically on integers.
N)�var�name�returncCs$t|t�rdStd||jf��dS)Nz%s should be an integer, not %s)�
isinstance�int�	TypeError�	__class__)rr�r�5/opt/cppython/lib/python3.8/site-packages/rsa/core.py�
assert_ints
r
)�message�ekey�nrcCsRt|d�t|d�t|d�|dkr.td��||krFtd||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�dkeyr
rcCs.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