de.flexiprovider.nf.iq.iqgq
Class IQGQKeyPairGenerator

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

public class IQGQKeyPairGenerator
extends KeyPairGenerator

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

Author:
Ralf-P. Weinmann

Constructor Summary
IQGQKeyPairGenerator()
           
 
Method Summary
 KeyPair genKeyPair()
          Generate an IQGQ key pair, consisting of an IQGQPublicKey and an IQGQPrivateKey.
 void initialize(AlgorithmParameterSpec params, SecureRandom random)
          Initialize the IQGQ key pair generator with the specified parameters (supposed to be an instance of IQGQParameterSpec) and source of randomness.
 void initialize(int keySize, SecureRandom random)
          Initialize the IQGQ 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

IQGQKeyPairGenerator

public IQGQKeyPairGenerator()
Method Detail

initialize

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

initialize

public void initialize(int keySize,
                       SecureRandom random)
Initialize the IQGQ 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 IQGQ key pair, consisting of an IQGQPublicKey and an IQGQPrivateKey.
Overrides:
genKeyPair in class KeyPairGenerator
Returns:
the generated key pair