gnu.crypto.key.dss
public class DSSKeyPairGenerator extends Object implements IKeyPairGenerator
A key-pair generator for asymetric keys to use in conjunction with the DSS (Digital Signature Standard).
References:Version: $Revision: 1.2 $
Field Summary | |
---|---|
static String | DSS_PARAMETERS
Property name of an optional DSAParameterSpec instance to use for
this generator's p , q , and g values.
|
static DSAParameterSpec | KEY_PARAMS_1024 |
static DSAParameterSpec | KEY_PARAMS_512 |
static DSAParameterSpec | KEY_PARAMS_768 |
static String | MODULUS_LENGTH Property name of the length (Integer) of the modulus (p) of a DSS key. |
static String | SOURCE_OF_RANDOMNESS
Property name of an optional SecureRandom instance to use. |
static String | USE_DEFAULTS Property name of the Boolean indicating wether or not to use defaults. |
Method Summary | |
---|---|
KeyPair | generate() |
String | name() |
void | setup(Map attributes) Configures this instance. |
p
, q
, and g
values.
The default is to generate these values or use pre-computed ones,
depending on the value of the USE_DEFAULTS
attribute.Configures this instance.
Parameters: attributes the map of name/value pairs to use.
Throws: IllegalArgumentException if the designated MODULUS_LENGTH
value is not greater than 512, less than 1024 and not of the form
512 + 64j
.