borland Packages Class Hierarchy datastore Package
java.lang.Object +----com.borland.datastore.Tf
Properties Methods
This class is used internally by other com.borland
classes. You should never use this class directly.
Twofish is an AES candidate algorithm. It is a balanced 128-bit Feistel cipher, consisting of 16 rounds. In each round, a 64-bit S-box value is computed from 64 bits of the block, and this value is xored into the other half of the block. The two half-blocks are then exchanged, and the next round begins. Before the first round, all input bits are xored with key- dependent "whitening" subkeys, and after the final round the output bits are xored with other key-dependent whitening subkeys; these subkeys are not used anywhere else in the algorithm.
Twofish was submitted by Bruce Schneier, Doug Whiting, John Kelsey, Chris Hall and David Wagner.
Reference:
public void decrypt(byte[] in, int inOff, byte[] out, int outOff)Decrypt exactly one block of ciphertext.
Parameters:
Returns: The plaintext generated from a ciphertext using the session key.
public final void decryptKey(byte[] src)
public void encrypt(byte[] in, int inOff, byte[] out, int outOff)Encrypt exactly one block of plaintext.
Parameters:
public void encryptCBC(byte[] iv, int ivOff, byte[] src, int srcOff, byte[] dest, int destOff, int length)
public final byte[] encryptString(String src)
public void finalize()
Overrides: java.lang.Object.finalize()
public void makeKey(byte[] k, int length)Expand a user-supplied key material into a session key.
Parameters:
public final void makeKey(char[] src)Expand a user-supplied key material into a session key.
public final void makeSalt(byte[] buf, int off, int length)