Class ElGamalParametersGenerator
java.lang.Object
org.gudy.bouncycastle.crypto.generators.ElGamalParametersGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static BigIntegerprivate SecureRandomprivate intprivate static BigInteger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionwhich generates the p and g values from the given parameters, returning the ElGamalParameters object.voidinit(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...
-