Current File : //usr/lib64/python2.7/site-packages/Crypto/Hash/RIPEMD.pyc
�
Bd\Rc@s�dZdZdddgZddlTddlmZddljjZeZ	defd	��YZ
dd
�Ze
j
Z
e
jZdS(sfRIPEMD-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
s$Id$tnewtdigest_sizet
RIPEMD160Hashi����(t*(tHashAlgoNcBs>eZdZed�ZdZdZdd�Zdd�Z	RS(sNClass that implements a RIPMD-160 hash
    
    :undocumented: block_size
    s+$ii@cCstj|t|�dS(N(Rt__init__thashFactory(tselftdata((s8/usr/lib64/python2.7/site-packages/Crypto/Hash/RIPEMD.pyRFscCs
t|�S(N(R(RR((s8/usr/lib64/python2.7/site-packages/Crypto/Hash/RIPEMD.pyRIsN(
t__name__t
__module__t__doc__tbtoidRt
block_sizetNoneRR(((s8/usr/lib64/python2.7/site-packages/Crypto/Hash/RIPEMD.pyR3s
cCst�j|�S(sReturn 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
    (RR(R((s8/usr/lib64/python2.7/site-packages/Crypto/Hash/RIPEMD.pyRLs(Rt_revision__t__all__tCrypto.Util.py3compattCrypto.Hash.hashalgoRtCrypto.Hash._RIPEMD160tHasht
_RIPEMD160RRRRRR(((s8/usr/lib64/python2.7/site-packages/Crypto/Hash/RIPEMD.pyt<module>'s