|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcommon.GenPrime
public class GenPrime
Generates prime p and prime q for the
encryption scheme.
The primes are generated based on the provided security parameters in Parameters.
| Constructor Summary | |
|---|---|
GenPrime()
|
|
| Method Summary | |
|---|---|
static int |
calculateSizeP(int size_q)
Calculates the required size in bits of prime p. |
static int |
calculateSizeQ()
Calculates the required size in bits of prime q. |
static void |
generatePrime()
Generates prime p and q. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenPrime()
| Method Detail |
|---|
public static int calculateSizeQ()
q.
q.public static int calculateSizeP(int size_q)
p.
This calculation requires the calculation of q to be done first.
size_q - size of q.
p.public static void generatePrime()
p and q.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||