this.random = random;
}
protected AlgorithmParameters engineGenerateParameters()
{
DHParametersGenerator pGen = new DHParametersGenerator();
if (random != null)
{
pGen.init(strength, 20, random);
}
else
{
pGen.init(strength, 20, new SecureRandom());
}
DHParameters p = pGen.generateParameters();
AlgorithmParameters params;
try
{