The central authority, after computing the parameters, must send this information to the parties looking to agree on a secret key.
DHParameterSpec
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | DHGenParameterSpec(int
the size (in bits) of the prime modulus. primeSize, int the size (in bits) of the random exponent. exponentSize)Constructs a parameter set for the generation of Diffie-Hellman (system) parameters. |
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the size in bits of the random exponent (private value)Returns the size in bits of the random exponent (private value). |
| public int | Returns: the size in bits of the prime modulusReturns the size in bits of the prime modulus. |
| exponentSize | back to summary |
|---|---|
| private final int exponentSize | |
| primeSize | back to summary |
|---|---|
| private final int primeSize | |
| DHGenParameterSpec | back to summary |
|---|---|
| public DHGenParameterSpec(int primeSize, int exponentSize) Constructs a parameter set for the generation of Diffie-Hellman
(system) parameters. The constructed parameter set can be used to
initialize an
| |
| getExponentSize | back to summary |
|---|---|
| public int getExponentSize() Returns the size in bits of the random exponent (private value).
| |
| getPrimeSize | back to summary |
|---|---|
| public int getPrimeSize() Returns the size in bits of the prime modulus.
| |