ch.ethz.ssh2.crypto.cipher
Class DESede
java.lang.Object
ch.ethz.ssh2.crypto.cipher.DES
ch.ethz.ssh2.crypto.cipher.DESede
- All Implemented Interfaces:
- BlockCipher
public class DESede
- extends DES
DESede.
- Version:
- 2.50, 03/15/10
- Author:
- See comments in the source file
|
Constructor Summary |
DESede()
standard constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DESede
public DESede()
- standard constructor.
init
public void init(boolean encrypting,
byte[] key)
- initialise a DES cipher.
- Specified by:
init in interface BlockCipher- Overrides:
init in class DES
- 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
public String getAlgorithmName()
- Overrides:
getAlgorithmName in class DES
getBlockSize
public int getBlockSize()
- Specified by:
getBlockSize in interface BlockCipher- Overrides:
getBlockSize in class DES
transformBlock
public void transformBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
- Specified by:
transformBlock in interface BlockCipher- Overrides:
transformBlock in class DES
reset
public void reset()
- Overrides:
reset in class DES
Copyright © 2011. All Rights Reserved.