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'
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.