de.flexiprovider.nf.iq.iqdsa
Class IQDSAParameterGenerator
java.lang.Object
|
+--java.security.AlgorithmParameterGeneratorSpi
|
+--de.flexiprovider.api.parameters.AlgorithmParameterGenerator
|
+--de.flexiprovider.nf.iq.iqdsa.IQDSAParameterGenerator
- public class IQDSAParameterGenerator
- extends AlgorithmParameterGenerator
This class is used to generate parameters for the IQDSA signature algorithm.
- Author:
- Martin Döring
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IQDSAParameterGenerator
public IQDSAParameterGenerator()
getAlgorithmParameters
protected AlgorithmParameters getAlgorithmParameters()
- Overrides:
getAlgorithmParameters in class AlgorithmParameterGenerator
- Returns:
- an instance of the
AlgorithmParameters class
corresponding to the generated parameters
init
public void init(AlgorithmParameterSpec genParams,
SecureRandom random)
throws InvalidAlgorithmParameterException
- Initialize the parameter generator with parameters (supposed to be an
instance of
IQDSAParamGenParameterSpec) and a source of
randomness. If the parameters are null, the
default parameters
are used.
- Overrides:
init in class AlgorithmParameterGenerator
- Parameters:
genParams - the parametersrandom - the source of randomness- Throws:
InvalidAlgorithmParameterException - if the parameters are not an instance of
IQDSAParamGenParameterSpec.
init
public void init(int size,
SecureRandom random)
- Initialize the parameter generator with the bit length of the
discriminant and a source of randomness.
If the bit length of the discriminant is < 2, the
default size is used as
bit length. If the bit length is >
IQDSAParamGenParameterSpec.MAX_SIZE,
IQDSAParamGenParameterSpec.MAX_SIZE is used as bit length.
- Overrides:
init in class AlgorithmParameterGenerator
- Parameters:
size - the bit length of the discriminant (>= 2, <=
IQDSAParamGenParameterSpec.MAX_SIZE)random - the source of randomness
generateParameters
public AlgorithmParameterSpec generateParameters()
- Generate IQDSA algorithm parameters.
- Overrides:
generateParameters in class AlgorithmParameterGenerator
- Returns:
- the generated IQDSA parameters
- See Also:
IQDSAParameterSpec