B Bd\R® ã@sfdZdZdddgZddlTddlmZddlmmZeZ Gd d„deƒZ d d d„Z e j Z e 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$ÚnewÚ digest_sizeÚMD2Hashé)Ú*)ÚHashAlgoNc@s4eZdZdZedƒZdZdZd dd„Zd dd„Z dS) rzIClass that implements an MD2 hash :undocumented: block_size u *†H†÷ éNcCst |t|¡dS)N)rÚ__init__Ú hashFactory)ÚselfÚdata©r úB/opt/alt/python37/lib64/python3.7/site-packages/Crypto/Hash/MD2.pyrCszMD2Hash.__init__cCst|ƒS)N)r)r r r r r rFsz MD2Hash.new)N)N) Ú__name__Ú __module__Ú __qualname__Ú__doc__ÚbZoidrÚ block_sizerrr r r r r0s   cCs tƒ |¡S)aReturn 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 r r r rIs )N)rZ _revision__Ú__all__ZCrypto.Util.py3compatZCrypto.Hash.hashalgorZCrypto.Hash._MD2ZHashZ_MD2r rrrrr r r r Ú$s