Home | Trees | Index | Help |
---|
Package tlslite :: Package utils :: Module hmac |
|
HMAC (Keyed-Hashing for Message Authentication) Python module.
Implements the HMAC algorithm as described by RFC 2104.
(This file is modified from the standard library version to do faster copying)Classes | |
---|---|
HMAC |
RFC2104 HMAC class. |
Function Summary | |
---|---|
Create a new hashing object and return it. | |
Utility method. |
Variable Summary | |
---|---|
NoneType |
digest_size = None |
Function Details |
---|
new(key, msg=None, digestmod=None)Create a new hashing object and return it. key: The starting key for the hash. msg: if available, will immediately be hashed into the object's starting state. You can now feed arbitrary strings into the object using its update() method, and can ask for the hash value at any time by calling its digest() method. |
_strxor(s1, s2)Utility method. XOR the two strings s1 and s2 (must have same length). |
Variable Details |
---|
digest_size
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.0 on Sun Mar 21 00:04:58 2004 | http://epydoc.sf.net |