de.flexiprovider.core.rc5
Class RC5KeyGenParameterSpec

java.lang.Object
  |
  +--de.flexiprovider.core.rc5.RC5KeyGenParameterSpec
All Implemented Interfaces:
AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec

public class RC5KeyGenParameterSpec
extends java.lang.Object
implements AlgorithmParameterSpec

This class specifies parameters used for initializing the RC5KeyGenerator. The parameters consist of the key size in bytes.

Author:
Martin Döring

Field Summary
static int DEFAULT_KEY_SIZE
          The default key size (128 bits)
 
Constructor Summary
RC5KeyGenParameterSpec()
          Construct the default parameters.
RC5KeyGenParameterSpec(int keySize)
          Construct new parameters from the given key size.
 
Method Summary
 int getKeySize()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_KEY_SIZE

public static final int DEFAULT_KEY_SIZE
The default key size (128 bits)
Constructor Detail

RC5KeyGenParameterSpec

public RC5KeyGenParameterSpec()
Construct the default parameters. Choose key size as DEFAULT_KEY_SIZE.

RC5KeyGenParameterSpec

public RC5KeyGenParameterSpec(int keySize)
Construct new parameters from the given key size. If key size is < 1, the default key size is chosen.
Parameters:
keySize - the key size in bits
Method Detail

getKeySize

public int getKeySize()
Returns:
the key size in bits