/opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Cipher/__pycache__
NameSizeModeActions
AES.cpython-311.pyc87080644editdlrm
ARC2.cpython-311.pyc70300644editdlrm
ARC4.cpython-311.pyc54800644editdlrm
Blowfish.cpython-311.pyc59730644editdlrm
CAST.cpython-311.pyc60990644editdlrm
ChaCha20.cpython-311.pyc111540644editdlrm
ChaCha20_Poly1305.cpython-311.pyc142890644editdlrm
DES.cpython-311.pyc59640644editdlrm
DES3.cpython-311.pyc76220644editdlrm
PKCS1_OAEP.cpython-311.pyc98920644editdlrm
PKCS1_v1_5.cpython-311.pyc89380644editdlrm
Salsa20.cpython-311.pyc67540644editdlrm
_EKSBlowfish.cpython-311.pyc48360644editdlrm
_mode_cbc.cpython-311.pyc105200644editdlrm
_mode_ccm.cpython-311.pyc258860644editdlrm
_mode_cfb.cpython-311.pyc109340644editdlrm
_mode_ctr.cpython-311.pyc155930644editdlrm
_mode_eax.cpython-311.pyc161420644editdlrm
_mode_ecb.cpython-311.pyc82040644editdlrm
_mode_gcm.cpython-311.pyc247770644editdlrm
_mode_ocb.cpython-311.pyc214590644editdlrm
_mode_ofb.cpython-311.pyc103210644editdlrm
_mode_openpgp.cpython-311.pyc63800644editdlrm
_mode_siv.cpython-311.pyc153010644editdlrm
__init__.cpython-311.pyc25830644editdlrm
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Cipher/__pycache__/Salsa20.cpython-311.pyc (6754B)
§ NÑåHreãóˆ—ddlmZddlmZmZmZmZmZmZm Z m Z ddl m Z edd¦«Z Gd„d¦«Zd d „Zd Zd ZdS) é)Ú _copy_bytes)Úload_pycryptodome_raw_libÚcreate_string_bufferÚget_raw_bufferÚ VoidPointerÚ SmartPointerÚc_size_tÚ c_uint8_ptrÚis_writeable_buffer)Úget_random_byteszCrypto.Cipher._Salsa20aþ int Salsa20_stream_init(uint8_t *key, size_t keylen, uint8_t *nonce, size_t nonce_len, void **pSalsaState); int Salsa20_stream_destroy(void *salsaState); int Salsa20_stream_encrypt(void *salsaState, const uint8_t in[], uint8_t out[], size_t len); có(—eZdZdZd„Zdd„Zdd„ZdS)Ú Salsa20CipherzŸSalsa20 cipher object. Do not create it directly. Use :py:func:`new` instead. :var nonce: The nonce with length 8 :vartype nonce: byte string c óð—t|¦«tvrtdt|¦«z¦«‚t|¦«dkrtdt|¦«z¦«‚tdd|¦«|_t ¦«|_t t|¦«tt|¦«¦«t|¦«tt|¦«¦«|j  ¦«¦«}|rtd¦«‚t|j  ¦«tj¦«|_d|_t|¦«|_dS)zQInitialize a Salsa20 cipher object See also `new()` at the module level.z+Incorrect key length for Salsa20 (%d bytes)éz-Incorrect nonce length for Salsa20 (%d bytes)Nz'Error %d instantiating a Salsa20 cipheré)ÚlenÚkey_sizeÚ ValueErrorrÚnoncerÚ_stateÚ_raw_salsa20_libÚSalsa20_stream_initr r Ú address_ofrÚgetÚSalsa20_stream_destroyÚ block_size)ÚselfÚkeyrÚresults úw/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Cipher/Salsa20.pyÚ__init__zSalsa20Cipher.__init__6s;€õ ˆs‰8Œ8�8Ð #Ð #ÝÐJÍSÐQTÉXÌXÑUÑVÔVÐ Vå ˆu‰:Œ:˜Š?ˆ?ÝÐLÝ  ™ZœZñ(ñ)ô)ð )õ!  t¨UÑ3Ô3ˆŒ å!‘m”mˆŒ Ý!×5Ò5Ý# CÑ(Ô(Ý ¥ S¡¤Ñ*Ô*Ý# EÑ*Ô*Ý ¥ U¡¤Ñ,Ô,Øœ ×.Ò.Ñ0Ô0ñ 2ô2ˆð ð HÝÐFÑGÔGÐ GÝ" 4¤;§?¢?Ñ#4Ô#4Ý#3Ô#JñLôLˆŒ ðˆŒÝ˜C™œˆŒ ˆ ˆ óNc ó—|€tt|¦«¦«}n_|}t|¦«std¦«‚t|¦«t|¦«krt dt|¦«z¦«‚t  |j ¦«t|¦«t|¦«tt|¦«¦«¦«}|rt d|z¦«‚|€t|¦«SdS)a«Encrypt a piece of data. Args: plaintext(bytes/bytearray/memoryview): The data to encrypt, of any size. Keyword Args: output(bytes/bytearray/memoryview): The location where the ciphertext is written to. If ``None``, the ciphertext is returned. Returns: If ``output`` is ``None``, the ciphertext is returned as ``bytes``. Otherwise, ``None``. Nz4output must be a bytearray or a writeable memoryviewz9output must have the same length as the input (%d bytes)z&Error %d while encrypting with Salsa20) rrr Ú TypeErrorrrÚSalsa20_stream_encryptrrr r r)rÚ plaintextÚoutputÚ ciphertextrs r ÚencryptzSalsa20Cipher.encryptSs €ð ˆ>Ý-­c°)©n¬nÑ=Ô=ˆJˆJàˆJå& vÑ.Ô.ð XÝÐ VÑWÔWÐWå�9‰~Œ~¥ V¡¤Ò,Ð,Ý ð"0Ý25°i±.´.ñ"AñBôBðBõ"×8Ò8Ø)-¬¯ªÑ):Ô):Ý)4°YÑ)?Ô)?Ý)4°ZÑ)@Ô)@Ý)1µ#°i±.´.Ñ)AÔ)Añ CôCˆð ð PÝÐEÈÑNÑOÔOÐ Oà ˆ>Ý! *Ñ-Ô-Ð -à�4r"có¶— | ||¬¦«S#t$r5}tt|¦« dd¦«¦«‚d}~wwxYw)a±Decrypt a piece of data. Args: ciphertext(bytes/bytearray/memoryview): The data to decrypt, of any size. Keyword Args: output(bytes/bytearray/memoryview): The location where the plaintext is written to. If ``None``, the plaintext is returned. Returns: If ``output`` is ``None``, the plaintext is returned as ``bytes``. Otherwise, ``None``. )r'ÚencÚdecN)r)rÚstrÚreplace)rr(r'Úes r ÚdecryptzSalsa20Cipher.decryptys^€ð ;Ø—<’<  °6�<Ñ:Ô:Ð :øÝð ;ð ;ð ;Ý�S ™VœVŸ^š^¨E°5Ñ9Ô9Ñ:Ô:Ð :øøøøð ;øøøs‚™ A£0AÁA©N)Ú__name__Ú __module__Ú __qualname__Ú__doc__r!r)r0©r"r rr.sV€€€€€ððð!ð!ð!ð:$ð$ð$ð$ðL;ð;ð;ð;ð;ð;r"rNcóD—|€td¦«}t||¦«S)a%Create a new Salsa20 cipher :keyword key: The secret key to use. It must be 16 or 32 bytes long. :type key: bytes/bytearray/memoryview :keyword nonce: A value that must never be reused for any other encryption done with this key. It must be 8 bytes long. If not provided, a random byte string will be generated (you can read it back via the ``nonce`` attribute of the returned object). :type nonce: bytes/bytearray/memoryview :Return: a :class:`Crypto.Cipher.Salsa20.Salsa20Cipher` object Nr)r r)rrs r Únewr8Œs&€ð" €}Ý  Ñ#Ô#ˆå ˜˜eÑ $Ô $Ð$r"r)éé r1)ÚCrypto.Util.py3compatrÚCrypto.Util._raw_apirrrrrr r r Ú Crypto.Randomr rrr8rrr6r"r úr>sðð2.Ð-Ð-Ð-Ð-Ð-ðDðDðDðDðDðDðDðDðDðDðDðDðDðDðDðDðDðDðDðDð +Ð*Ð*Ð*Ð*Ð*à,Ð,Ð-Eðñ ô Ðð[;ð[;ð[;ð[;ð[;ñ[;ô[;ð[;ð|%ð%ð%ð%ð.€ ð €€€r"