/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__/HMAC.cpython-311.pyc (7897B)
§ e÷Œ-61…ãó~—ddlmZmZddlmZddlmZddlmZddlm Z ddl m Z ddgZ Gd „de ¦«Zd d „Zd S)é)ÚbordÚtobytes)Ú unhexlify)ÚMD5)ÚBLAKE2s)Ústrxor)Úget_random_bytesÚnewÚHMACcóD—eZdZdZd d„Zd„Zd„Zd„Zd„Zd „Z d „Z d „Z dS) r z½An HMAC hash object. Do not instantiate directly. Use the :func:`new` function. :ivar digest_size: the size in bytes of the resulting MAC tag :vartype digest_size: integer óNcóæ—|€t}|€d}|j|_||_t|t¦«r| ¦«} t |¦«|jkr|d|jt |¦«z zz}nD| |¦«  ¦«}|d|jt |¦«z zz}n#t$rtd¦«‚wxYwt|dt |¦«z¦«}| |¦«|_ |j  |¦«t|dt |¦«z¦«}| |¦«|_dS)Nr ózHash type incompatible to HMACó6ó\)rÚ digest_sizeÚ _digestmodÚ isinstanceÚ memoryviewrÚlenÚ block_sizer ÚdigestÚAttributeErrorÚ ValueErrorrÚ_innerÚupdateÚ_outer)ÚselfÚkeyÚmsgÚ digestmodÚkey_0Úhash_kÚ key_0_ipadÚ key_0_opads úr/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib64/python3.11/site-packages/Crypto/Hash/HMAC.pyÚ__init__z HMAC.__init__6se€à Р݈Ià ˆ;؈Cð%Ô0ˆÔà#ˆŒå �c�:Ñ &Ô &ð Ø—+’+‘-”-ˆCð ?Ý�3‰xŒx˜9Ô/Ò/Ð/à˜g¨Ô)=ÅÀCÁÄÑ)HÑIÑI��ð#Ÿš sÑ+Ô+×2Ò2Ñ4Ô4�Ø ¨IÔ,@Å3ÀvÁ;Ä;Ñ,NÑ!OÑO�øøÝð ?ð ?ð ?åÐ=Ñ>Ô>Ð >ð ?øøøõ ˜E 7­S°©Z¬ZÑ#7Ñ8Ô8ˆ ð —m’m JÑ/Ô/ˆŒ Ø Œ ×Ò˜3ÑÔÐõ˜E 7­S°©Z¬ZÑ#7Ñ8Ô8ˆ ð —m’m JÑ/Ô/ˆŒ ˆ ˆ s Á A:CÃC có:—|j |¦«|S)zŒAuthenticate the next chunk of message. Args: data (byte string/byte array/memoryview): The next chunk of data )rr)rr s r&rz HMAC.update_s€ð Œ ×Ò˜3ÑÔÐØˆ r cóT—|j |j|j||¦«}|S)z2Carry out the expensive inner loop for PBKDF2-HMAC)rÚ_pbkdf2_hmac_assistrr)rÚ first_digestÚ iterationsÚresults r&r*zHMAC._pbkdf2_hmac_assistis2€ð”×4Ò4Ø$(¤KØ$(¤KØ$0Ø$.ñ 0ô0ˆð ˆ r cóª—td|j¬¦«}|j ¦«|_|j ¦«|_|S)a+Return a copy ("clone") of the HMAC object. The copy will have the same internal state as the original HMAC object. This can be used to efficiently compute the MAC tag of byte strings that share a common initial substring. :return: An :class:`HMAC` sfake key)r!)r rrÚcopyr)rÚnew_hmacs r&r/z HMAC.copyssI€õ˜ ¨t¬Ð?Ñ?Ô?ˆðœ+×*Ò*Ñ,Ô,ˆŒØœ+×*Ò*Ñ,Ô,ˆŒàˆr có´—|j ¦«}| |j ¦«¦«| ¦«S)zìReturn the **binary** (non-printable) MAC tag of the message authenticated so far. :return: The MAC tag digest, computed over the data processed so far. Binary form. :rtype: byte string )rr/rrr)rÚfrozen_outer_hashs r&rz HMAC.digest†sL€ð!œK×,Ò,Ñ.Ô.ÐØ× Ò  ¤×!3Ò!3Ñ!5Ô!5Ñ6Ô6Ð6Ø ×'Ò'Ñ)Ô)Ð)r có—td¦«}tjd||¬¦«}tjd|| ¦«¬¦«}| ¦«| ¦«krt d¦«‚dS)ahVerify that a given **binary** MAC (computed by another party) is valid. Args: mac_tag (byte string/byte string/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. éé )Ú digest_bitsrÚdatazMAC check failedN)r rr rr)rÚmac_tagÚsecretÚmac1Úmac2s r&Úverifyz HMAC.verify“sw€õ" "Ñ%Ô%ˆåŒ{ s°¸WÐEÑEÔEˆÝŒ{ s°¸T¿[º[¹]¼]ÐKÑKÔKˆà �;Š;‰=Œ=˜DŸKšK™MœMÒ )Ð )ÝÐ/Ñ0Ô0Ð 0ð *Ð )r có~—d d„t| ¦«¦«D¦«¦«S)zÓReturn the **printable** MAC tag of the message authenticated so far. :return: The MAC tag, computed over the data processed so far. Hexadecimal encoded. :rtype: string Úcó2—g|]}dt|¦«z‘ŒS)z%02x)r)Ú.0Úxs r&ú z"HMAC.hexdigest..¯s3€ð7ð7ð7Øð¥ a¡¤Ñ(ð7ð7ð7r )ÚjoinÚtupler)rs r&Ú hexdigestzHMAC.hexdigest§sF€ð�wŠwð7ð7Ý!& t§{¢{¡}¤}Ñ!5Ô!5ð7ñ7ô7ñ8ô8ð 8r cód—| tt|¦«¦«¦«dS)a~Verify 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&Ú hexverifyzHMAC.hexverify²s,€ð � Š •I�g kÑ2Ô2Ñ3Ô3Ñ4Ô4Ð4Ð4Ð4r ©r N) Ú__name__Ú __module__Ú __qualname__Ú__doc__r'rr*r/rr<rErH©r r&r r .sœ€€€€€ððð'0ð'0ð'0ð'0ðRððððððððð& *ð *ð *ð1ð1ð1ð( 8ð 8ð 8ð 5ð 5ð 5ð 5ð 5r r Ncó$—t|||¦«S)a=Create a new MAC object. Args: key (bytes/bytearray/memoryview): key for the MAC object. It must be long enough to match the expected security level of the MAC. msg (bytes/bytearray/memoryview): Optional. The very first chunk of the message to authenticate. It is equivalent to an early call to :meth:`HMAC.update`. digestmod (module): The hash to use to implement the HMAC. Default is :mod:`Crypto.Hash.MD5`. Returns: An :class:`HMAC` object )r )rr r!s r&r r Âs€õ& ��S˜)Ñ $Ô $Ð$r rI)ÚCrypto.Util.py3compatrrÚbinasciirÚ Crypto.HashrrÚCrypto.Util.strxorrÚ Crypto.Randomr Ú__all__Úobjectr r rNr r&úrWsÔððD0Ð/Ð/Ð/Ð/Ð/Ð/Ð/àÐÐÐÐÐàÐÐÐÐÐØÐÐÐÐÐØ%Ð%Ð%Ð%Ð%Ð%Ø*Ð*Ð*Ð*Ð*Ð*à �&ˆ/€ðQ5ðQ5ðQ5ðQ5ðQ5ˆ6ñQ5ôQ5ðQ5ðh%ð%ð%ð%ð%ð%r