HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //lib/python3/dist-packages/nacl/bindings/__pycache__/crypto_shorthash.cpython-38.pyc
U

�֫[��@spddlmZmZmZddlmZddlmZm	Z	ddlm
Z
e	��Ze	�
�Ze	��Ze	��Zdd�Zdd�ZdS)	�)�absolute_import�division�print_functionN)�ffi�lib)�ensurecCsbt|�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 {0} bytes�unsigned char[]r�ZraisingN)
�len�KEYBYTES�exc�
ValueError�formatr�new�BYTESr�crypto_shorthash_siphash24r�RuntimeError�buffer��data�keyZdigestZrc�r�@/usr/lib/python3/dist-packages/nacl/bindings/crypto_shorthash.pyrs	�rcCsbt|�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:`.XKEYBYTES` (16)
    :type key: bytes
    rr	rr
N)
r�	XKEYBYTESr
rrrr�XBYTESr�crypto_shorthash_siphashx24rrrrrrrr.s	�r)Z
__future__rrrZnacl.exceptions�
exceptionsr
Znacl._sodiumrrrZ crypto_shorthash_siphash24_bytesrZ#crypto_shorthash_siphash24_keybytesrZ!crypto_shorthash_siphashx24_bytesrZ$crypto_shorthash_siphashx24_keybytesrrrrrrr�<module>s