public class CAST5ParameterSpec
extends java.lang.Object
implements java.security.spec.AlgorithmParameterSpec
| Constructor and Description |
|---|
CAST5ParameterSpec()
Deprecated.
The empty constructor defines a new parameter specification with a
key length of 128 bits and a zero initialization vector.
|
CAST5ParameterSpec(int length,
byte[] iv)
Deprecated.
The constructor takes the length of the key in bits and
the initialization vector.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getIV()
Deprecated.
Returns the desired initialization vector.
|
int |
getLength()
Deprecated.
Returns the length of the key for which this parameter is intended.
|
void |
setIV(byte[] newInit)
Deprecated.
Sets a new initialization vector to be used with the parameter spec.
|
void |
setLength(int newLen)
Deprecated.
Sets a new desired key length.
|
public CAST5ParameterSpec()
public CAST5ParameterSpec(int length,
byte[] iv)
length - The length of the key this should be used with, from 40-128.iv - The initialization vector to be used with this key, in cipher-block-chaining mode.public int getLength()
public void setLength(int newLen)
newLen - The new key length to be associated with the parameter.public byte[] getIV()
public void setIV(byte[] newInit)
newInit - The new initialization vector to use.