%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/
Upload File :
Create Path :
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/hash.pyc

�
�֫[c@`sjdZddlmZmZmZddlZddlZejj	Z
ejjZejj
ZejjZejjZejjZejjZejjZejjZejjZejjZejjZ ejj!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(
s�
The :mod:`nacl.hash` module exposes one-shot interfaces
for libsodium selected hash primitives and the constants needed
for their usage.
i(tabsolute_importtdivisiontprint_functionNcC`s|jtjj|��S(s�
    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
    (tencodetnacltbindingstcrypto_hash_sha256(tmessagetencoder((s@/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/hash.pytsha256<s
cC`s|jtjj|��S(s�
    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
    (RRRtcrypto_hash_sha512(RR((s@/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/hash.pytsha512Is
tc
C`s1t|d|d|d|d|�}|j|�S(s�
    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
    tdigest_sizetkeytsalttperson(t	_b2b_hashR(tdataR
RRRRtdigest((s@/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/hash.pytblake2bVscC`st||�}|j|�S(s�
    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`)
    (t	_sip_hashR(RRRR((s@/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/hash.pyt	siphash24|s
cC`st||�}|j|�S(s�
    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`)

    .. versionadded:: 1.2
    (t
_sip_hashxR(RRRR((s@/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/hash.pyt
siphashx24�s(0t__doc__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	RRtgenerichashRt	shorthashR(((s@/opt/plesk/python/2.7/lib64/python2.7/site-packages/nacl/hash.pyt<module>s6

!

Zerion Mini Shell 1.0