de.flexiprovider.nf.iq.iqdsa
Class IQDSAParamGenParameterSpec

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

public class IQDSAParamGenParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

This class specifies parameters used for initializing the IQDSAParameterGenerator. 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
IQDSAParamGenParameterSpec()
          Construct the default IQDSA parameter generation parameters.
IQDSAParamGenParameterSpec(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

IQDSAParamGenParameterSpec

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

IQDSAParamGenParameterSpec

public IQDSAParamGenParameterSpec(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