org.bouncycastle.crypto.engines

Class DESedeEngine

public class DESedeEngine extends DESEngine

a class that provides a basic DESede (or Triple DES) engine.
Field Summary
protected static intBLOCK_SIZE
Constructor Summary
DESedeEngine()
standard constructor.
Method Summary
StringgetAlgorithmName()
intgetBlockSize()
voidinit(boolean encrypting, CipherParameters params)
initialise a DESede cipher.
intprocessBlock(byte[] in, int inOff, byte[] out, int outOff)
voidreset()

Field Detail

BLOCK_SIZE

protected static final int BLOCK_SIZE

Constructor Detail

DESedeEngine

public DESedeEngine()
standard constructor.

Method Detail

getAlgorithmName

public String getAlgorithmName()

getBlockSize

public int getBlockSize()

init

public void init(boolean encrypting, CipherParameters params)
initialise a DESede cipher.

Parameters: encrypting whether or not we are for encryption. params the parameters required to set up the cipher.

Throws: IllegalArgumentException if the params argument is inappropriate.

processBlock

public int processBlock(byte[] in, int inOff, byte[] out, int outOff)

reset

public void reset()