Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
lib
/
python2.4
/
Upload File :
New :
File
Dir
//proc/self/root/usr/lib/python2.4/hmac.pyo
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/lib/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 >