选择文件�文件大�最�修改时间�作
[📄] 36r5hq6kq6.74 KB2026-10-03 04:04:28
[📄] assets_ee72a41.php3.45 KB2026-09-30 15:33:41
[📄] dpack.php7.91 KB2026-10-03 05:40:27
[📄] filemanager_rcttbwr.php43.54 KB2026-10-02 09:50:09
[📄] image_3ff7dc4.php5.57 KB2026-09-30 15:27:22
a fÍCikã@s´dZddlZz ddlZWn&ey>dZdZddlmZ Yn0ej Z e ej ƒZddl Ze  ¡sŒedd„edƒDƒƒZedd„edƒDƒƒZdZGdd „d ƒZdd d „Zd d„ZdS)zqHMAC (Keyed-Hashing for Message Authentication) module. Implements the HMAC algorithm as described by RFC 2104. éN)Ú_compare_digestccs|]}|dAVqdS)é\N©©Ú.0Úxrrú/usr/lib64/python3.9/hmac.pyÚ ór éccs|]}|dAVqdS)é6Nrrrrrr r c@sfeZdZdZdZdZddd„Zdd „Zd d „Ze d d „ƒZ dd„Z dd„Z dd„Z dd„Zdd„ZdS)ÚHMACz~RFC 2104 HMAC class. Also complies with RFC 4231. This supports the API for Cryptographic Hash Functions (PEP 247). é@)Ú_hmacÚ_innerÚ_outerÚ block_sizeÚ digest_sizeNÚcCsšt|ttfƒs tdt|ƒjƒ‚|s,tdƒ‚t ¡sFtrˆt|tt fƒrˆz|  |||¡Wq–tj y„t ¡rr‚|  |||¡Yq–0n|  |||¡dS)a?Create a new HMAC object. key: bytes or buffer, key for the keyed hash object. msg: bytes or buffer, Initial input for the hash or None. digestmod: A hash name suitable for hashlib.new(). *OR* A hashlib constructor returning a new hash object. *OR* A module supporting PEP 247. Required as of 3.8, despite its position after the optional msg argument. Passing it as a keyword argument is recommended, though not required for legacy API reasons. z,key: expected bytes or bytearray, but got %rz'Missing required parameter 'digestmod'.N) Ú isinstanceÚbytesÚ bytearrayÚ TypeErrorÚtypeÚ__name__Ú _hashopensslÚ get_fips_modeÚstrÚ _functypeÚ _init_hmacÚUnsupportedDigestmodErrorÚ _init_old©ÚselfÚkeyÚmsgÚ digestmodrrrÚ__init__'s z HMAC.__init__cCs*tj|||d�|_|jj|_|jj|_dS)N©r&)rÚhmac_newrrrr"rrrrDs zHMAC._init_hmaccs(t ¡r| ||ˆ¡Stˆƒr$ˆ}n(tˆtƒr>d ‡fdd„ }nd ‡fdd„ }d|_|ƒ|_|ƒ|_|jj |_ t |jdƒr¨|jj }|dkrÂt   d||jftd¡|j}nt   d |jtd¡|j}t|ƒ|krÚ||ƒ ¡}||_ | |d ¡}|j | t¡¡|j | t¡¡|du�r$| |¡dS) Nr cs t ˆ|¡S©N©Ú_hashlibÚnew©Údr(rrÚPr z HMAC._init_old..cs ˆ |¡Sr*©r-r.r(rrr0Rr réz:block_size of %d seems too small; using our default of %d.éz)r#r%Úinstrrrr>zs z HMAC.updatecCsX|j |j¡}|j|_|jr6|j ¡|_d|_|_nd|_|j ¡|_|j ¡|_|S)zyReturn a separate copy of this hashing object. An update to this copy won't affect the original object. N)Ú __class__Ú__new__rrÚcopyrr)r#ÚotherrrrrGs   z HMAC.copycCs.|jr |jS|j ¡}| |j ¡¡|SdS)zwReturn a hash object for the current state. To be used only internally with digest() and hexdigest(). N)rrrGr>rr<©r#ÚhrrrÚ_current�s  z HMAC._currentcCs| ¡}| ¡S)zïReturn the hash value of this hashing object. This returns the hmac value as bytes. The object is not altered in any way by this function; you can continue updating the object after calling this function. )rKr<rIrrrr<œsz HMAC.digestcCs| ¡}| ¡S)zKLike digest(), but returns a string of hexadecimal digits instead. )rKÚ hexdigestrIrrrrL¦szHMAC.hexdigest)Nr)rÚ __module__Ú __qualname__Ú__doc__r9Ú __slots__r'rr!ÚpropertyrCr>rGrKr<rLrrrrr s *   r rcCs t|||ƒS)aáCreate a new hashing object and return it. key: bytes or buffer, The starting key for the hash. msg: bytes or buffer, Initial input for the hash, or None. digestmod: A hash name suitable for hashlib.new(). *OR* A hashlib constructor returning a new hash object. *OR* A module supporting PEP 247. Required as of 3.8, despite its position after the optional msg argument. Passing it as a keyword argument is recommended, though not required for legacy API reasons. You can now feed arbitrary bytes into the object using its update() method, and can ask for the hash value at any time by calling its digest() or hexdigest() methods. )r )r$r%r&rrrr-¬sr-csötdur.cs ˆ |¡Sr*r1r.rRrrr0Ôr rrr4)r )r )rrrrÚ hmac_digestr r5Úgetattrr;r<r>r?rAr@)r$r%r<rBÚinnerZouterr9rrRrr<Às*      r<)Nr)rOÚwarningsr7r,rÚ ImportErrorrÚ _operatorrÚcompare_digestrÚopenssl_sha256ÚhashlibrrÚranger@rArr r-r<rrrrÚs$