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.5/__pycache__/hmac.cpython-35.pyc


FüƒaÇã@s›dZddlZddlmZddlZedd„e	dƒDƒƒZ
edd„e	dƒDƒƒZdZGdd	„d	ƒZ
ddd
d„ZdS)zxHMAC (Keyed-Hashing for Message Authentication) Python module.

Implements the HMAC algorithm as described by RFC 2104.
éN)Ú_compare_digestccs|]}|dAVqdS)é\N©)Ú.0Úxrrú/usr/lib/python3.5/hmac.pyú	<genexpr>
sréccs|]}|dAVqdS)é6Nr)rrrrrrsc@s|eZdZdZdZdddd„Zedd„ƒZdd	„Zd
d„Z	dd
„Z
dd„Zdd„ZdS)ÚHMACz~RFC 2104 HMAC class.  Also complies with RFC 4231.

    This supports the API for Cryptographic Hash Functions (PEP 247).
    é@Ncsït|ttfƒs.tdt|ƒjƒ‚ˆdkrVtjdtdƒt	j
‰tˆƒrnˆ|_nBtˆt
ƒr˜d‡fdd†|_nd‡fdd†|_|jƒ|_|jƒ|_|jj|_t|jd	ƒr3|jj}|d
krVtjd||jftdƒ|j}n#tjd|jtdƒ|j}||_t|ƒ|kr†|j|ƒjƒ}|t|t|ƒƒ}|jj|jtƒƒ|jj|jtƒƒ|dk	rë|j|ƒdS)
a1Create 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 and will be
                   removed in Python 3.6.

        Note: key and msg must be a bytes or bytearray objects.
        z,key: expected bytes or bytearray, but got %rNz<HMAC() without an explicit digestmod argument is deprecated.éócstjˆ|ƒS)N)Ú_hashlibÚnew)Úd)Ú	digestmodrrÚ<lambda>4szHMAC.__init__.<locals>.<lambda>cs
ˆj|ƒS)N)r)r)rrrr6sÚ
block_sizeéz:block_size of %d seems too small; using our default of %d.z<No block_size attribute on given digest object; Assuming %d.)Ú
isinstanceÚbytesÚ	bytearrayÚ	TypeErrorÚtypeÚ__name__Ú	_warningsÚwarnÚPendingDeprecationWarningrZmd5ÚcallableÚdigest_consÚstrÚouterÚinnerÚdigest_sizeÚhasattrrÚ	blocksizeÚRuntimeWarningÚlenÚdigestÚupdateÚ	translateÚtrans_5CÚtrans_36)ÚselfÚkeyÚmsgrr&r)rrÚ__init__sB	
		

	
		z
HMAC.__init__cCsd|jjS)Nzhmac-)r#Úname)r.rrrr2Vsz	HMAC.namecCs|jj|ƒdS)z8Update this hashing object with the string msg.
        N)r#r*)r.r0rrrr*ZszHMAC.updatecCsU|jj|jƒ}|j|_|j|_|jjƒ|_|jjƒ|_|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")r.Úotherrrrr5_sz	HMAC.copycCs)|jjƒ}|j|jjƒƒ|S)zwReturn a hash object for the current state.

        To be used only internally with digest() and hexdigest().
        )r"r5r*r#r))r.ÚhrrrÚ_currentlsz
HMAC._currentcCs|jƒ}|jƒS)zö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.
        )r8r))r.r7rrrr)uszHMAC.digestcCs|jƒ}|jƒS)zKLike digest(), but returns a string of hexadecimal digits instead.
        )r8Ú	hexdigest)r.r7rrrr9szHMAC.hexdigest)
rÚ
__module__Ú__qualname__Ú__doc__r&r1Úpropertyr2r*r5r8r)r9rrrrrs<
	
rcCst|||ƒ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)r/r0rrrrr…sr)r<ÚwarningsrÚ	_operatorrZcompare_digestZhashlibrrÚranger,r-r$rrrrrrÚ<module>sr