Package tlslite :: Module mathtls |
[hide private]
[frames] | no frames]

# Module mathtls

source code

Miscellaneous helper functions.

Classes | [hide private]
| MAC_SSL

Functions | [hide private]
PAD(n, x) | source code
PRF(secret, label, seed, length) | source code
PRF_SSL(secret, seed, length) | source code
P_hash(macFunc, secret, seed, length) | source code
calcMasterSecret(version, premasterSecret, clientRandom, serverRandom) | source code
createHMAC(k, digestmod=<built-in function openssl_sha1>) | source code
createMAC_SSL(k, digestmod=None) | source code
makeK(N, g) | source code
makeU(N, A, B) | source code
makeVerifier(username, password, bits) | source code
makeX(salt, username, password) | source code

Variables | [hide private]
| __package__ = ``'``tlslite``'``
| gmpyLoaded = `False`
| goodGroupParameters = ``[``(`2`,` 16760943441033506134513952376435009`...``
| length = `1011`
| m2cryptoLoaded = `True`
| prngName = ``'``os.urandom``'``
| pycryptoLoaded = `True`
| sieve = ``[`2`,` 3`,` 5`,` 7`,` 11`,` 13`,` 17`,` 19`,` 23`,` 29`,` 31`,` 37`,` 41`,` 43`,` 4`...``

Variables Details | [hide private]

  ### goodGroupParameters Value:
      [(2,
        16760943441033506134513952376435009026013552532981390455742093030980
      0865859473551531551523800013916573891864789934747039010546328480848979
      5166376737766056103746694262147761978284926913845194532182537027880222
      3320568363583162691335715494191412998548952262990254076836840948224829
      0641036967659389658897350067939),
       (2,
        14869981859231282928165073536194095211524576625963800746148189668102
      ...

  ### sieve Value:
      [2,
       3,
       5,
       7,
       11,
       13,
       17,
       19,
      ...