HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/rsa/__pycache__/core.cpython-36.pyc
3

%
�a��@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�/usr/lib/python3.6/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