/usr/lib/python3/dist-packages/nacl/__pycache__
NameSizeModeActions
encoding.cpython-310.pyc34580644editdlrm
exceptions.cpython-310.pyc24090644editdlrm
hash.cpython-310.pyc50440644editdlrm
hashlib.cpython-310.pyc46000644editdlrm
public.cpython-310.pyc132900644editdlrm
secret.cpython-310.pyc98220644editdlrm
signing.cpython-310.pyc78120644editdlrm
utils.cpython-310.pyc25940644editdlrm
__init__.cpython-310.pyc5670644editdlrm
Edit: /usr/lib/python3/dist-packages/nacl/__pycache__/hash.cpython-310.pyc (5044B)
o a@sdZddlZddlZejjZ ejjZ ejj Z ejj Z ejj Z ejjZ ejjZ ejjZ ejjZ ejjZ ejjZ ejjZ ejjZ ejjZ ejj!Z"ejj#Z$ej%j&fde'dej%j(de'fddZ)ej%j&fde'dej%j(de'fdd Z*ed d d ej%j&fd e'd e+d e'de'de'dej%j(de'fddZ,e,Z-d ej%j&fde'd e'dej%j(de'fddZ.e.Z/d ej%j&fde'd e'dej%j(de'fddZ0dS)z The :mod:`nacl.hash` module exposes one-shot interfaces for libsodium selected hash primitives and the constants needed for their usage. NmessageencoderreturncC|tj|S)z Hashes ``message`` with SHA256. :param message: The message to hash. :type message: bytes :param encoder: A class that is able to encode the hashed message. :returns: The hashed message. :rtype: bytes )encodenaclbindingscrypto_hash_sha256rrr +/usr/lib/python3/dist-packages/nacl/hash.pysha256> r cCr)z Hashes ``message`` with SHA512. :param message: The message to hash. :type message: bytes :param encoder: A class that is able to encode the hashed message. :returns: The hashed message. :rtype: bytes )rrrcrypto_hash_sha512r r r r sha512Mrrdata digest_sizekeysaltpersoncCst|||||d}||S)a Hashes ``data`` with blake2b. :param data: the digest input byte sequence :type data: bytes :param digest_size: the requested digest size; must be at most :const:`BLAKE2B_BYTES_MAX`; the default digest size is :const:`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 :data:`~nacl.hash.BLAKE2B_KEYBYTES_MAX` long :type key: bytes :param salt: an initialization salt at most :const:`BLAKE2B_SALTBYTES` long; it will be zero-padded if needed :type salt: bytes :param person: a personalization string at most :const:`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 :returns: The hashed message. :rtype: bytes )rrrr) _b2b_hashr)rrrrrrdigestr r r blake2b\s#  rcCt||}||S)a Computes a keyed MAC of ``message`` using the short-input-optimized siphash-2-4 construction. :param message: The message to hash. :type message: bytes :param key: the message authentication key for the siphash MAC construct :type key: bytes(:const:`SIPHASH_KEYBYTES`) :param encoder: A class that is able to encode the hashed message. :returns: The hashed message. :rtype: bytes(:const:`SIPHASH_BYTES`) ) _sip_hashrrrrrr r r siphash24s  rcCr)aE Computes a keyed MAC of ``message`` using the 128 bit variant of the siphash-2-4 construction. :param message: The message to hash. :type message: bytes :param key: the message authentication key for the siphash MAC construct :type key: bytes(:const:`SIPHASHX_KEYBYTES`) :param encoder: A class that is able to encode the hashed message. :returns: The hashed message. :rtype: bytes(:const:`SIPHASHX_BYTES`) :raises nacl.exceptions.UnavailableError: If called when using a minimal build of libsodium. .. versionadded:: 1.2 ) _sip_hashxrrr r r siphashx24s  r)1__doc__ nacl.bindingsr nacl.encodingrcrypto_generichash_BYTES BLAKE2B_BYTEScrypto_generichash_BYTES_MINBLAKE2B_BYTES_MINcrypto_generichash_BYTES_MAXBLAKE2B_BYTES_MAXcrypto_generichash_KEYBYTESBLAKE2B_KEYBYTEScrypto_generichash_KEYBYTES_MINBLAKE2B_KEYBYTES_MINcrypto_generichash_KEYBYTES_MAXBLAKE2B_KEYBYTES_MAXcrypto_generichash_SALTBYTESBLAKE2B_SALTBYTES crypto_generichash_PERSONALBYTESBLAKE2B_PERSONALBYTES crypto_shorthash_siphash24_BYTES SIPHASH_BYTES#crypto_shorthash_siphash24_KEYBYTESSIPHASH_KEYBYTEShas_crypto_shorthash_siphashx24SIPHASHX_AVAILABLE!crypto_shorthash_siphashx24_BYTESSIPHASHX_BYTES$crypto_shorthash_siphashx24_KEYBYTESSIPHASHX_KEYBYTES(crypto_generichash_blake2b_salt_personalrcrypto_shorthash_siphash24rcrypto_shorthash_siphashx24rencoding HexEncoderbytesEncoderr rintr generichashr shorthashrr r r r s    )