ffddlmZddlmZmZmZmZmZmZm Z eddZ Gdde Z d dZ e jZe jZdS) bord)load_pycryptodome_raw_lib VoidPointer SmartPointercreate_string_bufferget_raw_bufferc_size_t c_uint8_ptrzCrypto.Hash._MD2a int md2_init(void **shaState); int md2_destroy(void *shaState); int md2_update(void *hs, const uint8_t *buf, size_t len); int md2_digest(const void *shaState, uint8_t digest[20]); int md2_copy(const void *src, void *dst); cFeZdZdZdZdZdZd dZdZdZ dZ d Z d d Z dS) MD2HashaAn MD2 hash object. Do not instantiate directly. Use the :func:`new` function. :ivar oid: ASN.1 Object ID :vartype oid: string :ivar block_size: the size in bytes of the internal message block, input to the compression function :vartype block_size: integer :ivar digest_size: the size in bytes of the resulting hash :vartype digest_size: integer z1.2.840.113549.2.2Nc6t}t|}|rt d|zt |tj|_|r| |dSdS)N Error %d while instantiating MD2) r _raw_md2_libmd2_init address_of ValueErrorrget md2_destroy_stateupdate)selfdatastateresults q/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Hash/MD2.py__init__zMD2Hash.__init__Ks &&u'7'7'9'9::  '?%&'' '"599;;#/#;==   KK       c t|jt |t t |}|rtd|zdS)zContinue hashing of a message by consuming the next chunk of data. Args: data (byte string/byte array/memoryview): The next chunk of the message being hashed. rN)r md2_updaterrr r lenr)rrrs rrzMD2Hash.updateVst(():):)4T):):)1#d)))<)<>>  '?%&'' ' ' 'rct|j}t|j|}|rt d|zt|S)zReturn the **binary** (non-printable) digest of the message that has been hashed so far. :return: The hash digest, computed over the data processed so far. Binary form. :rtype: byte string r)r digest_sizer md2_digestrrrr )rbfrrs rdigestzMD2Hash.digestdso#4#344(():):),..  '?%&'' 'c"""rcddd|DS)zReturn the **printable** digest of the message that has been hashed so far. :return: The hash digest, computed over the data processed so far. Hexadecimal encoded. :rtype: string c2g|]}dt|zS)z%02xr).0xs r z%MD2Hash.hexdigest..}s#@@@Qa(@@@r)joinr')rs r hexdigestzMD2Hash.hexdigestus-ww@@$++--@@@AAArct}t|j|j}|rt d|z|S)a4Return a copy ("clone") of the hash object. The copy will have the same internal state as the original hash object. This can be used to efficiently compute the digests of strings that share a common initial substring. :return: A hash object of the same type zError %d while copying MD2)r rmd2_copyrrr)rcloners rcopyz MD2Hash.copysc &&t{'8'8',|'7'7'9'9;;  D9FBCC C rc t|SN)r )rrs rnewz MD2Hash.newst}}rr5) __name__ __module__ __qualname____doc__r$ block_sizeoidrrr'r/r3r6rrr r 5s  KJ C     ' ' '###"BBB$rr NcDt|S)aCreate a new hash object. :parameter data: Optional. The very first chunk of the message to hash. It is equivalent to an early call to :meth:`MD2Hash.update`. :type data: bytes/bytearray/memoryview :Return: A :class:`MD2Hash` hash object )r r6)rs rr6r6s 99==  rr5)Crypto.Util.py3compatrCrypto.Util._raw_apirrrrr r r robjectr r6r$r;r=rrrBs>'&&&&&////////////////// )(*    ]]]]]f]]]@    !   r