Ë
    zñ�j÷  ã                   ó&  — d Z ddlZddlZej                  j
                  Z	 ej                  j                  Z	 ej                  j                  Z
	 ej                  j                  Z	 ej                  j                  Z	 ej                  j                  Z	 ej                  j"                  Z	 ej                  j&                  Z	 ej                  j*                  Z	 ej                  j.                  Z	 ej                  j2                  Z	 ej                  j6                  Z	 ej                  j:                  Z	 ej                  j>                  Z ej                  jB                  Z"ej                  jF                  Z$ejJ                  jL                  fde'dejJ                  jP                  de'fd„Z)ejJ                  jL                  fde'dejJ                  jP                  de'fd„Z*edddejJ                  jL                  fd	e'd
e+de'de'de'dejJ                  jP                  de'fd„Z,e,Z-dejJ                  jL                  fde'de'dejJ                  jP                  de'fd„Z.e.Z/dejJ                  jL                  fde'de'dejJ                  jP                  de'fd„Z0y)zŠ
The :mod:`nacl.hash` module exposes one-shot interfaces
for libsodium selected hash primitives and the constants needed
for their usage.
é    NÚmessageÚencoderÚreturnc                 ó^   — |j                  t        j                  j                  | «      «      S )zç
    Hashes ``message`` with SHA256.

    :param message: The message to hash.
    :type message: bytes
    :param encoder: A class that is able to encode the hashed message.
    :returns: The hashed message.
    :rtype: bytes
    )ÚencodeÚnaclÚbindingsÚcrypto_hash_sha256©r   r   s     úJ/var/www/api.ozpay.ru/ozpay/venv/lib/python3.12/site-packages/nacl/hash.pyÚsha256r   =   ó"   € ð �>‰>œ$Ÿ-™-×:Ñ:¸7ÓCÓDÐDó    c                 ó^   — |j                  t        j                  j                  | «      «      S )zç
    Hashes ``message`` with SHA512.

    :param message: The message to hash.
    :type message: bytes
    :param encoder: A class that is able to encode the hashed message.
    :returns: The hashed message.
    :rtype: bytes
    )r   r   r	   Úcrypto_hash_sha512r   s     r   Úsha512r   L   r   r   r   ÚdataÚdigest_sizeÚkeyÚsaltÚpersonc                 óD   — t        | ||||¬«      }|j                  |«      S )aø  
    Hashes ``data`` with blake2b.

    :param data: the digest input byte sequence
    :type data: bytes
    :param digest_size: the requested digest size; must be at most
                        :const:`BLAKE2B_BYTES_MAX`;
                        the default digest size is
                        :const:`BLAKE2B_BYTES`
    :type digest_size: int
    :param key: the key to be set for keyed MAC/PRF usage; if set, the key
                must be at most :data:`~nacl.hash.BLAKE2B_KEYBYTES_MAX` long
    :type key: bytes
    :param salt: an initialization salt at most
                 :const:`BLAKE2B_SALTBYTES` long;
                 it will be zero-padded if needed
    :type salt: bytes
    :param person: a personalization string at most
                   :const:`BLAKE2B_PERSONALBYTES` long;
                   it will be zero-padded if needed
    :type person: bytes
    :param encoder: the encoder to use on returned digest
    :type encoder: class
    :returns: The hashed message.
    :rtype: bytes
    )r   r   r   r   )Ú	_b2b_hashr   )r   r   r   r   r   r   Údigests          r   Úblake2br   [   s+   € ôF Ø˜+¨3°TÀ&ô€Fð �>‰>˜&Ó!Ð!r   c                 ó<   — t        | |«      }|j                  |«      S )a¾  
    Computes a keyed MAC of ``message`` using the short-input-optimized
    siphash-2-4 construction.

    :param message: The message to hash.
    :type message: bytes
    :param key: the message authentication key for the siphash MAC construct
    :type key: bytes(:const:`SIPHASH_KEYBYTES`)
    :param encoder: A class that is able to encode the hashed message.
    :returns: The hashed message.
    :rtype: bytes(:const:`SIPHASH_BYTES`)
    )Ú	_sip_hashr   ©r   r   r   r   s       r   Ú	siphash24r   ‡   s   € ô" �w Ó$€FØ�>‰>˜&Ó!Ð!r   c                 ó<   — t        | |«      }|j                  |«      S )aE  
    Computes a keyed MAC of ``message`` using the 128 bit variant of the
    siphash-2-4 construction.

    :param message: The message to hash.
    :type message: bytes
    :param key: the message authentication key for the siphash MAC construct
    :type key: bytes(:const:`SIPHASHX_KEYBYTES`)
    :param encoder: A class that is able to encode the hashed message.
    :returns: The hashed message.
    :rtype: bytes(:const:`SIPHASHX_BYTES`)
    :raises nacl.exceptions.UnavailableError: If called when using a
        minimal build of libsodium.

    .. versionadded:: 1.2
    )Ú
_sip_hashxr   r   s       r   Ú
siphashx24r"   Ÿ   s   € ô* ˜ Ó%€FØ�>‰>˜&Ó!Ð!r   )1Ú__doc__Únacl.bindingsr   Únacl.encodingr	   Úcrypto_generichash_BYTESÚBLAKE2B_BYTESÚcrypto_generichash_BYTES_MINÚBLAKE2B_BYTES_MINÚcrypto_generichash_BYTES_MAXÚBLAKE2B_BYTES_MAXÚcrypto_generichash_KEYBYTESÚBLAKE2B_KEYBYTESÚcrypto_generichash_KEYBYTES_MINÚBLAKE2B_KEYBYTES_MINÚcrypto_generichash_KEYBYTES_MAXÚBLAKE2B_KEYBYTES_MAXÚcrypto_generichash_SALTBYTESÚBLAKE2B_SALTBYTESÚ crypto_generichash_PERSONALBYTESÚBLAKE2B_PERSONALBYTESÚ crypto_shorthash_siphash24_BYTESÚSIPHASH_BYTESÚ#crypto_shorthash_siphash24_KEYBYTESÚSIPHASH_KEYBYTESÚhas_crypto_shorthash_siphashx24ÚSIPHASHX_AVAILABLEÚ!crypto_shorthash_siphashx24_BYTESÚSIPHASHX_BYTESÚ$crypto_shorthash_siphashx24_KEYBYTESÚSIPHASHX_KEYBYTESÚ(crypto_generichash_blake2b_salt_personalr   Úcrypto_shorthash_siphash24r   Úcrypto_shorthash_siphashx24r!   ÚencodingÚ
HexEncoderÚbytesÚEncoderr   r   Úintr   Úgenerichashr   Ú	shorthashr"   © r   r   ú<module>rK      s´  ðñó Û ð —‘×6Ñ6€Ø 2Ø—M‘M×>Ñ>Ð Ø :Ø—M‘M×>Ñ>Ð Ø :Ø—=‘=×<Ñ<Ð Ø EØ—}‘}×DÑDÐ Ø MØ—}‘}×DÑDÐ Ø MØ—M‘M×>Ñ>Ð ðàŸ™×FÑFÐ ð'ð —‘×>Ñ>€Ø *Ø—=‘=×DÑDÐ Ø Bà—]‘]×BÑBÐ Ø >à—‘×@Ñ@€Ø +Ø—M‘M×FÑFÐ Ø Cà�M‰M×BÑB€	Ø�M‰M×4Ñ4€	Ø�]‰]×6Ñ6€
ð 6:·]±]×5MÑ5MñEØðEØ!Ÿ]™]×2Ñ2ðEà
óEð  6:·]±]×5MÑ5MñEØðEØ!Ÿ]™]×2Ñ2ðEà
óEð" %ØØØØ%)§]¡]×%=Ñ%=ñ&"Ø
ð&"àð&"ð 
ð&"ð ð	&"ð
 ð&"ð �]‰]×"Ñ"ð&"ð ó&"ðR €ð
 Ø%)§]¡]×%=Ñ%=ñ"Øð"à	ð"ð �]‰]×"Ñ"ð"ð ó	"ð* €	ð
 Ø%)§]¡]×%=Ñ%=ñ"Øð"à	ð"ð �]‰]×"Ñ"ð"ð ô	"r   