com.sshtools.cipher
Class TwofishEngine
java.lang.Object
com.sshtools.cipher.TwofishEngine
- All Implemented Interfaces:
- com.maverick.crypto.engines.CipherEngine
- public final class TwofishEngine
- extends java.lang.Object
- implements com.maverick.crypto.engines.CipherEngine
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TwofishEngine
public TwofishEngine()
init
public void init(boolean forEncryption,
byte[] key)
- Specified by:
init
in interface com.maverick.crypto.engines.CipherEngine
main
public static void main(java.lang.String[] args)
getAlgorithmName
public java.lang.String getAlgorithmName()
processBlock
public final int processBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
throws java.io.IOException
- Specified by:
processBlock
in interface com.maverick.crypto.engines.CipherEngine
- Throws:
java.io.IOException
reset
public void reset()
getBlockSize
public int getBlockSize()
- Specified by:
getBlockSize
in interface com.maverick.crypto.engines.CipherEngine
Copyright © 2003 3SP LTD. All Rights Reserved.