JFIF$        dd7 

Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Util/__pycache__/strxor.cpython-311.pyc

�

3.������T�ddlmZmZmZmZmZmZedd��Zdd�Zdd�Z	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
�>�t|��t|��krtd���|�tt|����}n_|}t|��st	d���t|��t|��krtdt|��z���t
�t|��t|��t|��tt|������|�t|��SdS)a�From two byte strings of equal length,
    create a third one which is the byte-by-byte XOR of the two.

    Args:
      term1 (bytes/bytearray/memoryview):
        The first byte string to XOR.
      term2 (bytes/bytearray/memoryview):
        The second byte string to XOR.
      output (bytearray/memoryview):
        The location where the result will be written to.
        It must have the same length as ``term1`` and ``term2``.
        If ``None``, the result is returned.
    :Return:
        If ``output`` is ``None``, a new byte string with the result.
        Otherwise ``None``.

    .. note::
        ``term1`` and ``term2`` must have the same length.
    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�
ValueErrorrr�	TypeError�_raw_strxor�strxorrrr)�term1�term2�output�results    �t/builddir/build/BUILD/imunify360-venv-2.6.0/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Util/strxor.pyrr0s��*�5�z�z�S��Z�Z����I�J�J�J�
�~�%�c�%�j�j�1�1�����"�6�*�*�	T��R�S�S�S��u�:�:��V���$�$��,�.1�%�j�j�9�:�:�
:����{�5�)�)�"�5�)�)�"�6�*�*���E�
�
�+�+�-�-�-�
�~��f�%�%�%��t�c
��d|cxkrdksntd���|�tt|����}n_|}t|��st	d���t|��t|��krtdt|��z���t
�t|��|t|��tt|������|�t|��SdS)a~From a byte string, create a second one of equal length
    where each byte is XOR-red with the same value.

    Args:
      term(bytes/bytearray/memoryview):
        The byte string to XOR.
      c (int):
        Every byte in the string will be XOR-ed with this value.
        It must be between 0 and 255 (included).
      output (None or bytearray/memoryview):
        The location where the result will be written to.
        It must have the same length as ``term``.
        If ``None``, the result is returned.

    Return:
        If ``output`` is ``None``, a new ``bytes`` string with the result.
        Otherwise ``None``.
    r�zc must be in range(256)Nr
r)
r
rrrrr�strxor_crrr)�term�crrs    rrr`s��(
��<�<�<�<�C�<�<�<�<��2�3�3�3�
�~�%�c�$�i�i�0�0�����"�6�*�*�	T��R�S�S�S��t�9�9��F���#�#��,�.1�$�i�i�8�9�9�
9�����T�*�*��$�V�,�,�!�#�d�)�)�,�,�����~��f�%�%�%��trc
�t�t�|||tt|������dS)z!Very fast XOR - check conditions!N)rrrr)rrrs   r�_strxor_directr�s0�����u�e�V�X�c�%�j�j�-A�-A�B�B�B�B�Br)N)�Crypto.Util._raw_apirrrrrrrrrr�rr�<module>r s���>D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�D�(�'�)��
�
��-�-�-�-�`-�-�-�-�`C�C�C�C�Cr
Back to Directory  nL+D550H?Mx ,D"v]qv;6*Zqn)ZP0!1 A "#a$2Qr D8 a Ri[f\mIykIw0cuFcRı?lO7к_f˓[C$殷WF<_W ԣsKcëIzyQy/_LKℂ;C",pFA:/]=H  ~,ls/9ć:[=/#f;)x{ٛEQ )~ =𘙲r*2~ a _V=' kumFD}KYYC)({ *g&f`툪ry`=^cJ.I](*`wq1dđ#̩͑0;H]u搂@:~וKL Nsh}OIR*8:2 !lDJVo(3=M(zȰ+i*NAr6KnSl)!JJӁ* %݉?|D}d5:eP0R;{$X'xF@.ÊB {,WJuQɲRI;9QE琯62fT.DUJ;*cP A\ILNj!J۱+O\͔]ޒS߼Jȧc%ANolՎprULZԛerE2=XDXgVQeӓk yP7U*omQIs,K`)6\G3t?pgjrmۛجwluGtfh9uyP0D;Uڽ"OXlif$)&|ML0Zrm1[HXPlPR0'G=i2N+0e2]]9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