Class ElGamalParametersGenerator
java.lang.Object
org.gudy.bouncycastle.crypto.generators.ElGamalParametersGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private static BigInteger
private SecureRandom
private int
private static BigInteger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwhich generates the p and g values from the given parameters, returning the ElGamalParameters object.void
init
(int size, int certainty, SecureRandom random)
-
Field Details
-
size
private int size -
certainty
private int certainty -
random
-
ONE
-
TWO
-
-
Constructor Details
-
ElGamalParametersGenerator
public ElGamalParametersGenerator()
-
-
Method Details
-
init
-
generateParameters
which generates the p and g values from the given parameters, returning the ElGamalParameters object.Note: can take a while...
-