B
Bd\R
@ sf d Z dZdddgZddlT ddlmZ ddlm mZ eZ G d d deZ
dd
dZe
jZe
j
Z
dS )a 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
z$Id$newdigest_sizeMD2Hash )*)HashAlgoNc @ s4 e Zd ZdZedZdZdZd ddZd
ddZ dS )r zIClass that implements an MD2 hash
:undocumented: block_size
u
*H÷
Nc C s t | t| d S )N)r __init__hashFactory)selfdata r B/opt/alt/python37/lib64/python3.7/site-packages/Crypto/Hash/MD2.pyr C s zMD2Hash.__init__c C s t |S )N)r )r
r r r r
r F s zMD2Hash.new)N)N)
__name__
__module____qualname____doc__bZoidr
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 `MD2Hash.update()`.
Optional.
:Return: An `MD2Hash` object
)r r )r r r r
r I s )N)r Z_revision____all__ZCrypto.Util.py3compatZCrypto.Hash.hashalgor ZCrypto.Hash._MD2ZHashZ_MD2r r r r r r r r r
<module>$ s