de.flexiprovider.nf.iq.iqgq
Class IQGQParameterGenerator
java.lang.Object
|
+--java.security.AlgorithmParameterGeneratorSpi
|
+--de.flexiprovider.api.parameters.AlgorithmParameterGenerator
|
+--de.flexiprovider.nf.iq.iqgq.IQGQParameterGenerator
- public class IQGQParameterGenerator
- extends AlgorithmParameterGenerator
This class is used to generate parameters for the IQGQ signature algorithm.
- Author:
- Martin Döring
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IQGQParameterGenerator
public IQGQParameterGenerator()
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 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
IQGQParamGenParameterSpec.
init
public void init(int size,
SecureRandom random)
- Initialize the parameter generator with the size of the prime p
and a source of randomness.
If the bit length of the discriminant is < 2, the
IQGQParamGenParameterSpec.DEFAULT_SIZE is used as bit length. If
the bit length is > IQGQParamGenParameterSpec.MAX_SIZE,
IQGQParamGenParameterSpec.MAX_SIZE is used as bit length.
- Overrides:
init in class AlgorithmParameterGenerator
- Parameters:
size - the bit length of the discriminant (>= 2, <=
IQGQParamGenParameterSpec.MAX_SIZE)random - the source of randomness
generateParameters
public AlgorithmParameterSpec generateParameters()
- Generate IQGQ algorithm parameters.
- Overrides:
generateParameters in class AlgorithmParameterGenerator
- Returns:
- the generated IQGQ parameters
- See Also:
IQGQParameterSpec