Viewing file: Crypto.PublicKey.qNEW-module.html (13.13 KB) -rw-r--r-- Select action/file-type: (+ ) | (+ ) | (+ ) | Code (+ ) | Session (+ ) | (+ ) | SDB (+ ) | (+ ) | (+ ) | (+ ) | (+ ) | (+ ) |
Crypto.PublicKey.qNEW
Module qNEW
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.
__revision__ = '
$Id$
'
HASHBITS = 160
__package__ = '
Crypto.PublicKey
'
sieve = [
2,
3,
5,
7,
11,
13,
17,
19,
23,
29,
31,
37,
41,
43,
4...
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.
sieve
Value:
[
2,
3,
5,
7,
11,
13,
17,
19,
...