org.gudy.bouncycastle.crypto.generators
Class DHParametersGenerator

java.lang.Object
  extended by org.gudy.bouncycastle.crypto.generators.DHParametersGenerator

public class DHParametersGenerator
extends Object


Constructor Summary
DHParametersGenerator()
           
 
Method Summary
 DHParameters generateParameters()
          which generates the p and g values from the given parameters, returning the DHParameters object.
 void init(int size, int certainty, SecureRandom random)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHParametersGenerator

public DHParametersGenerator()
Method Detail

init

public void init(int size,
                 int certainty,
                 SecureRandom random)

generateParameters

public DHParameters generateParameters()
which generates the p and g values from the given parameters, returning the DHParameters object.

Note: can take a while...