com.sshtools.cipher
Class TwofishEngine

java.lang.Object
  extended bycom.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.


Constructor Summary
TwofishEngine()
           
 
Method Summary
 java.lang.String getAlgorithmName()
           
 int getBlockSize()
           
 void init(boolean forEncryption, byte[] key)
           
static void main(java.lang.String[] args)
           
 int processBlock(byte[] in, int inOff, byte[] out, int outOff)
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TwofishEngine

public TwofishEngine()
Method Detail

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.