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