Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/site-packages/Crypto/Hash/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/site-packages/Crypto/Hash/__pycache__/SHA512.cpython-35.pyc



Bd\R"�@s�dZdZdddgZddlTddlmZyddlZejZWn(e	k
rxdd	l
mZeZYnXGd
d�de�Zddd�Z
ejZejZdS)a�SHA-512 cryptographic hash algorithm.

SHA-512 belongs to the SHA-2_ family of cryptographic hashes.
It produces the 512 bit digest of a message.

    >>> from Crypto.Hash import SHA512
    >>>
    >>> h = SHA512.new()
    >>> h.update(b'Hello')
    >>> print h.hexdigest()

*SHA* stands for Secure Hash Algorithm.

.. _SHA-2: http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf
z$Id$�new�digest_size�
SHA512Hash�)�*)�HashAlgoN)�_SHA512c@sLeZdZdZed�ZdZdZddd�Zddd	�Z	dS)
rzLClass that implements a SHA-512 hash
    
    :undocumented: block_size
    u	`†He�@�NcCstj|t|�dS)N)r�__init__�hashFactory)�self�data�r�E/opt/alt/python35/lib64/python3.5/site-packages/Crypto/Hash/SHA512.pyr
GszSHA512Hash.__init__cCs
t|�S)N)r)rr
rrrrJszSHA512Hash.new)
�__name__�
__module__�__qualname__�__doc__�bZoidr�
block_sizer
rrrrrr4s
cCst�j|�S)aReturn a fresh instance of the hash object.

    :Parameters:
       data : byte string
        The very first chunk of the message to hash.
        It is equivalent to an early call to `SHA512Hash.update()`.
        Optional.

    :Return: A `SHA512Hash` object
    )rr)r
rrrrMs)rZ_revision__�__all__ZCrypto.Util.py3compatZCrypto.Hash.hashalgorZhashlibZsha512r�ImportErrorZCrypto.Hashrrrrrrrrr�<module>#s