+
    8i}                     .    R t R R ltR R ltR R ltR# )z}Core mathematical operations.

This is the actual core RSA implementation, which is only defined
mathematically on integers.
c                4    V ^8  d   QhR\         R\        RR/# )   varnamereturnN)intstr)formats   "F/var/www/html/photoedit/myenv/lib/python3.14/site-packages/rsa/core.py__annotate__r      s&     O OC Os Ot O    c                 j    \        V \        4      '       d   R # \        V: RV P                  : 24      h)Nz should be an integer, not )
isinstancer   	TypeError	__class__)r   r   s   &&r
   
assert_intr      s&    #s
s}}M
NNr   c                H    V ^8  d   QhR\         R\         R\         R\         /# )r   messageekeynr   r   )r	   s   "r
   r   r      s(     ! ! !C !C !C !r   c                    \        V R4       \        VR4       \        VR4       V ^ 8  d   \        R4      hW8  d   \        RW3,          4      h\        WV4      # )z@Encrypts a message using encryption key 'ekey', working modulo nr   r   r   z'Only non-negative numbers are supportedz#The message %i is too long for n=%i)r   
ValueErrorOverflowErrorpow)r   r   r   s   &&&r
   encrypt_intr      sZ     w	"tVq#{BCC{AWLPQQwa  r   c                H    V ^8  d   QhR\         R\         R\         R\         /# )r   
cyphertextdkeyr   r   r   )r	   s   "r
   r   r   -   s(      C s s s r   c                f    \        V R4       \        VR4       \        VR4       \        WV4      pV# )zHDecrypts a cypher text using the decryption key 'dkey', working modulo nr   r   r   )r   r   )r   r   r   r   s   &&& r
   decrypt_intr    -   s3     z<(tVq#*A&GNr   N)__doc__r   r   r     r   r
   <module>r#      s   O! r   