o
    Bd\R%  ã                   @   s„   d Z dZg d¢ZddlT ddlmZ z	ddlZejZW n e	y,   ddl
mZ eZY nw G dd	„ d	eƒZdd
d„ZejZejZdS )a†  SHA-384 cryptographic hash algorithm.

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

    >>> from Crypto.Hash import SHA384
    >>>
    >>> h = SHA384.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Ú
SHA384Hashé    )Ú*)ÚHashAlgoN)Ú_SHA384c                   @   s4   e Zd ZdZedƒZdZdZd
dd„Zd
dd	„Z	dS )r   zLClass that implements a SHA-384 hash
    
    :undocumented: block_size
    u   	`Â†Heé0   é€   Nc                 C   s   t  | t|¡ d S ©N)r   Ú__init__ÚhashFactory©ÚselfÚdata© r   úD/var/www/html/env/lib/python3.10/site-packages/Crypto/Hash/SHA384.pyr   G   s   zSHA384Hash.__init__c                 C   s   t |ƒS r
   )r   r   r   r   r   r   J   s   zSHA384Hash.newr
   )
Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚbÚoidr   Ú
block_sizer   r   r   r   r   r   r   4   s    
r   c                 C   s   t ƒ  | ¡S )a  Return 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 `SHA384Hash.update()`.
        Optional.

    :Return: A `SHA384Hash` object
    )r   r   )r   r   r   r   r   M   s   r   r
   )r   Ú_revision__Ú__all__ÚCrypto.Util.py3compatÚCrypto.Hash.hashalgor   ÚhashlibÚsha384r   ÚImportErrorÚCrypto.Hashr   r   r   r   r   r   r   r   r   Ú<module>   s    
þ

