Current File : //usr/lib64/python2.7/site-packages/Crypto/Hash/MD2.pyo
�
Bd\Rc@s�dZdZdddgZddlTddlmZddljjZeZ	defd	��YZ
dd
�Ze
j
Z
e
jZdS(s�MD2 cryptographic hash algorithm.

MD2 is specified in RFC1319_ and it produces the 128 bit digest of a message.

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

MD2 stand for Message Digest version 2, and it was invented by Rivest in 1989.

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

.. _RFC1319: http://tools.ietf.org/html/rfc1319
s$Id$tnewtdigest_sizetMD2Hashi����(t*(tHashAlgoNcBs>eZdZed�ZdZdZdd�Zdd�Z	RS(sIClass that implements an MD2 hash
    
    :undocumented: block_size
    s
*�H��
icCstj|t|�dS(N(Rt__init__thashFactory(tselftdata((s5/usr/lib64/python2.7/site-packages/Crypto/Hash/MD2.pyRCscCs
t|�S(N(R(RR((s5/usr/lib64/python2.7/site-packages/Crypto/Hash/MD2.pyRFsN(
t__name__t
__module__t__doc__tbtoidRt
block_sizetNoneRR(((s5/usr/lib64/python2.7/site-packages/Crypto/Hash/MD2.pyR0s
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 `MD2Hash.update()`.
        Optional.

    :Return: An `MD2Hash` object
    (RR(R((s5/usr/lib64/python2.7/site-packages/Crypto/Hash/MD2.pyRIs(Rt_revision__t__all__tCrypto.Util.py3compattCrypto.Hash.hashalgoRtCrypto.Hash._MD2tHasht_MD2RRRRRR(((s5/usr/lib64/python2.7/site-packages/Crypto/Hash/MD2.pyt<module>$s