Current File : //proc/self/root/proc/self/root/usr/lib64/python2.7/site-packages/Crypto/Hash/MD5.pyc
�
Bd\Rc@s�dZdZdddgZddlTddlmZyddlZejZWn#e	k
rsddlZeZnXdefd	��YZ
dd
�Ze
j
Z
e
jZdS(s�MD5 cryptographic hash algorithm.

MD5 is specified in RFC1321_ and produces the 128 bit digest of a message.

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

MD5 stand for Message Digest version 5, and it was invented by Rivest in 1991.

This algorithm is insecure. Do not use it for new designs.

.. _RFC1321: http://tools.ietf.org/html/rfc1321 
s$Id$tnewtdigest_sizetMD5Hashi����(t*(tHashAlgoNcBs>eZdZed�ZdZdZdd�Zdd�Z	RS(sIClass that implements an MD5 hash
    
    :undocumented: block_size
    s
*�H��
ii@cCstj|t|�dS(N(Rt__init__thashFactory(tselftdata((s5/usr/lib64/python2.7/site-packages/Crypto/Hash/MD5.pyRIscCs
t|�S(N(R(RR((s5/usr/lib64/python2.7/site-packages/Crypto/Hash/MD5.pyRLsN(
t__name__t
__module__t__doc__tbtoidRt
block_sizetNoneRR(((s5/usr/lib64/python2.7/site-packages/Crypto/Hash/MD5.pyR6s
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 `MD5Hash.update()`.
        Optional.

    :Return: A `MD5Hash` object
    (RR(R((s5/usr/lib64/python2.7/site-packages/Crypto/Hash/MD5.pyROs(Rt_revision__t__all__tCrypto.Util.py3compattCrypto.Hash.hashalgoRthashlibtmd5RtImportErrorRRRRR(((s5/usr/lib64/python2.7/site-packages/Crypto/Hash/MD5.pyt<module>$s