Ɛk d dgZ ddlmZ ddlmZmZ ddlmZmZm Z ddl mZmZm Z edd Zd Z G d d Zd dZdS )newPKCS115_Cipher )Random) bytes_to_long long_to_bytes)bordis_bytes_copy_bytes)load_pycryptodome_raw_libc_size_tc_uint8_ptrzCrypto.Cipher._pkcs1_decodea7 int pkcs1_decode(const uint8_t *em, size_t len_em, const uint8_t *sentinel, size_t len_sentinel, size_t expected_pt_len, uint8_t *output); c r t | t | k rt d t t | t t | t | t t | t | t | }|S )NzIncorrect output length)len ValueError_raw_pkcs1_decodepkcs1_decoder r )emsentinelexpected_pt_lenoutputrets z/builddir/build/BUILD/imunify360-venv-2.6.2/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Cipher/PKCS1_v1_5.py _pkcs1_decoder * s 2ww#f++2333 ( (R)1#b''):):)4X)>)>)1#h--)@)@)1/)B)B)4V)<)<> >C J c 2 e Zd ZdZd Zd Zd Zd Zd dZdS ) r zThis cipher can perform PKCS#1 v1.5 RSA encryption or decryption. Do not instantiate directly. Use :func:`Crypto.Cipher.PKCS1_v1_5.new` instead.c " || _ || _ dS )aJ Initialize this PKCS#1 v1.5 cipher object. :Parameters: key : an RSA key object If a private half is given, both encryption and decryption are possible. If a public half is given, only encryption is possible. randfunc : callable Function that returns random bytes. N)_key _randfunc)selfkeyrandfuncs r __init__zPKCS115_Cipher.__init__; s !r c 4 | j S )z=Return True if this cipher object can be used for encryption.)r can_encryptr s r r$ zPKCS115_Cipher.can_encryptI y$$&&&r c 4 | j S )z=Return True if this cipher object can be used for decryption.)r can_decryptr% s r r( zPKCS115_Cipher.can_decryptM r&