• File: RIPEMD.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib64/python3.7/site-packages/Crypto/Hash/__pycache__/RIPEMD.cpython-37.pyc
  • Date Modified: 01/31/2023 11:01 AM
  • File size: 1.99 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

Bd\R@sfdZdZdddgZddlTddlmZddlmmZeZ	Gd	ddeZ
dd
dZe
jZe
j
Z
dS)afRIPEMD-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$newdigest_size
RIPEMD160Hash)*)HashAlgoNc@s4eZdZdZedZdZdZd
ddZddd	Z	dS)rzNClass that implements a RIPMD-160 hash
    
    :undocumented: block_size
    z+$@NcCst|t|dS)N)r__init__hashFactory)selfdatar
E/opt/alt/python37/lib64/python3.7/site-packages/Crypto/Hash/RIPEMD.pyr	FszRIPEMD160Hash.__init__cCst|S)N)r)rrr
r
rrIszRIPEMD160Hash.new)N)N)
__name__
__module____qualname____doc__bZoidr
block_sizer	rr
r
r
rr3s

cCst|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 `RIPEMD160Hash.update()`.
        Optional.

    :Return: A `RIPEMD160Hash` object
    )rr)rr
r
rrLs)N)rZ_revision____all__ZCrypto.Util.py3compatZCrypto.Hash.hashalgorZCrypto.Hash._RIPEMD160ZHashZ
_RIPEMD160r
rrrrr
r
r
r<module>'s