Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/Crypto/Util/__pycache__/strxor.cpython-39.pyc
Ðазад
a c�h� � @ sJ d dl mZmZmZmZmZmZ edd�Zddd�Zddd�Z d d � Z dS ) � )�load_pycryptodome_raw_lib�c_size_t�create_string_buffer�get_raw_buffer�c_uint8_ptr�is_writeable_bufferzCrypto.Util._strxoray void strxor(const uint8_t *in1, const uint8_t *in2, uint8_t *out, size_t len); void strxor_c(const uint8_t *in, uint8_t c, uint8_t *out, size_t len); Nc C s� t | �t |�krtd��|du r.tt | ��}n4|}t|�sBtd��t | �t |�krbtdt | � ��t�t| �t|�t|�tt | ��� |du r�t |�S dS dS )a� XOR two byte strings. Args: term1 (bytes/bytearray/memoryview): The first term of the XOR operation. term2 (bytes/bytearray/memoryview): The second term of the XOR operation. output (bytearray/memoryview): The location where the result must be written to. If ``None``, the result is returned. :Return: If ``output`` is ``None``, a new ``bytes`` string with the result. Otherwise ``None``. z.Only byte strings of equal length can be xoredN�4output must be a bytearray or a writeable memoryview�9output must have the same length as the input (%d bytes)) �len� ValueErrorr r � TypeError�_raw_strxor�strxorr r r )�term1�term2�output�result� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/Crypto/Util/strxor.pyr / s&