HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //var/opt/nydus/ops/oscrypto/__pycache__/util.cpython-39.pyc
a

�,�h3�@s�ddlmZmZmZmZddlZddlmZddlm	Z	m
Z
ejdkrTddlm
Z
n$ejdkrlddlm
Z
nddlm
Z
d	d
gZdd	�ZdS)�)�unicode_literals�division�absolute_import�print_functionN�)�pretty_message)�	type_name�byte_cls�darwin)�
rand_bytes�win32�constant_comparercCs�t|t�sttdt|����t|t�s8ttdt|����t|�t|�krLdStjdkrrdd�|D�}dd�|D�}d}t||�D]\}}|||AO}q�|dkS)	z�
    Compares two byte strings in constant time to see if they are equal

    :param a:
        The first byte string

    :param b:
        The second byte string

    :return:
        A boolean if the two byte strings are equal
    z9
            a must be a byte string, not %s
            z9
            b must be a byte string, not %s
            F)�cSsg|]}t|��qS���ord��.0�charrr�>/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/oscrypto/util.py�
<listcomp>9�z$constant_compare.<locals>.<listcomp>cSsg|]}t|��qSrrrrrrr:rr)	�
isinstancer	�	TypeErrorrr�len�sys�version_info�zip)�a�b�result�x�yrrrr
s&
�
�
)�
__future__rrrrr�_errorsr�_typesrr	�platformZ	_mac.utilrZ	_win.utilZ
_openssl.util�__all__r
rrrr�<module>s

�