| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv boolean | |
| private DSAParameterSpec | |
| private int | |
| private int | |
| private SecureRandom |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public KeyPair | generateKeyPair()
Overrides java. Generates a pair of keys usable by any JavaSecurity compliant DSA implementation. |
| private KeyPair | |
| private BigInteger | generateX(SecureRandom random, BigInteger q)
Generate the private key component of the key pair using the provided source of random bits. |
| pack-priv BigInteger | generateY(BigInteger
the private key component. x, BigInteger the base parameter. p, BigInteger g)Generate the public key component y of the key pair. |
| pack-priv void | |
| pack-priv void | |
| public void | initialize(int modlen, SecureRandom random)
Overrides java. Initializes the key pair generator for a certain keysize with the given source of randomness (and a default parameter set). |
| public void | initialize(AlgorithmParameterSpec
the parameter set to be used to generate
the keys. params, SecureRandom the source of randomness for this generator. random)Overrides java. Initializes the DSA object using a parameter object. |
| forceNewParameters | back to summary |
|---|---|
| pack-priv boolean forceNewParameters | |
| params | back to summary |
|---|---|
| private DSAParameterSpec params | |
| plen | back to summary |
|---|---|
| private int plen | |
| qlen | back to summary |
|---|---|
| private int qlen | |
| random | back to summary |
|---|---|
| private SecureRandom random | |
| DSAKeyPairGenerator | back to summary |
|---|---|
| pack-priv DSAKeyPairGenerator(int defaultKeySize) | |
| checkStrength | back to summary |
|---|---|
| private static void checkStrength(int sizeP, int sizeQ) | |
| generateKeyPair | back to summary |
|---|---|
| public KeyPair generateKeyPair() Overrides java. Generates a pair of keys usable by any JavaSecurity compliant DSA implementation. | |
| generateKeyPair | back to summary |
|---|---|
| private KeyPair generateKeyPair(BigInteger p, BigInteger q, BigInteger g, SecureRandom random) | |
| generateX | back to summary |
|---|---|
| private BigInteger generateX(SecureRandom random, BigInteger q) Generate the private key component of the key pair using the provided source of random bits. This method uses the random but source passed to generate a seed and then calls the seed-based generateX method. | |
| generateY | back to summary |
|---|---|
| pack-priv BigInteger generateY(BigInteger x, BigInteger p, BigInteger g) Generate the public key component y of the key pair.
| |
| init | back to summary |
|---|---|
| pack-priv void init(int modlen, SecureRandom random, boolean forceNew) | |
| init | back to summary |
|---|---|
| pack-priv void init(DSAParameterSpec params, SecureRandom random, boolean forceNew) | |
| initialize | back to summary |
|---|---|
| public void initialize(int modlen, SecureRandom random) Overrides java. Doc from java. Initializes the key pair generator for a certain keysize with the given source of randomness (and a default parameter set). | |
| initialize | back to summary |
|---|---|
| public void initialize(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException Overrides java. Initializes the DSA object using a parameter object.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Current | back to summary |
|---|---|
| public Current() | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | initialize(int modlen, boolean genParams, SecureRandom random)
Implements java. Initializes the DSA key pair generator. |
| public void | initialize(DSAParams
a fully initialized DSA parameter object. params, SecureRandom random)Implements java. Initializes the DSA object using a DSA parameter object. |
| Legacy | back to summary |
|---|---|
| public Legacy() | |
| initialize | back to summary |
|---|---|
| public void initialize(int modlen, boolean genParams, SecureRandom random) throws InvalidParameterException Implements java. Initializes the DSA key pair generator. If
| |
| initialize | back to summary |
|---|---|
| public void initialize(DSAParams params, SecureRandom random) throws InvalidParameterException Implements java. Initializes the DSA object using a DSA parameter object.
| |