o
    g                     @   s   U d dl mZ d dlmZmZ d dlmZ e Z	e
ed< e Ze
ed< e Ze
ed< dedefd	d
ZdedefddZdedefddZdS )    )
exceptions)ffilib)ensurecrypto_hash_BYTEScrypto_hash_sha256_BYTEScrypto_hash_sha512_BYTESmessagereturnc                 C   F   t dt}t|| t| }t|dkdtjd t 	|tdd S zb
    Hashes and returns the message ``message``.

    :param message: bytes
    :rtype: bytes
    zunsigned char[]r   zUnexpected library error)raisingN)
r   newr   r   crypto_hashlenr   excRuntimeErrorbufferr	   digestrc r   S/var/www/html/api-tag/env/lib/python3.10/site-packages/nacl/bindings/crypto_hash.pyr         r   c                 C   r   r   )
r   r   r   r   crypto_hash_sha256r   r   r   r   r   r   r   r   r   r   (   r   r   c                 C   r   r   )
r   r   r   r   crypto_hash_sha512r   r   r   r   r   r   r   r   r   r   5   r   r   N)naclr   r   nacl._sodiumr   r   nacl.exceptionsr   crypto_hash_sha512_bytesr   int__annotations__crypto_hash_sha256_bytesr   r   bytesr   r   r   r   r   r   r   <module>   s   