ó Û_e[c@`s•ddlmZmZmZddlmZddlmZm Z ddl m Z e j ƒZ e jƒZe j ƒZd„Zd„Zd„ZdS( i(tabsolute_importtdivisiontprint_function(t exceptions(tffitlib(tensurecC`sZtjdtƒ}tj||t|ƒƒ}t|dkddtjƒtj |tƒS(sb Hashes and returns the message ``message``. :param message: bytes :rtype: bytes sunsigned char[]isUnexpected library errortraising( Rtnewtcrypto_hash_BYTESRt crypto_hashtlenRtexct RuntimeErrortbuffer(tmessagetdigesttrc((s;/tmp/pip-install-KP2Jbq/pynacl/nacl/bindings/crypto_hash.pyR s   cC`sZtjdtƒ}tj||t|ƒƒ}t|dkddtjƒtj |tƒS(sb Hashes and returns the message ``message``. :param message: bytes :rtype: bytes sunsigned char[]isUnexpected library errorR( RRtcrypto_hash_sha256_BYTESRtcrypto_hash_sha256R RR R R(RRR((s;/tmp/pip-install-KP2Jbq/pynacl/nacl/bindings/crypto_hash.pyR+s   cC`sZtjdtƒ}tj||t|ƒƒ}t|dkddtjƒtj |tƒS(sb Hashes and returns the message ``message``. :param message: bytes :rtype: bytes sunsigned char[]isUnexpected library errorR( RRtcrypto_hash_sha512_BYTESRtcrypto_hash_sha512R RR R R(RRR((s;/tmp/pip-install-KP2Jbq/pynacl/nacl/bindings/crypto_hash.pyR:s   N(t __future__RRRtnaclRR t nacl._sodiumRRtnacl.exceptionsRtcrypto_hash_sha512_bytesR tcrypto_hash_sha256_bytesRRR RR(((s;/tmp/pip-install-KP2Jbq/pynacl/nacl/bindings/crypto_hash.pyts