HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/rsa/__pycache__/_compat.cpython-310.pyc
o

C�_��@s<dZddlmZdedefdd�Zdededefd	d
�ZdS)zPython compatibility wrappers.���pack�num�returncCs
td|�S)z�
    Converts a number between 0 and 255 (both inclusive) to a base-256 (byte)
    representation.

    :param num:
        An unsigned integer between 0 and 255 (both inclusive).
    :returns:
        A single byte.
    �Br)r�r�-/usr/lib/python3/dist-packages/rsa/_compat.py�bytes

r	�b1�b2cCstdd�t||�D��S)a�
    Returns the bitwise XOR result between two bytes objects, b1 ^ b2.

    Bitwise XOR operation is commutative, so order of parameters doesn't
    generate different results. If parameters have different length, extra
    length of the largest one is ignored.

    :param b1:
        First bytes object.
    :param b2:
        Second bytes object.
    :returns:
        Bytes object, result of XOR operation.
    css�|]	\}}||AVqdS)Nr)�.0�x�yrrr�	<genexpr>0s�zxor_bytes.<locals>.<genexpr>)�bytes�zip)r
rrrr�	xor_bytes!srN)�__doc__�structr�intrr	rrrrr�<module>s