org.bouncycastle.crypto.engines

Class TwofishEngine

public final class TwofishEngine extends Object implements BlockCipher

A class that provides Twofish encryption operations. This Java implementation is based on the Java reference implementation provided by Bruce Schneier and developed by Raif S. Naffah.
Constructor Summary
TwofishEngine()
Method Summary
StringgetAlgorithmName()
intgetBlockSize()
voidinit(boolean encrypting, CipherParameters params)
initialise a Twofish cipher.
intprocessBlock(byte[] in, int inOff, byte[] out, int outOff)
voidreset()

Constructor Detail

TwofishEngine

public TwofishEngine()

Method Detail

getAlgorithmName

public String getAlgorithmName()

getBlockSize

public int getBlockSize()

init

public void init(boolean encrypting, CipherParameters params)
initialise a Twofish 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 final int processBlock(byte[] in, int inOff, byte[] out, int outOff)

reset

public void reset()