B
    Bd\Rœ
  ã               @   sf   d Z dZdddgZddlT ddlmZ ddlm  mZ eZ	G d	d„ deƒZ
dd
d„Ze
jZe
jZdS )a¥  MD4 cryptographic hash algorithm.

MD4 is specified in RFC1320_ and produces the 128 bit digest of a message.

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

MD4 stand for Message Digest version 4, and it was invented by Rivest in 1990.

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

.. _RFC1320: http://tools.ietf.org/html/rfc1320
z$Id$ÚnewÚdigest_sizeÚMD4Hashé    )Ú*)ÚHashAlgoNc               @   s4   e Zd ZdZedƒZdZdZd
dd„Zddd	„Z	dS )r   zIClass that implements an MD4 hash
    
    :undocumented: block_size
    u   *Â†HÂ†Ã·é   é@   Nc             C   s   t  | t|¡ d S )N)r   Ú__init__ÚhashFactory)ÚselfÚdata© r   ú.lib/python3.7/site-packages/Crypto/Hash/MD4.pyr	   C   s    zMD4Hash.__init__c             C   s   t |ƒS )N)r   )r   r   r   r   r   r   F   s    zMD4Hash.new)N)N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚbZoidr   Ú
block_sizer	   r   r   r   r   r   r   0   s   

c             C   s   t ƒ  | ¡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 `MD4Hash.update()`.
        Optional.

    :Return: A `MD4Hash` object
    )r   r   )r   r   r   r   r   I   s    )N)r   Z_revision__Ú__all__ZCrypto.Util.py3compatZCrypto.Hash.hashalgor   ZCrypto.Hash._MD4ZHashZ_MD4r
   r   r   r   r   r   r   r   r   Ú<module>$   s   

