Package tlslite :: Package utils :: Module hmac
[show private | hide private]
[frames | no frames]

Module tlslite.utils.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
  new(key, msg, digestmod)
Create a new hashing object and return it.

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.

Variable Details

digest_size

Type:
NoneType
Value:
None                                                                  

Generated by Epydoc 2.0 on Sun Mar 21 00:04:58 2004 http://epydoc.sf.net