ACC SHELL

Path : /usr/lib/python/
File Upload :
Current File : //usr/lib/python/hmac.pyc

Ñò
oÄMc
@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
id||ift
d	ƒ|i}qn$t
id
|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/lib/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_keytNonethashlibtmd5thasattrtdigest_constoutertinnertdigest_sizeRt	_warningstwarnt	blocksizetRuntimeWarningtlentdigesttchrtupdatet	translatettrans_5Cttrans_36(tselftkeytmsgRR
R((Rs/usr/lib/python2.6/hmac.pyt__init__s:





	

	
	
cCs|ii|ƒdS(s8Update this hashing object with the string msg.
        N(RR(RR((s/usr/lib/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/lib/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/lib/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/lib/python2.6/hmac.pyRjscCs|iƒ}|iƒS(sKLike digest(), but returns a string of hexadecimal digits instead.
        (R$t	hexdigest(RR#((s/usr/lib/python2.6/hmac.pyR%tsN(t__name__t
__module__t__doc__RR	RRR!R$RR%(((s/usr/lib/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/lib/python2.6/hmac.pyRzs((R(twarningsRtjoint_[1]txrangetxRRt_[2]RR	RRRR(((s/usr/lib/python2.6/hmac.pyt<module>s::f

ACC SHELL 2018