Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
3 M”ªjíã@s¢dZddlZddlmZddlZddlZddl Z e dd„e dƒDƒƒZ e dd„e dƒDƒƒZ dZGdd „d ƒZd d „ZGd d „d e jƒZejƒr”eZddd„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/lib64/python3.6/hmac.pyú sréccs|]}|dAVqdS)é6Nr)rrrrrr sc@sReZdZdZdZddd„Zedd„ƒZdd „Zd d „Z d d „Z dd„Z dd„Z dS)ÚHMACz~RFC 2104 HMAC class. Also complies with RFC 4231. This supports the API for Cryptographic Hash Functions (PEP 247). é@Ncsftjƒrtdƒ‚t|ttfƒs0tdt|ƒjƒ‚ˆdkrLt j dt dƒt j ‰tˆƒr\ˆ|_n,tˆtƒrxd‡fdd „ |_nd‡fd d „ |_|jƒ|_|jƒ|_|jj|_t|jd ƒrâ|jj}|d kràt j d ||jftdƒ|j}nt j d|jtdƒ|j}||_t|ƒ|k�r|j|ƒjƒ}|j|dƒ}|jj|jtƒƒ|jj|jtƒƒ|dk �rb|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*This class is not available in FIPS mode. zUse hmac.new().z,key: expected bytes or bytearray, but got %rNz;szHMAC.__init__..cs ˆj|ƒS)N)r)r)rrrr=sÚ block_sizeéz:block_size of %d seems too small; using our default of %d.zˆszHMAC.hexdigest)NN) rÚ __module__Ú __qualname__Ú__doc__r*r6Úpropertyr7r/r:r=r-r>rrrrr s A    r cCsX|dkrtdƒ‚t|tƒr"|jƒSt|ƒr2|dƒ}t|tjƒsFtdƒ‚|jjƒj ddƒS)Nz.'digestmod' argument is mandatory in FIPS moderz6Only OpenSSL hashlib hashes are accepted in FIPS mode.Ú_ú-) rrr%Úlowerr#rZHASHrr7Úreplace)rrrrÚ_get_openssl_name�s  rGc@seZdZddd„ZdS)Ú HMAC_opensslNcCsLt|ttfƒs tdt|ƒjƒ‚t|ƒ}tjj |||d�}|rH|j |ƒ|S)Nz,key: expected bytes or bytearray, but got %r)r) rrrrrrrGÚ _hmacopensslr r9r/)Úclsr4r5rr7Úresultrrrr9Ÿs zHMAC_openssl.__new__)NN)rr?r@r9rrrrrHžsrHcCs 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 )r4r5rrrrr®s r)NN)rAÚwarningsr Ú _operatorrZcompare_digestZhashlibrrrIrÚranger1r2r(r rGrHrrrrrrÚs z