Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/hmac.pyo |
³ò h”Rc @ sA d Z d „ 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. c C s d i t d „ | | ƒ ƒ S( sK Utility method. XOR the two strings s1 and s2 (must have same length). t c S s t t | ƒ t | ƒ Aƒ S( ( t chrt ord( t xt y( ( s /usr/local/lib/python2.5/hmac.pyt <lambda> s ( t joint map( t s1t s2( ( s /usr/local/lib/python2.5/hmac.pyt _strxor s t HMACc B sA e Z d Z d d 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 s‰ | t j o d Sn ˆ d j o d d k } | i ‰ n t ˆ ƒ o ˆ | _ n d ‡ f d † | _ | i ƒ | _ | i ƒ | _ | i i | _ t | i d ƒ o' | i i } | d j o d } q× n 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( 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ÿÿÿÿR c s ˆ i | ƒ S( ( t new( t d( t digestmod( s /usr/local/lib/python2.5/hmac.pyR . s t block_sizei i@ t 6s \i ( t _secret_backdoor_keyt Nonet hashlibt md5t callablet digest_const outert innert digest_sizet hasattrR t lent digestR t updateR ( t selft keyt msgR R t blocksizet ipadt opad( ( R s /usr/local/lib/python2.5/hmac.pyt __init__ s2 c C s | i i | ƒ d S( s8 Update this hashing object with the string msg. N( R R ( R R ( ( s /usr/local/lib/python2.5/hmac.pyR L s c C sL t t ƒ } | i | _ | i | _ | i i ƒ | _ | i i ƒ | _ | S( sy Return a separate copy of this hashing object. An update to this copy won't affect the original object. ( R R R R R t copyR ( R t other( ( s /usr/local/lib/python2.5/hmac.pyR% Q s c C s/ | i i ƒ } | i | i 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% R R R ( R t h( ( s /usr/local/lib/python2.5/hmac.pyR ] s c C sM d i g } t | i ƒ ƒ D]&