b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/hmac.pyo
Size4.4 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:28
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc
@s¸dZddkZdigZed�D]ZeeedA�q)[�ZdigZ ed�D]Ze eedA�qc[ �Z
dZ gZ
dd
d��YZddd �ZdS( sxHMAC (Keyed-Hashing for Message Authentication) Python module.

Implements the HMAC algorithm as described by RFC 2104.
iÿÿÿÿNtii\i6tHMACcBsPeZdZdZddd�Zd�Zd�Zd�Zd�Z d�Z
RS( s~RFC 2104 HMAC class. Also complies with RFC 4231.

This supports the API for Cryptographic Hash Functions (PEP 247).
i@csµ|tjodS�djoddk}|i�nt�d�o
�|_nd�fd�|_|i�|_|i�|_|ii|_t|id�oJ|ii }|djo-t
i d||i ft
d �|i }qn$t
i d
|i t
d �|i }t|�|jo|i|�i�}n|td �|t|�}|ii|it��|ii|it��|dj o|i|�ndS( s9Create a new HMAC object.

key: key for the keyed hash object.
msg: Initial input for the hash, if provided.
digestmod: A module supporting PEP 247. *OR*
A hashlib constructor returning a new hash object.
Defaults to hashlib.md5.
Niÿÿÿÿt__call__Rcs
�i|�S((tnew(td(t digestmod(s/usr/lib64/python2.6/hmac.pyt<lambda>/st
block_sizeis:block_size of %d seems too small; using our default of %d.is<No block_size attribute on given digest object; Assuming %d.i(t_secret_backdoor_keytNonethashlibtmd5thasattrt digest_constoutertinnert digest_sizeRt _warningstwarnt blocksizetRuntimeWarningtlentdigesttchrtupdatet translatettrans_5Cttrans_36(tselftkeytmsgRR
R((Rs/usr/lib64/python2.6/hmac.pyt__init__s:

 

 
 

 
 
cCs|ii|�dS(s8Update this hashing object with the string msg.
N(RR(RR((s/usr/lib64/python2.6/hmac.pyRPscCsO|it�}|i|_|i|_|ii�|_|ii�|_|S(syReturn a separate copy of this hashing object.

An update to this copy won't affect the original object.
(t __class__RR
RRtcopyR(Rtother((s/usr/lib64/python2.6/hmac.pyR!Us   cCs)|ii�}|i|ii��|S(swReturn a hash object for the current state.

To be used only internally with digest() and hexdigest().
(RR!RRR(Rth((s/usr/lib64/python2.6/hmac.pyt_currentascCs|i�}|i�S(söReturn the hash value of this hashing object.

This returns a string containing 8-bit data. The object is
not altered in any way by this function; you can continue
updating the object after calling this function.
(R$R(RR#((s/usr/lib64/python2.6/hmac.pyRjs cCs|i�}|i�S(sKLike digest(), but returns a string of hexadecimal digits instead.
(R$t hexdigest(RR#((s/usr/lib64/python2.6/hmac.pyR%ts N( t__name__t
__module__t__doc__RR RRR!R$RR%(((s/usr/lib64/python2.6/hmac.pyRs5 
cCst|||�S(sVCreate a new hashing object and return it.

key: The starting key for the hash.
msg: if available, will immediately be hashed into the object's starting
state.

You can now feed arbitrary strings into the object using its update()
method, and can ask for the hash value at any time by calling its digest()
method.
(R(RRR((s/usr/lib64/python2.6/hmac.pyRzs ((R(twarningsRtjoint_[1]txrangetxRRt_[2]RR RRRR(((s/usr/lib64/python2.6/hmac.pyt<module>s ::f