
    Eh                         d Z dZg dZddl ddlmZ 	 ddlZej                  Z G d de      Zd
d	Zej                  Zej                  Zy# e	$ r	 ddl
Z
e
ZY 5w xY w)a  SHA-1 cryptographic hash algorithm.

SHA-1_ produces the 160 bit digest of a message.

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

*SHA* stands for Secure Hash Algorithm.

This algorithm is not considered secure. Do not use it for new designs.

.. _SHA-1: http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf
z$Id$)newdigest_sizeSHA1Hash    )*)HashAlgoNc                   8    e Zd ZdZ ed      ZdZdZddZddZ	y)	r   zJClass that implements a SHA-1 hash
    
    :undocumented: block_size
    z+   @   Nc                 :    t        j                  | t        |       y N)r   __init__hashFactoryselfdatas     P/var/www/html/bid_assistant/venv/lib/python3.12/site-packages/Crypto/Hash/SHA.pyr   zSHA1Hash.__init__I   s    $T2    c                     t        |      S r   )r   r   s     r   r   zSHA1Hash.newL   s    ~r   r   )
__name__
__module____qualname____doc__boidr   
block_sizer   r    r   r   r   r   6   s(     *
+CKJ3r   r   c                 4    t               j                  |       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 `SHA1Hash.update()`.
        Optional.

    :Return: A `SHA1Hash` object
    )r   r   )r   s    r   r   r   O   s     :>>$r   r   )r   _revision____all__Crypto.Util.py3compatCrypto.Hash.hashalgor   hashlibsha1r   ImportErrorshar   r   r   r   r   r   r   <module>r&      sr   *" 
- # ),,Kx 2  ""   
]  Ks   A AA