ff~ddlmZmZmZmZmZmZmZeddZGddZ dZ dZ e ddZ d S) )load_pycryptodome_raw_lib VoidPointercreate_string_bufferget_raw_buffer SmartPointerc_size_t c_uint8_ptrzCrypto.Cipher._ARC4al int ARC4_stream_encrypt(void *rc4State, const uint8_t in[], uint8_t out[], size_t len); int ARC4_stream_init(uint8_t *key, size_t keylen, void **pRc4State); int ARC4_stream_destroy(void *rc4State); c$eZdZdZdZdZdZdS) ARC4CipherzcARC4 cipher object. Do not create it directly. Use :func:`Crypto.Cipher.ARC4.new` instead. ct|dkr|d}|dd}n|dd}t|tvrtdt|zt |_t t|tt||j }|dkrtd|zt|j t j |_|dkr|d|zd|_t||_dS)zOInitialize an ARC4 cipher object See also `new()` at the module level.rNdropz$Incorrect ARC4 key length (%d bytes)z'Error %d while creating the ARC4 cipher)lenpopkey_size ValueErrorr_state _raw_arc4_libARC4_stream_initr r address_ofrgetARC4_stream_destroyencrypt block_size)selfkeyargskwargsndropresults t/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Cipher/ARC4.py__init__zARC4Cipher.__init__*sL t99q==GE8DDJJvq))E s888 # #C XX&'' '"mm // C0@0@08S0B0B04 0F0F0H0HJJ Q;;F%&'' '"4;??#4#4#0#DFF  199 LL5 ) ) )C c 6tt|}t|jt ||tt|}|rtd|zt|S)zEncrypt a piece of data. :param plaintext: The data to encrypt, of any size. :type plaintext: bytes, bytearray, memoryview :returns: the encrypted byte string, of equal length as the plaintext. z"Error %d while encrypting with RC4) rrrARC4_stream_encryptrrr rrr)r plaintext ciphertextr!s r"rzARC4Cipher.encryptLs*#i..99 224;??3D3D3>y3I3I3=3;C NN3K3KMM  LAFJKK Kj)))r$c ||S#t$r5}tt|ddd}~wwxYw)zDecrypt a piece of data. :param ciphertext: The data to decrypt, of any size. :type ciphertext: bytes, bytearray, memoryview :returns: the decrypted byte string, of equal length as the ciphertext. encdecN)rrstrreplace)rr(es r"decryptzARC4Cipher.decrypt^sZ ;<< ++ + ; ; ;SVV^^E599:: : ;s A0AAN)__name__ __module__ __qualname____doc__r#rr/r$r"r r %sL ! ! !D***$ ; ; ; ; ;r$r c"t|g|Ri|S)aCreate a new ARC4 cipher. :param key: The secret key to use in the symmetric cipher. Its length must be in the range ``[1..256]``. The recommended length is 16 bytes. :type key: bytes, bytearray, memoryview :Keyword Arguments: * *drop* (``integer``) -- The amount of bytes to discard from the initial part of the keystream. In fact, such part has been found to be distinguishable from random data (while it shouldn't) and also correlated to key. The recommended value is 3072_ bytes. The default value is 0. :Return: an `ARC4Cipher` object .. _3072: http://eprint.iacr.org/2002/067.pdf )r )rrrs r"newr6ms"* c +D + + +F + ++r$r iN)Crypto.Util._raw_apirrrrrrr rr r6rrangerr4r$r"r9s.GGGGGGGGGGGGGGGGGG *)*?B E;E;E;E;E;E;E;E;P,,,2 5E??r$