ó Û_e[c@`sdddlmZmZmZddlZddlZejjZ ejj Z ejj Z ejjZejjZejjZejjZejjZejjZejjZejjZejjZejj Z!ejj"Z#ejj$Z%ej&j'd„Z(ej&j'd„Z)e dddej&j'd„Z*e*Z+dej&j'd„Z,e,Z-dej&j'd„Z.dS( i(tabsolute_importtdivisiontprint_functionNcC`s|jtjj|ƒƒS(N(tencodetnacltbindingstcrypto_hash_sha256(tmessagetencoder((s+/tmp/pip-install-KP2Jbq/pynacl/nacl/hash.pytsha256(scC`s|jtjj|ƒƒS(N(RRRtcrypto_hash_sha512(RR((s+/tmp/pip-install-KP2Jbq/pynacl/nacl/hash.pytsha512,stc C`s1t|d|d|d|d|ƒ}|j|ƒS(s One-shot blake2b digest :param data: the digest input byte sequence :type data: bytes :param digest_size: the requested digest size; must be at most :py:data:`.BLAKE2B_BYTES_MAX`; the default digest size is :py:data:`.BLAKE2B_BYTES` :type digest_size: int :param key: the key to be set for keyed MAC/PRF usage; if set, the key must be at most :py:data:`.BLAKE2B_KEYBYTES_MAX` long :type key: bytes :param salt: an initialization salt at most :py:data:`.BLAKE2B_SALTBYTES` long; it will be zero-padded if needed :type salt: bytes :param person: a personalization string at most :py:data:`.BLAKE2B_PERSONALBYTES` long; it will be zero-padded if needed :type person: bytes :param encoder: the encoder to use on returned digest :type encoder: class :return: encoded bytes data :rtype: the return type of the choosen encoder t digest_sizetkeytsalttperson(t _b2b_hashR(tdataR RRRRtdigest((s+/tmp/pip-install-KP2Jbq/pynacl/nacl/hash.pytblake2b0scC`st||ƒ}|j|ƒS(s  Computes a keyed MAC of ``message`` using siphash-2-4 :param message: The message to hash. :type message: bytes :param key: the message authentication key for the siphash MAC construct :type key: bytes(:py:data:`.SIPHASH_KEYBYTES`) :param encoder: A class that is able to encode the hashed message. :return: The hashed message. :rtype: bytes(:py:data:`.SIPHASH_BYTES`) The :py:func:`.siphash24` construct is also exposed with the :py:func:`.shorthash` name for compatibility with libsodium names. (t _sip_hashR(RRRR((s+/tmp/pip-install-KP2Jbq/pynacl/nacl/hash.pyt siphash24UscC`st||ƒ}|j|ƒS(s× Computes a keyed MAC of ``message`` using the 128 bit siphash-2-4 variant siphashx24 :param message: The message to hash. :type message: bytes :param key: the message authentication key for the siphash MAC construct :type key: bytes(:py:data:`.SIPHASHX_KEYBYTES`) :param encoder: A class that is able to encode the hashed message. :return: The hashed message. :rtype: bytes(:py:data:`.SIPHASHX_BYTES`) .. versionadded:: 1.2 (t _sip_hashxR(RRRR((s+/tmp/pip-install-KP2Jbq/pynacl/nacl/hash.pyt siphashx24ks(/t __future__RRRt nacl.bindingsRt nacl.encodingRtcrypto_generichash_BYTESt BLAKE2B_BYTEStcrypto_generichash_BYTES_MINtBLAKE2B_BYTES_MINtcrypto_generichash_BYTES_MAXtBLAKE2B_BYTES_MAXtcrypto_generichash_KEYBYTEStBLAKE2B_KEYBYTEStcrypto_generichash_KEYBYTES_MINtBLAKE2B_KEYBYTES_MINtcrypto_generichash_KEYBYTES_MAXtBLAKE2B_KEYBYTES_MAXtcrypto_generichash_SALTBYTEStBLAKE2B_SALTBYTESt crypto_generichash_PERSONALBYTEStBLAKE2B_PERSONALBYTESt crypto_shorthash_siphash24_BYTESt SIPHASH_BYTESt#crypto_shorthash_siphash24_KEYBYTEStSIPHASH_KEYBYTESt!crypto_shorthash_siphashx24_BYTEStSIPHASHX_BYTESt$crypto_shorthash_siphashx24_KEYBYTEStSIPHASHX_KEYBYTESt(crypto_generichash_blake2b_salt_personalRtcrypto_shorthash_siphash24Rtcrypto_shorthash_siphashx24Rtencodingt HexEncoderR R Rt generichashRt shorthashR(((s+/tmp/pip-install-KP2Jbq/pynacl/nacl/hash.pyts4