de.flexiprovider.core.shacal2
Class Shacal2KeyGenParameterSpec
java.lang.Object
|
+--de.flexiprovider.core.shacal2.Shacal2KeyGenParameterSpec
- All Implemented Interfaces:
- AlgorithmParameterSpec, java.security.spec.AlgorithmParameterSpec
- public class Shacal2KeyGenParameterSpec
- extends java.lang.Object
- implements AlgorithmParameterSpec
This class specifies parameters used for initializing the
Shacal2KeyGenerator. The parameters consist of the key size in bits.
Values for the key are 128, 192, 256, 320, 384, and 448 bits, with the
default being 128 bits.
- Author:
- Paul Nguentcheu, Martin Döring
| Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_KEY_SIZE
public static final int DEFAULT_KEY_SIZE
- The default key size (128 bits)
Shacal2KeyGenParameterSpec
public Shacal2KeyGenParameterSpec()
- Construct the default parameters. Choose key size as
DEFAULT_KEY_SIZE.
Shacal2KeyGenParameterSpec
public Shacal2KeyGenParameterSpec(int keySize)
- Construct new parameters from the given key size. If the key size is
invalid, the
default key size is chosen.
- Parameters:
keySize - the key size (128, 192, 256, 320, 384, or 448 bits)
getKeySize
public int getKeySize()
- Returns:
- the key size in bits