| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private Digest | |
| 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 | generateParameters()
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 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. |
| certainty | back to summary |
|---|---|
| private int certainty | |
| digest | back to summary |
|---|---|
| private Digest digest | |
| 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) | |
| hash | back to summary |
|---|---|
| private static void hash(Digest d, byte[] input, byte[] output) | |
| 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.
| |