ch.ethz.ssh2.crypto.cipher

Class DESede

Implemented Interfaces:
BlockCipher

public class DESede
extends DES

DESede.

Constructor Summary

DESede()
standard constructor.

Method Summary

String
getAlgorithmName()
int
getBlockSize()
void
init(boolean encrypting, byte[] key)
initialise a DES cipher.
void
reset()
void
transformBlock(byte[] in, int inOff, byte[] out, int outOff)

Methods inherited from class ch.ethz.ssh2.crypto.cipher.DES

desFunc, generateWorkingKey, getAlgorithmName, getBlockSize, init, reset, transformBlock

Constructor Details

DESede

public DESede()
standard constructor.

Method Details

getAlgorithmName

public String getAlgorithmName()
Overrides:
getAlgorithmName in interface DES

getBlockSize

public int getBlockSize()
Specified by:
getBlockSize in interface BlockCipher
Overrides:
getBlockSize in interface DES

init

public void init(boolean encrypting,
                 byte[] key)
initialise a DES cipher.
Specified by:
init in interface BlockCipher
Overrides:
init in interface DES
Parameters:
encrypting - whether or not we are for encryption.
key - the parameters required to set up the cipher.

reset

public void reset()
Overrides:
reset in interface DES

transformBlock

public void transformBlock(byte[] in,
                           int inOff,
                           byte[] out,
                           int outOff)
Specified by:
transformBlock in interface BlockCipher
Overrides:
transformBlock in interface DES