| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private SecureRandom | |
| private int | |
| private static final BigInteger |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public DhParameters | generateParameters()
which generates the p and g values from the given parameters, returning the DHParameters object. |
| public void | init(int
bit length for the prime p size, int level of certainty for the prime number tests certainty, SecureRandom a source of randomness random)Initialise the parameters generator. |
| certainty | back to summary |
|---|---|
| private int certainty | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| size | back to summary |
|---|---|
| private int size | |
| TWO | back to summary |
|---|---|
| private static final BigInteger TWO | |
| DhParametersGenerator | back to summary |
|---|---|
| pack-priv DhParametersGenerator() | |
| generateParameters | back to summary |
|---|---|
| public DhParameters generateParameters() which generates the p and g values from the given parameters, returning the DHParameters object. Note can take a while... | |
| init | back to summary |
|---|---|
| public void init(int size, int certainty, SecureRandom random) Initialise the parameters generator.
| |