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/nacl/bindings/__pycache__/crypto_shorthash.cpython-310.pyc
o

��a+
�@s�UddlmZddlmZmZddlmZeej�Z	e�
�Zee
d<e��Zee
d<dZdZe	r8e��Ze��Zdededefd	d
�Zdededefdd�ZdS)
�N)�ffi�lib)�ensure�BYTES�KEYBYTES�data�key�returncCsbt|�tkrt�d�t���t�dt�}t�	||t|�|�}t
|dktjd�t�|t�dd�S)z�Compute a fast, cryptographic quality, keyed hash of the input data

    :param data:
    :type data: bytes
    :param key: len(key) must be equal to
                :py:data:`.KEYBYTES` (16)
    :type key: bytes
    �#Key length must be exactly {} bytes�unsigned char[]r��raisingN)
�lenr�exc�
ValueError�formatr�newrr�crypto_shorthash_siphash24r�RuntimeError�buffer�rr�digest�rc�r�@/usr/lib/python3/dist-packages/nacl/bindings/crypto_shorthash.pyr$s	�rcCsrttdtjd�t|�tkrt�d�t���t�	dt
�}t�||t|�|�}t|dktj
d�t�|t
�dd�S)aCCompute a fast, cryptographic quality, keyed hash of the input data

    :param data:
    :type data: bytes
    :param key: len(key) must be equal to
                :py:data:`.XKEYBYTES` (16)
    :type key: bytes
    :raises nacl.exceptions.UnavailableError: If called when using a
        minimal build of libsodium.
    zNot available in minimal buildrr
rrN)r�has_crypto_shorthash_siphashx24r�UnavailableErrorr�	XKEYBYTESrrrr�XBYTESr�crypto_shorthash_siphashx24rrrrrrr8s��r)�nacl.exceptions�
exceptionsr�nacl._sodiumrrr�bool�&PYNACL_HAS_CRYPTO_SHORTHASH_SIPHASHX24r� crypto_shorthash_siphash24_bytesr�int�__annotations__�#crypto_shorthash_siphash24_keybytesrrr�!crypto_shorthash_siphashx24_bytes�$crypto_shorthash_siphashx24_keybytes�bytesrrrrrr�<module>s�