java.security.AlgorithmParameters , java.security.spec.AlgorithmParameterSpec , DSAParameters
| Modifier and Type | Field and Description |
|---|---|
| private SecureRandom | |
| private int | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected AlgorithmParameters | Returns: the new AlgorithmParameters objectImplements abstract java. Generates the parameters. |
| protected void | engineInit(int
the strength (size of prime) in bits strength, SecureRandom the source of randomness random)Implements abstract java. Initializes this parameter generator for a certain strength and source of randomness. |
| protected void | engineInit(AlgorithmParameterSpec
the set of algorithm-specific parameter
generation values genParamSpec, SecureRandom the source of randomness random)Implements abstract java. Initializes this parameter generator with a set of algorithm-specific parameter generation values. |
| private static BigInteger | |
| private static BigInteger[] | |
| private static byte[] |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| seedLen | back to summary |
|---|---|
| private int seedLen | |
| valueL | back to summary |
|---|---|
| private int valueL | |
| valueN | back to summary |
|---|---|
| private int valueN | |
| DSAParameterGenerator | back to summary |
|---|---|
| public DSAParameterGenerator() | |
| engineGenerateParameters | back to summary |
|---|---|
| protected AlgorithmParameters engineGenerateParameters() Implements abstract java. Generates the parameters.
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(int strength, SecureRandom random) Implements abstract java. Initializes this parameter generator for a certain strength and source of randomness.
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(AlgorithmParameterSpec genParamSpec, SecureRandom random) throws InvalidAlgorithmParameterException Implements abstract java. Initializes this parameter generator with a set of algorithm-specific parameter generation values.
| |
| generateG | back to summary |
|---|---|
| private static BigInteger generateG(BigInteger p, BigInteger q) | |
| generatePandQ | back to summary |
|---|---|
| private static BigInteger[] generatePandQ(SecureRandom random, int valueL, int valueN, int seedLen) | |
| toByteArray | back to summary |
|---|---|
| private static byte[] toByteArray(BigInteger bigInt) | |