public class DHParametersGenerator extends Object
| Constructor and Description |
|---|
DHParametersGenerator() |
| Modifier and Type | Method and Description |
|---|---|
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)
Initialise the parameters generator.
|
public void init(int size,
int certainty,
SecureRandom random)
size - bit length for the prime pcertainty - level of certainty for the prime number testsrandom - a source of randomnesspublic DHParameters generateParameters()
Note: can take a while...
Copyright © 2015. All rights reserved.