de.flexiprovider.nf.iq.iqgq
Class IQGQParamGenParameterSpec

java.lang.Object
  |
  +--de.flexiprovider.nf.iq.iqgq.IQGQParamGenParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec

public class IQGQParamGenParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

This class specifies parameters used for initializing the IQGQParameterGenerator. The parameters consist of the bit length of the discriminant.

Author:
Martin Döring

Field Summary
static int DEFAULT_SIZE
          The default bit length of the discriminant (768)
static int MAX_SIZE
          The maximal bit length of the discriminant (16384)
 
Constructor Summary
IQGQParamGenParameterSpec()
          Construct the default IQDSA parameter generation parameters.
IQGQParamGenParameterSpec(int size)
          Construct new IQDSA parameter generation parameters from the desired bit length of the discriminant.
 
Method Summary
 int getSize()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_SIZE

public static final int DEFAULT_SIZE
The default bit length of the discriminant (768)

MAX_SIZE

public static final int MAX_SIZE
The maximal bit length of the discriminant (16384)
Constructor Detail

IQGQParamGenParameterSpec

public IQGQParamGenParameterSpec()
Construct the default IQDSA parameter generation parameters. Choose the bit length of the discriminant as DEFAULT_SIZE.

IQGQParamGenParameterSpec

public IQGQParamGenParameterSpec(int size)
Construct new IQDSA parameter generation parameters from the desired bit length of the discriminant.

If the bit length of the discriminant is < 2, the DEFAULT_SIZE is used as bit length. If the bit length is > MAX_SIZE, MAX_SIZE is used as bit length.

Parameters:
size - the bit length of the discriminant (>= 2, <= MAX_SIZE)
Method Detail

getSize

public int getSize()
Returns:
the bit length of the discriminant