ó õùPc@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$tnewt digest_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__t hashFactory(tselftdata((s*..\python\site-packages\Crypto\Hash\MD2.pyRCscCs t|ƒS(N(R(RR((s*..\python\site-packages\Crypto\Hash\MD2.pyRFsN( t__name__t __module__t__doc__tbtoidRt block_sizetNoneRR(((s*..\python\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((s*..\python\site-packages\Crypto\Hash\MD2.pyRIs (R t _revision__t__all__tCrypto.Util.py3compattCrypto.Hash.hashalgoRtCrypto.Hash._MD2tHasht_MD2RRRRRR(((s*..\python\site-packages\Crypto\Hash\MD2.pyt$s