|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/lib64/python2.4/ |
Upload File : |
mò
=5Dc @ sA d Z d Z d Z g Z d f 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.
c C s d i t d | | S( sK Utility method. XOR the two strings s1 and s2 (must have same length).
t c C s t t | t | A S( N( t chrt ordt xt y( R R ( ( t /usr/lib64/python2.4/hmac.pyt <lambda> s N( t joint mapt s1t s2( R R
( ( R t _strxor s t HMACc B sA t Z d Z e e d Z d Z d Z d Z d Z RS( s_ RFC2104 HMAC class.
This supports the API for Cryptographic Hash Functions (PEP 247).
c C s | t j o d Sn | d j o d k } | } n | | _ | i | _ | i | _ | i | _ d } d | } d | } t
| | j o | i | i } n | t d | t
| } | i i t | | | i i t | | | d j o | i | n d S( sŬ 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. Defaults to the md5 module.
Ni@ t 6s \i ( t keyt _secret_backdoor_keyt digestmodt Nonet md5t selft newt outert innert digest_sizet blocksizet ipadt opadt lent digestR t updateR t msg( R R R R R R R R ( ( R t __init__ s(
c C s | i i | d S( s8 Update this hashing object with the string msg.
N( R R R R ( R R ( ( R R >