public class LunaAlgorithmParameterGeneratorDSA
extends java.security.AlgorithmParameterGeneratorSpi
Generating parameters for larger keys can be time-consuming. Although the average time taken is generally much less, key generation could take a few minutes for 2048 bit keys, and up to half an hour for 3072 bit keys.
Constructor and Description |
---|
LunaAlgorithmParameterGeneratorDSA() |
Modifier and Type | Method and Description |
---|---|
java.security.AlgorithmParameters |
engineGenerateParameters() |
void |
engineInit(java.security.spec.AlgorithmParameterSpec params,
java.security.SecureRandom random) |
void |
engineInit(int keysize,
java.security.SecureRandom random)
Initializes this parameter generator for DSA keys of the specified size.
|
public void engineInit(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random) throws java.security.InvalidAlgorithmParameterException
engineInit
in class java.security.AlgorithmParameterGeneratorSpi
java.security.InvalidAlgorithmParameterException
public void engineInit(int keysize, java.security.SecureRandom random)
engineInit
in class java.security.AlgorithmParameterGeneratorSpi
public java.security.AlgorithmParameters engineGenerateParameters()
engineGenerateParameters
in class java.security.AlgorithmParameterGeneratorSpi
Copyright 2014-2018 SafeNet. All rights reserved.