Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Hash/__pycache__/MD2.cpython-311.pyc



]jddlmZddlmZmZmZmZmZmZm	Z	eddZ
GddeZd	dZ
ejZejZdS)
bord)load_pycryptodome_raw_libVoidPointerSmartPointercreate_string_bufferget_raw_bufferc_size_tc_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);
                        cFeZdZdZdZdZdZddZdZdZ	dZ
d	Zdd
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
ValueErrorrgetmd2_destroy_stateupdate)selfdatastateresults    q/builddir/build/BUILD/imunify360-venv-2.6.3/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	|tt
|}|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_updaterrrr
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)rdigest_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
<listcomp>z%MD2Hash.hexdigest.<locals>.<listcomp>}s#@@@Qa(@@@r)joinr')rs r	hexdigestzMD2Hash.hexdigestus-ww@@$++--@@@AAArct}t|j|j}|rtd|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  rnewzMD2Hash.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
rrobjectr
r6r$r;r=rr<module>rBs>'&&&&&//////////////////)(*	]]]]]f]]]@!



r
Back to Directory File Manager