Generates prime p
and prime q
for the encryption scheme.
More...
Static Public Member Functions | |
static int | calculateSizeQ () |
Calculates the required size in bits of prime q . | |
static int | calculateSizeP (int size_q) |
Calculates the required size in bits of prime p . | |
static void | generatePrime () |
Generates prime p and q . |
Generates prime p
and prime q
for the encryption scheme.
The primes are generated based on the provided security parameters in Parameters.
static int common.GenPrime.calculateSizeP | ( | int | size_q | ) | [inline, static] |
Calculates the required size in bits of prime p
.
This calculation requires the calculation of q
to be done first.
size_q | size of q . |
p
. static int common.GenPrime.calculateSizeQ | ( | ) | [inline, static] |
Calculates the required size in bits of prime q
.
q
.