Your IP : 216.73.217.13


Current Path : /usr/lib/python3/dist-packages/nacl/bindings/__pycache__/
Upload File :
Current File : //usr/lib/python3/dist-packages/nacl/bindings/__pycache__/crypto_hash.cpython-38.pyc

U

�֫[��@spddlmZmZmZddlmZddlmZm	Z	ddl
mZe	��Z
e	��Ze	��Zdd�Zdd�Zd	d
�ZdS)�)�absolute_import�division�print_function)�
exceptions)�ffi�lib)�ensurecCsFt�dt�}t�||t|��}t|dkdtjd�t�	|t�dd�S�zb
    Hashes and returns the message ``message``.

    :param message: bytes
    :rtype: bytes
    zunsigned char[]rzUnexpected library error)ZraisingN)
r�new�crypto_hash_BYTESr�crypto_hash�lenr�exc�RuntimeError�buffer��messageZdigestZrc�r�;/usr/lib/python3/dist-packages/nacl/bindings/crypto_hash.pyrs�rcCsFt�dt�}t�||t|��}t|dkdtjd�t�	|t�dd�Sr	)
rr
�crypto_hash_sha256_BYTESr�crypto_hash_sha256r
rrrrrrrrr+s�rcCsFt�dt�}t�||t|��}t|dkdtjd�t�	|t�dd�Sr	)
rr
�crypto_hash_sha512_BYTESr�crypto_hash_sha512r
rrrrrrrrr:s�rN)Z
__future__rrrZnaclrrZnacl._sodiumrrZnacl.exceptionsrZcrypto_hash_sha512_bytesrZcrypto_hash_sha256_bytesrrrrrrrrr�<module>s