de.flexiprovider.nf.iq.iqdsa
Class IQDSAKeyPairGenerator

java.lang.Object
  |
  +--java.security.KeyPairGeneratorSpi
        |
        +--de.flexiprovider.api.keys.KeyPairGenerator
              |
              +--de.flexiprovider.nf.iq.iqdsa.IQDSAKeyPairGenerator

public class IQDSAKeyPairGenerator
extends KeyPairGenerator

This class is used to generate key pairs for the IQDSA signature algorithm (implemented by IQDSASignature.

Author:
Ralf-P. Weinmann

Constructor Summary
IQDSAKeyPairGenerator()
           
 
Method Summary
 KeyPair genKeyPair()
          Generate an IQDSA key pair, consisting of an IQDSAPublicKey and an IQDSAPrivateKey.
 void initialize(AlgorithmParameterSpec params, SecureRandom random)
          Initialize the IQDSA key pair generator with the specified parameters (supposed to be an instance of IQDSAParameterSpec) and source of randomness.
 void initialize(int keySize, SecureRandom random)
          Initialize the IQDSA key pair generator for given key size and source of randomness.
 
Methods inherited from class de.flexiprovider.api.keys.KeyPairGenerator
generateKeyPair, initialize, initialize
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IQDSAKeyPairGenerator

public IQDSAKeyPairGenerator()
Method Detail

initialize

public void initialize(AlgorithmParameterSpec params,
                       SecureRandom random)
                throws InvalidAlgorithmParameterException
Initialize the IQDSA key pair generator with the specified parameters (supposed to be an instance of IQDSAParameterSpec) and source of randomness. If no parameters are specified, new parameters are generated for the default size using the IQDSAParameterGenerator.
Overrides:
initialize in class KeyPairGenerator
Parameters:
params - the parameters
random - the source of randomness
Throws:
InvalidAlgorithmParameterException - if the parameters are not an instance of IQDSAParameterSpec.

initialize

public void initialize(int keySize,
                       SecureRandom random)
Initialize the IQDSA key pair generator for given key size and source of randomness. The key size is the bit length of the discriminant of the class group.
Overrides:
initialize in class KeyPairGenerator
Parameters:
keySize - the bit length of the discriminant of the class group
random - the source of randomness

genKeyPair

public KeyPair genKeyPair()
Generate an IQDSA key pair, consisting of an IQDSAPublicKey and an IQDSAPrivateKey.
Overrides:
genKeyPair in class KeyPairGenerator
Returns:
the generated key pair