/opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Hash/__pycache__
NameSizeModeActions
BLAKE2b.cpython-311.pyc103010644editdlrm
BLAKE2s.cpython-311.pyc103070644editdlrm
CMAC.cpython-311.pyc119500644editdlrm
cSHAKE128.cpython-311.pyc67520644editdlrm
cSHAKE256.cpython-311.pyc11350644editdlrm
HMAC.cpython-311.pyc78970644editdlrm
KangarooTwelve.cpython-311.pyc97800644editdlrm
keccak.cpython-311.pyc78580644editdlrm
KMAC128.cpython-311.pyc71510644editdlrm
KMAC256.cpython-311.pyc21800644editdlrm
MD2.cpython-311.pyc63510644editdlrm
MD4.cpython-311.pyc68450644editdlrm
MD5.cpython-311.pyc76680644editdlrm
Poly1305.cpython-311.pyc98560644editdlrm
RIPEMD.cpython-311.pyc4100644editdlrm
RIPEMD160.cpython-311.pyc66020644editdlrm
SHA.cpython-311.pyc3620644editdlrm
SHA1.cpython-311.pyc77150644editdlrm
SHA3_224.cpython-311.pyc70910644editdlrm
SHA3_256.cpython-311.pyc70910644editdlrm
SHA3_384.cpython-311.pyc73090644editdlrm
SHA3_512.cpython-311.pyc70940644editdlrm
SHA224.cpython-311.pyc79740644editdlrm
SHA256.cpython-311.pyc79700644editdlrm
SHA384.cpython-311.pyc79700644editdlrm
SHA512.cpython-311.pyc87830644editdlrm
SHAKE128.cpython-311.pyc46390644editdlrm
SHAKE256.cpython-311.pyc46390644editdlrm
TupleHash128.cpython-311.pyc50320644editdlrm
TupleHash256.cpython-311.pyc18870644editdlrm
__init__.cpython-311.pyc4240644editdlrm
Edit: /opt/imunify360/venv/lib/python3.11/site-packages/Crypto/Hash/__pycache__/KMAC128.cpython-311.pyc (7151B)
§ Ç^²]Þ—ïãóx—ddlmZddlmZmZmZddlmZddlm Z m Z ddl m Z m Z m Z Gd„de¦«Zd „Zd S) é)Ú unhexlify)ÚbordÚtobytesÚis_bytes)Úget_random_bytesé)Ú cSHAKE128ÚSHA3_256)Ú_bytepadÚ _encode_strÚ _right_encodecó<—eZdZdZd„Zd„Zd„Zd„Zd„Zd„Z d„Z d S) Ú KMAC_Hashz[A KMAC hash object. Do not instantiate directly. Use the :func:`new` function. cóþ—d|z|_||_d|_tt t |¦«¦«|¦«}| ||d¦«|_|r|j |¦«dSdS)Nz2.16.840.1.101.3.4.2.sKMAC) ÚoidÚ digest_sizeÚ_macr r rÚ_newÚ_cshakeÚupdate) ÚselfÚdataÚkeyÚmac_lenÚcustomÚ oid_variantÚcshakeÚrateÚ partial_newXs úu/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Hash/KMAC128.pyÚ__init__zKMAC_Hash.__init__.s�€ð+¨[Ñ8ˆŒØ"ˆÔàˆŒ å¥ ­G°C©L¬LÑ 9Ô 9¸4Ñ@Ô@ˆ Ø—{’{ <°¸ÑAÔAˆŒ à ð &Ø ŒL× Ò  Ñ %Ô %Ð %Ð %Ð %ð &ð &ócóf—|jrtd¦«‚|j |¦«|S)z©Authenticate the next chunk of message. Args: data (bytes/bytearray/memoryview): The next chunk of the message to authenticate. z8You can only call 'digest' or 'hexdigest' on this object)rÚ TypeErrorrr)rrs r rzKMAC_Hash.update=s9€ð Œ9ð XÝÐVÑWÔWÐ Wà Œ ×Ò˜DÑ!Ô!Ð!؈ r"cóÄ—|jsS|j t|jdz¦«¦«|j |j¦«|_|jS)zŽReturn the **binary** (non-printable) MAC tag of the message. :return: The MAC tag. Binary form. :rtype: byte string é)rrrr rÚread©rs r ÚdigestzKMAC_Hash.digestKsV€ðŒyð <Ø ŒL× Ò ¥ ¨dÔ.>ÀÑ.BÑ CÔ CÑ DÔ DÐ DØœ ×)Ò)¨$Ô*:Ñ;Ô;ˆDŒIàŒyÐr"có~—d d„t| ¦«¦«D¦«¦«S)z„Return the **printable** MAC tag of the message. :return: The MAC tag. Hexadecimal encoded. :rtype: string Úcó2—g|]}dt|¦«z‘ŒS)z%02x)r)Ú.0Úxs r ú z'KMAC_Hash.hexdigest.._s#€ÐGÐGÐG¨Q˜¥ a¡¤Ñ(ÐGÐGÐGr")ÚjoinÚtupler)r(s r Ú hexdigestzKMAC_Hash.hexdigestXs5€ð�wŠwÐGÐGµ%¸¿ º ¹ ¼ Ñ2FÔ2FÐGÑGÔGÑHÔHÐHr"có—td¦«}tj||z¦«}tj|| ¦«z¦«}| ¦«| ¦«krt d¦«‚dS)a`Verify that a given **binary** MAC (computed by another party) is valid. Args: mac_tag (bytes/bytearray/memoryview): the expected MAC of the message. Raises: ValueError: if the MAC does not match. It means that the message has been tampered with or that the MAC key is incorrect. ézMAC check failedN)rr Únewr)Ú ValueError)rÚmac_tagÚsecretÚmac1Úmac2s r ÚverifyzKMAC_Hash.verifyass€õ" "Ñ%Ô%ˆåŒ|˜F WÑ,Ñ-Ô-ˆÝŒ|˜F T§[¢[¡]¤]Ñ2Ñ3Ô3ˆà �;Š;‰=Œ=˜DŸKšK™MœMÒ )Ð )ÝÐ/Ñ0Ô0Ð 0ð *Ð )r"cód—| tt|¦«¦«¦«dS)anVerify that a given **printable** MAC (computed by another party) is valid. Args: hex_mac_tag (string): the expected MAC of the message, as a hexadecimal string. Raises: ValueError: if the MAC does not match. It means that the message has been tampered with or that the MAC key is incorrect. N)r;rr)rÚ hex_mac_tags r Ú hexverifyzKMAC_Hash.hexverifyus,€ð � Š •I�g kÑ2Ô2Ñ3Ô3Ñ4Ô4Ð4Ð4Ð4r"c ó6—d|vr |j|d<tdi|¤ŽS)zNReturn a new instance of a KMAC hash object. See :func:`new`. r©)rr5)rÚkwargss r r5z KMAC_Hash.newƒs,€ð ˜FÐ "Ð "Ø $Ô 0ˆF�9Ñ åˆ}ˆ}�Vˆ}ˆ}Ðr"N) Ú__name__Ú __module__Ú __qualname__Ú__doc__r!rr)r2r;r>r5r@r"r rr(sŠ€€€€€ððð &ð &ð &ð ð ð ð ð ð ðIðIðIð1ð1ð1ð( 5ð 5ð 5ðððððr"rc óÒ—| dd¦«}t|¦«std¦«‚t|¦«dkrt d¦«‚| dd¦«}| dd¦«}|d krt d ¦«‚| d d ¦«}|rtd t |¦«z¦«‚t ||||dtd¦«S)aµCreate a new KMAC128 object. Args: key (bytes/bytearray/memoryview): The key to use to compute the MAC. It must be at least 128 bits long (16 bytes). data (bytes/bytearray/memoryview): Optional. The very first chunk of the message to authenticate. It is equivalent to an early call to :meth:`KMAC_Hash.update`. mac_len (integer): Optional. The size of the authentication tag, in bytes. Default is 64. Minimum is 8. custom (bytes/bytearray/memoryview): Optional. A customization byte string (``S`` in SP 800-185). Returns: A :class:`KMAC_Hash` hash object rNzYou must pass a key to KMAC128r4z1The key must be at least 128 bits long (16 bytes)rré@r&z!'mac_len' must be 8 bytes or morerr"zUnknown parameters: Ú19é¨)Úpoprr$Úlenr6Ústrrr )rArrrrs r r5r5Žs߀ð( �*Š*�U˜DÑ !Ô !€CÝ �C‰=Œ=ð:ÝÐ8Ñ9Ô9Ð9Ý ˆ3�x„x�"‚}€}ÝÐLÑMÔMÐMà �:Š:�f˜dÑ #Ô #€Dà�jŠj˜ BÑ'Ô'€GØ�‚{€{ÝÐ<Ñ=Ô=Ð=à �ZŠZ˜ #Ñ &Ô &€Fà ð>ÝÐ.µ°V±´Ñ<Ñ=Ô=Ð=å �T˜3 ¨°µyÀ#Ñ FÔ FÐFr"N)ÚbinasciirÚCrypto.Util.py3compatrrrÚ Crypto.Randomrr+r r r r r Úobjectrr5r@r"r úrQsÐðð>ÐÐÐÐÐà9Ð9Ð9Ð9Ð9Ð9Ð9Ð9Ð9Ð9Ø*Ð*Ð*Ð*Ð*Ð*à!Ð!Ð!Ð!Ð!Ð!Ð!Ð!Ø;Ð;Ð;Ð;Ð;Ð;Ð;Ð;Ð;Ð;ðcðcðcðcðc�ñcôcðcðL%Gð%Gð%Gð%Gð%Gr"