All Packages Class Hierarchy This Package Previous Next Index
Class javax.crypto.spec.DESParameterSpec
java.lang.Object
|
+----javax.crypto.spec.DESParameterSpec
- public class DESParameterSpec
- extends Object
- implements AlgorithmParameterSpec
This class specifies the parameter used with the DES or DES-EDE
("triple-DES") algorithms.
This parameter is called initialization vector (IV).
- See Also:
- java.security.spec.AlgorithmParameterSpec
DESParameterSpec(byte[])
- Uses the first 8 bytes in
initVector
as the IV.
DESParameterSpec(byte[], int)
- Uses the first 8 bytes in
initVector
, beginning at
offset
, as the IV.
getIV()
- Returns the initialization vector (IV).
DESParameterSpec
public DESParameterSpec(byte[] initVector)
- Uses the first 8 bytes in
initVector
as the IV.
- Parameters:
- initVector - the buffer with the IV
DESParameterSpec
public DESParameterSpec(byte[] initVector,
int offset)
- Uses the first 8 bytes in
initVector
, beginning at
offset
, as the IV.
- Parameters:
- initVector - the buffer with the IV
- offset - the offset in
initVector
, where the IV
starts
getIV
public byte[] getIV()
- Returns the initialization vector (IV).
- Returns:
- the initialization vector (IV)
All Packages Class Hierarchy This Package Previous Next Index