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
DESede.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintvoidinit(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
-
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()
-