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.
-
-
Constructor Summary
Constructors Constructor Description DESede()standard constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAlgorithmName()intgetBlockSize()voidinit(boolean encrypting, byte[] key)initialise a DES cipher.voidreset()voidtransformBlock(byte[] in, int inOff, byte[] out, int outOff)-
Methods inherited from class com.trilead.ssh2.crypto.cipher.DES
desFunc, generateWorkingKey
-
-
-
-
Method Detail
-
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:
java.lang.IllegalArgumentException- if the params argument is inappropriate.
-
getAlgorithmName
public java.lang.String 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
-
-