
    Eh                         d Z dZg dZddl ddlmZ ddlmc mZ eZ	 G d de      Z
d
d	Ze
j                  Ze
j                  Zy)af  RIPEMD-160 cryptographic hash algorithm.

RIPEMD-160_ produces the 160 bit digest of a message.

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

RIPEMD-160 stands for RACE Integrity Primitives Evaluation Message Digest
with a 160 bit digest. It was invented by Dobbertin, Bosselaers, and Preneel.

This algorithm is considered secure, although it has not been scrutinized as
extensively as SHA-1. Moreover, it provides an informal security level of just
80bits.

.. _RIPEMD-160: http://homes.esat.kuleuven.be/~bosselae/ripemd160.html
z$Id$)newdigest_sizeRIPEMD160Hash    )*)HashAlgoNc                   8    e Zd ZdZ ed      ZdZdZddZddZ	y)	r   zNClass that implements a RIPMD-160 hash
    
    :undocumented: block_size
    z+$   @   Nc                 :    t        j                  | t        |       y N)r   __init__hashFactoryselfdatas     S/var/www/html/bid_assistant/venv/lib/python3.12/site-packages/Crypto/Hash/RIPEMD.pyr   zRIPEMD160Hash.__init__F   s    $T2    c                     t        |      S r   )r   r   s     r   r   zRIPEMD160Hash.newI   s    T""r   r   )
__name__
__module____qualname____doc__boidr   
block_sizer   r    r   r   r   r   3   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 `RIPEMD160Hash.update()`.
        Optional.

    :Return: A `RIPEMD160Hash` object
    )r   r   )r   s    r   r   r   L   s     ?t$$r   r   )r   _revision____all__Crypto.Util.py3compatCrypto.Hash.hashalgor   Crypto.Hash._RIPEMD160Hash
_RIPEMD160r   r   r   r   r   r   r   r   <module>r%      sR   *( 
2 # ) + +#H #2% '' %%
r   