U vf @ sN d Z ddlZddlZejjZejjZejj Z ejjZejj ZejjZejjZejjZejjZejjZejjZejjZejjZejjZ ejj!Z"ejj#Z$ej%j&fe'ej%j(e'dddZ)ej%j&fe'ej%j(e'dddZ*edddej%j&fe'e+e'e'e'ej%j(e'd d dZ,e,Z-dej%j&fe'e'ej%j(e'dd dZ.e.Z/dej%j&fe'e'ej%j(e'dddZ0dS )z The :mod:`nacl.hash` module exposes one-shot interfaces for libsodium selected hash primitives and the constants needed for their usage. N)messageencoderreturnc C s | 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 )encodenaclbindingsZcrypto_hash_sha256r r r