de.flexiprovider.common.mode
Class ModeParamGenParameterSpec

java.lang.Object
  |
  +--de.flexiprovider.common.mode.ModeParamGenParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec

public class ModeParamGenParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

This class specifies parameters used for initializing the ModeParameterGenerator. The parameters consist of the byte length of the initialization vector.

Author:
Martin Döring

Field Summary
static int DEFAULT_LENGTH
          The default length of the IV (8 bytes)
 
Constructor Summary
ModeParamGenParameterSpec()
          Construct the default mode parameter generation parameters.
ModeParamGenParameterSpec(int ivLength)
          Construct new parameters from the desired length of the initialization vector (IV) in bytes.
 
Method Summary
 int getIVLength()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LENGTH

public static final int DEFAULT_LENGTH
The default length of the IV (8 bytes)
Constructor Detail

ModeParamGenParameterSpec

public ModeParamGenParameterSpec()
Construct the default mode parameter generation parameters. Set the length of the IV to DEFAULT_LENGTH. The default length is chosen (somewhat arbitrarily) as 8 bytes.

ModeParamGenParameterSpec

public ModeParamGenParameterSpec(int ivLength)
Construct new parameters from the desired length of the initialization vector (IV) in bytes.
Parameters:
ivLength - the length of the IV in bytes
Method Detail

getIVLength

public int getIVLength()
Returns:
the length of the IV in bytes