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

Module ElGamal

Classes [hide private]
  error
  ElGamalobj
  object
Functions [hide private]
 
generate(bits, randfunc, progress_func=None)
generate(bits:int, randfunc:callable, progress_func:callable)
 
construct(tuple)
: ElGamalobj
Variables [hide private]
  __revision__ = '$Id$'
  __package__ = 'Crypto.PublicKey'
Function Details [hide private]

generate(bits, randfunc, progress_func=None)

 

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

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

construct(tuple)

 
construct(tuple:(long,long,long,long)|(long,long,long,long,long)))
: ElGamalobj

Construct an ElGamal key from a 3- or 4-tuple of numbers.