| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static final BigInteger | |
| private SecureRandom | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CramerShoupParameters | Returns: a generated CramerShoupParameters object.which generates the p and g values from the given parameters, returning the CramerShoupParameters object. |
| public CramerShoupParameters | |
| public void | init(int
bit length for the prime p size, int a measure of the uncertainty that the caller is willing to tolerate:
the probability that the generated modulus is prime exceeds (1 - 1/2^certainty).
The execution time of this method is proportional to the value of this parameter. certainty, SecureRandom a source of randomness random)Initialise the parameters generator. |
| certainty | back to summary |
|---|---|
| private int certainty | |
| ONE | back to summary |
|---|---|
| private static final BigInteger ONE | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| size | back to summary |
|---|---|
| private int size | |
| CramerShoupParametersGenerator | back to summary |
|---|---|
| public CramerShoupParametersGenerator() | |
| generateParameters | back to summary |
|---|---|
| public CramerShoupParameters generateParameters() which generates the p and g values from the given parameters, returning the CramerShoupParameters object. Note can take a while...
| |
| generateParameters | back to summary |
|---|---|
| public CramerShoupParameters generateParameters(DHParameters dhParams) | |
| init | back to summary |
|---|---|
| public void init(int size, int certainty, SecureRandom random) Initialise the parameters generator.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final BigInteger |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static BigInteger[] | |
| pack-priv static BigInteger |
| TWO | back to summary |
|---|---|
| private static final BigInteger TWO | |
| ParametersHelper | back to summary |
|---|---|
| private ParametersHelper() | |
| generateSafePrimes | back to summary |
|---|---|
| pack-priv static BigInteger[] generateSafePrimes(int size, int certainty, SecureRandom random) | |
| selectGenerator | back to summary |
|---|---|
| pack-priv static BigInteger selectGenerator(BigInteger p, SecureRandom random) | |