public class ElGamalParametersGenerator
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
certainty |
private java.security.SecureRandom |
random |
private int |
size |
Constructor and Description |
---|
ElGamalParametersGenerator() |
Modifier and Type | Method and Description |
---|---|
ElGamalParameters |
generateParameters()
which generates the p and g values from the given parameters,
returning the ElGamalParameters object.
|
void |
init(int size,
int certainty,
java.security.SecureRandom random) |
private int size
private int certainty
private java.security.SecureRandom random
public void init(int size, int certainty, java.security.SecureRandom random)
public ElGamalParameters generateParameters()
Note: can take a while...