gdata.tlslite.mathtls | index /usr/local/google/home/afshar/src/external-gdata-release/google3/src/gdata/tlslite/mathtls.py

`Miscellaneous helper functions.`

Modules
`` |  |
Crypto array base64 | binascii hmac math | md5 os sha | sys traceback

Classes
`` |  | MAC_SSL
class MAC_SSL
`` | `MAC_SSL class. This supports the API for Cryptographic Hash Functions (PEP 247).`
| Methods defined here: __init__(self, key, msg=None, digestmod=None) `Create a new MAC_SSL object. key: key for the keyed hash object. msg: Initial input for the hash, if provided. digestmod: A module supporting PEP 247. Defaults to the md5 module.` copy(self) `Return a separate copy of this hashing object. An update to this copy won't affect the original object.` digest(self) `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.` hexdigest(self) `Like digest(), but returns a string of hexadecimal digits instead.` update(self, msg) `Update this hashing object with the string msg.`

Functions
`` |  | PAD(n, x) PRF(secret, label, seed, length) PRF_SSL(secret, seed, length) P_hash(hashModule, secret, seed, length) makeK(N, g) makeU(N, A, B) makeVerifier(username, password, bits) `#This function is used by VerifierDB.makeVerifier` makeX(salt, username, password) sha1 = openssl_sha1(...) `Returns a sha1 hash object; optionally initialized with a string`

Data
`` |  | cryptlibpyLoaded = False gmpyLoaded = False goodGroupParameters = [(2, 167609434410335061...389658897350067939L), (2, 148699818592312829...022696100064262587L), (2, 217661744586174357...299250924469288819L), (2, 580960599536995806...769998514148343807L), (5, 104438888141315250...045385534758453247L), (5, 337515218214385611...109988915707117567L), (5, 109074813561941592...353154294858383359L)] m2cryptoLoaded = False prngName = 'os.urandom' pycryptoLoaded = True sieve = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, ...]