| java.lang.Object org.bouncycastle.crypto.generators.DSAParametersGenerator
DSAParametersGenerator | public class DSAParametersGenerator (Code) | | generate suitable parameters for DSA, in line with FIPS 186-2.
|
Method Summary | |
public DSAParameters | generateParameters() which generates the p and g values from the given parameters,
returning the DSAParameters object. | public void | init(int size, int certainty, SecureRandom random) initialise the key generator. |
generateParameters | public DSAParameters generateParameters()(Code) | | which generates the p and g values from the given parameters,
returning the DSAParameters object.
Note: can take a while...
|
init | public void init(int size, int certainty, SecureRandom random)(Code) | | initialise the key generator.
Parameters: size - size of the key (range 2^512 -> 2^1024 - 64 bit increments) Parameters: certainty - measure of robustness of prime (for FIPS 186-2 compliance this should be at least 80). Parameters: random - random byte source. |
|
|