Package Crypto :: Package PublicKey :: Module qNEW
[hide private]
[frames] | no frames]

Module qNEW

Classes [hide private]
  error
  qNEWobj
  object
Functions [hide private]
 
generate(bits, randfunc, progress_func=None)
generate(bits:int, randfunc:callable, progress_func:callable)
 
construct(tuple)
construct(tuple:(long,long,long,long)|(long,long,long,long,long) Construct a qNEW object from a 4- or 5-tuple of numbers.
Variables [hide private]
  __revision__ = '$Id$'
  HASHBITS = 160
  __package__ = 'Crypto.PublicKey'
  sieve = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 4...
Function Details [hide private]

generate(bits, randfunc, progress_func=None)

 

generate(bits:int, randfunc:callable, progress_func:callable)

Generate a qNEW key of length 'bits', using 'randfunc' to get random data and 'progress_func', if present, to display the progress of the key generation.


Variables Details [hide private]

sieve

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