• File: hmac.cpython-37.opt-2.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/proc/self/root/opt/alt/python37/lib64/python3.7/__pycache__/hmac.cpython-37.opt-2.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 3.83 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

YI~du@sddlZddlmZyddlZWnek
r<dZdZYnXe	ej
ZddlZedde
dDZedde
dDZdZGdddZd
d	d
ZddZdS)N)_compare_digestccs|]}|dAVqdS)\N).0xrr)/opt/alt/python37/lib64/python3.7/hmac.py	<genexpr>srccs|]}|dAVqdS)6Nr)rrrrrrsc@sNeZdZdZdddZeddZddZd	d
ZddZ	d
dZ
ddZdS)HMAC@NcsVt|ttfs tdt|jdkr<tdtdt	j
trL|_n,tt
rhd
fdd	|_ndfdd	|_||_||_|jj|_t|jdr|jj}|d	krtd
||jftd|j}ntd|jtd|j}||_t||kr||}||d}|j|t|j|t|dk	rR||dS)Nz,key: expected bytes or bytearray, but got %rzhHMAC() 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)N)r$r,)r0r2rrrr,cszHMAC.updatecCs:|j|j}|j|_|j|_|j|_|j|_|S)N)	__class____new__r!r%r$copyr#)r0otherrrrr7hsz	HMAC.copycCs|j}||j|S)N)r#r7r,r$r*)r0hrrr_currentus
z
HMAC._currentcCs|}|S)N)r:r*)r0r9rrrr*~szHMAC.digestcCs|}|S)N)r:	hexdigest)r0r9rrrr;szHMAC.hexdigest)NN)r
__module____qualname__r'r3propertyr4r,r7r:r*r;rrrrrs
>
	
rcCst|||S)N)r)r1r2rrrrrsrcstdk	r(ttr(tkr(t||Str6}n(ttrPdfdd	}nd	fdd	}|}|}t|dd}t||kr||}|d|t|}|	|
t|	|
t|	||	||S)
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)warningsr	_operatorrZcompare_digestrr?ImportErrorr@	frozensetZopenssl_md_meth_namesZhashlibrranger.r/r%rrr*rrrr<module>s

t