org.bouncycastle.crypto.engines
Class TwofishEngine
java.lang.Object
org.bouncycastle.crypto.engines.TwofishEngine
- BlockCipher
public final class TwofishEngine
extends java.lang.Object
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.
TwofishEngine
public TwofishEngine()
init
public void init(boolean encrypting,
CipherParameters params)
initialise a Twofish cipher.
- init in interface BlockCipher
encrypting
- whether or not we are for encryption.params
- the parameters required to set up the cipher.
processBlock
public final int processBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
- processBlock in interface BlockCipher