com.trilead.ssh2.crypto.cipher
Class BlowFish
java.lang.Object
com.trilead.ssh2.crypto.cipher.BlowFish
- BlockCipher
public class BlowFish
extends java.lang.Object
A class that provides Blowfish key encryption operations, such as encoding
data and generating keys. All the algorithms herein are from Applied
Cryptography and implement a simplified cryptography interface.
BlowFish
public BlowFish()
getAlgorithmName
public String getAlgorithmName()
init
public void init(boolean encrypting,
byte[] key)
initialise a Blowfish cipher.
- init in interface BlockCipher
encrypting
- whether or not we are for encryption.key
- the key required to set up the cipher.
transformBlock
public final void transformBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
- transformBlock in interface BlockCipher