HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python3.7/__pycache__/hmac.cpython-37.pyc
B

{au@sdZddlZddlmZyddlZWnek
r@dZdZ	YnXe
ejZ	ddlZe
ddedDZe
ddedDZdZGdd	d	Zdd
dZdd
ZdS)zxHMAC (Keyed-Hashing for Message Authentication) Python module.

Implements the HMAC algorithm as described by RFC 2104.
N)_compare_digestccs|]}|dAVqdS)\N).0xrr/usr/lib/python3.7/hmac.py	<genexpr>srccs|]}|dAVqdS)6Nr)rrrrrrsc@sReZdZdZdZdddZeddZdd	Zd
dZ	dd
Z
ddZddZdS)HMACz~RFC 2104 HMAC class.  Also complies with RFC 4231.

    This supports the API for Cryptographic Hash Functions (PEP 247).
    @NcsVt|ttfs tdt|jdkr<tdtdt	j
trL|_n,tt
rhdfdd	|_ndfdd	|_||_||_|jj|_t|jd	r|jj}|d
krtd||jftd|j}ntd|jtd|j}||_t||kr||}||d
}|j|t|j|t|dk	rR||dS)aBCreate 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. *OR*
                   A hash name suitable for hashlib.new().
                   Defaults to hashlib.md5.
                   Implicit default to hashlib.md5 is deprecated since Python
                   3.4 and will be removed in Python 3.8.

        Note: key and msg must be a bytes or bytearray objects.
        z,key: expected bytes or bytearray, but got %rNzhHMAC() without an explicit digestmod argument is deprecated since Python 3.4, and will be removed in 3.8cst|S)N)_hashlibnew)d)	digestmodrr<lambda>=rzHMAC.__init__.<locals>.<lambda>cs
|S)N)r)r)rrrr?r
block_sizez:block_size of %d seems too small; using our default of %d.z<No block_size attribute on given digest object; Assuming %d.)r)r)
isinstancebytes	bytearray	TypeErrortype__name__	_warningswarnDeprecationWarningrZmd5callabledigest_consstrouterinnerdigest_sizehasattrr	blocksizeRuntimeWarninglendigestljustupdate	translatetrans_5Ctrans_36)selfkeymsgrr'r)rr__init__!sB





z
HMAC.__init__cCsd|jjS)Nzhmac-)r$name)r0rrrr4_sz	HMAC.namecCs|j|dS)z8Update this hashing object with the string msg.
        N)r$r,)r0r2rrrr,cszHMAC.updatecCs:|j|j}|j|_|j|_|j|_|j|_|S)zyReturn a separate copy of this hashing object.

        An update to this copy won't affect the original object.
        )	__class____new__r!r%r$copyr#)r0otherrrrr7hsz	HMAC.copycCs|j}||j|S)zwReturn a hash object for the current state.

        To be used only internally with digest() and hexdigest().
        )r#r7r,r$r*)r0hrrr_currentus
z
HMAC._currentcCs|}|S)zReturn 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*)r0r9rrrr*~szHMAC.digestcCs|}|S)zKLike digest(), but returns a string of hexadecimal digits instead.
        )r:	hexdigest)r0r9rrrr;szHMAC.hexdigest)NN)
r
__module____qualname____doc__r'r3propertyr4r,r7r:r*r;rrrrrs
>
	
rcCst|||S)aVCreate 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)r1r2rrrrrsrcstdk	r(ttr(tkr(t||Str6}n(ttrPd	fdd	}nd
fdd	}|}|}t|dd}t||kr||}|d|t|}|	|
t|	|
t|	||	||S)aeFast inline implementation of HMAC

    key:    key for the keyed hash object.
    msg:    input message
    digest: A hash name suitable for hashlib.new() for best performance. *OR*
            A hashlib constructor returning a new hash object. *OR*
            A module supporting PEP 247.

    Note: key and msg must be a bytes or bytearray objects.
    Nrcst|S)N)rr)r)r*rrrrzdigest.<locals>.<lambda>cs
|S)N)r)r)r*rrrrrrr)r)r)
_hashopensslrr"_openssl_md_methsZhmac_digestr getattrr)r*r,r-r/r.)r1r2r*r!r$r#r'r)r*rr*s&

r*)NN)r>warningsr	_operatorrZcompare_digestrr@ImportErrorrA	frozensetZopenssl_md_meth_namesZhashlibrranger.r/r%rrr*rrrr<module>s

t