| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private Digest | |
| private int | |
| private int | |
| private int | |
| private static final BigInteger | |
| private SecureRandom | |
| private static final BigInteger | |
| private int | |
| private boolean | |
| private static final BigInteger |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static BigInteger | |
| private static BigInteger | |
| private static BigInteger | calculateGenerator_FIPS186_3_Verifiable(Digest d, BigInteger p, BigInteger q, byte[] seed, int index)
|
| public DSAParameters | Returns: a generated DSA parameters object.which generates the p and g values from the given parameters, returning the DSAParameters object. |
| private DSAParameters | |
| private DSAParameters | generateParameters_FIPS186_3()
generate suitable parameters for DSA, in line with FIPS 186-3 A.1 Generation of the FFC Primes p and q. |
| private static int | |
| private static int | |
| private static void | |
| private static void | |
| public void | init(int
size of the key (range 2^512 -> 2^1024 - 64 bit increments) size, int measure of robustness of prime (for FIPS 186-2 compliance this should be at least 80). certainty, SecureRandom random byte source. random)initialise the key generator. |
| public void | init(DSAParameterGenerationParameters
DSA 2 key generation parameters. params)Initialise the key generator for DSA 2. |
| private boolean |
| certainty | back to summary |
|---|---|
| private int certainty | |
| digest | back to summary |
|---|---|
| private Digest digest | |
| iterations | back to summary |
|---|---|
| private int iterations | |
| L | back to summary |
|---|---|
| private int L | |
| N | back to summary |
|---|---|
| private int N | |
| ONE | back to summary |
|---|---|
| private static final BigInteger ONE | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| TWO | back to summary |
|---|---|
| private static final BigInteger TWO | |
| usageIndex | back to summary |
|---|---|
| private int usageIndex | |
| use186_3 | back to summary |
|---|---|
| private boolean use186_3 | |
| ZERO | back to summary |
|---|---|
| private static final BigInteger ZERO | |
| DSAParametersGenerator | back to summary |
|---|---|
| public DSAParametersGenerator() | |
| DSAParametersGenerator | back to summary |
|---|---|
| public DSAParametersGenerator(Digest digest) | |
| calculateGenerator_FIPS186_2 | back to summary |
|---|---|
| private static BigInteger calculateGenerator_FIPS186_2(BigInteger p, BigInteger q, SecureRandom r) | |
| calculateGenerator_FIPS186_3_Unverifiable | back to summary |
|---|---|
| private static BigInteger calculateGenerator_FIPS186_3_Unverifiable(BigInteger p, BigInteger q, SecureRandom r) | |
| calculateGenerator_FIPS186_3_Verifiable | back to summary |
|---|---|
| private static BigInteger calculateGenerator_FIPS186_3_Verifiable(Digest d, BigInteger p, BigInteger q, byte[] seed, int index) | |
| generateParameters | back to summary |
|---|---|
| public DSAParameters generateParameters() which generates the p and g values from the given parameters, returning the DSAParameters object. Note can take a while...
| |
| generateParameters_FIPS186_2 | back to summary |
|---|---|
| private DSAParameters generateParameters_FIPS186_2() | |
| generateParameters_FIPS186_3 | back to summary |
|---|---|
| private DSAParameters generateParameters_FIPS186_3() generate suitable parameters for DSA, in line with FIPS 186-3 A.1 Generation of the FFC Primes p and q. | |
| getDefaultN | back to summary |
|---|---|
| private static int getDefaultN(int L) | |
| getMinimumIterations | back to summary |
|---|---|
| private static int getMinimumIterations(int L) | |
| hash | back to summary |
|---|---|
| private static void hash(Digest d, byte[] input, byte[] output, int outputPos) | |
| inc | back to summary |
|---|---|
| private static void inc(byte[] buf) | |
| init | back to summary |
|---|---|
| public void init(int size, int certainty, SecureRandom random) initialise the key generator.
| |
| init | back to summary |
|---|---|
| public void init(DSAParameterGenerationParameters params) Initialise the key generator for DSA 2. Use this init method if you need to generate parameters for DSA 2 keys.
| |
| isProbablePrime | back to summary |
|---|---|
| private boolean isProbablePrime(BigInteger x) | |