Home | History | Annotate | Download | only in Lib

Lines Matching defs:HMAC

0 """HMAC (Keyed-Hashing for Message Authentication) Python module.
3 Implements the HMAC algorithm as described by RFC 2104.
14 # The size of the digests returned by HMAC depends on the underlying
15 # hashing module used. Use digest_size from the instance of HMAC instead.
18 # A unique object passed by HMAC.copy() to the HMAC constructor, in order
19 # that the latter return very quickly. HMAC("") in contrast is quite
23 class HMAC:
24 """RFC 2104 HMAC class. Also complies with RFC 4231.
28 blocksize = 64 # 512-bit HMAC; can be changed in subclasses.
31 """Create a new HMAC object.
81 ## raise NotImplementedError, "clear() method not available in HMAC."
136 return HMAC(key, msg, digestmod)