Package com.trilead.ssh2.crypto.cipher
Class DESede
java.lang.Object
com.trilead.ssh2.crypto.cipher.DES
com.trilead.ssh2.crypto.cipher.DESede
- All Implemented Interfaces:
BlockCipher
public class DESede extends DES
DESede.
- Version:
- $Id: DESede.java,v 1.1 2007/10/15 12:49:55 cplattne Exp $
- Author:
- See comments in the source file
-
Constructor Summary
Constructors Constructor Description DESede()standard constructor. -
Method Summary
Modifier and Type Method Description StringgetAlgorithmName()intgetBlockSize()voidinit(boolean encrypting, byte[] key)initialise a DES cipher.voidreset()voidtransformBlock(byte[] in, int inOff, byte[] out, int outOff)
-
Constructor Details
-
DESede
public DESede()standard constructor.
-
-
Method Details
-
init
public void init(boolean encrypting, byte[] key)initialise a DES cipher.- Specified by:
initin interfaceBlockCipher- Overrides:
initin classDES- Parameters:
encrypting- whether or not we are for encryption.key- the parameters required to set up the cipher.- Throws:
IllegalArgumentException- if the params argument is inappropriate.
-
getAlgorithmName
- Overrides:
getAlgorithmNamein classDES
-
getBlockSize
public int getBlockSize()- Specified by:
getBlockSizein interfaceBlockCipher- Overrides:
getBlockSizein classDES
-
transformBlock
public void transformBlock(byte[] in, int inOff, byte[] out, int outOff)- Specified by:
transformBlockin interfaceBlockCipher- Overrides:
transformBlockin classDES
-
reset
public void reset()
-