public class BlowFish extends java.lang.Object implements BlockCipher
| Constructor and Description |
|---|
BlowFish() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithmName() |
int |
getBlockSize() |
void |
init(boolean encrypting,
byte[] key)
initialise a Blowfish cipher.
|
void |
reset() |
void |
transformBlock(byte[] in,
int inOff,
byte[] out,
int outOff) |
public void init(boolean encrypting,
byte[] key)
init in interface BlockCipherencrypting - whether or not we are for encryption.key - the key required to set up the cipher.java.lang.IllegalArgumentException - if the params argument is inappropriate.public java.lang.String getAlgorithmName()
public final void transformBlock(byte[] in,
int inOff,
byte[] out,
int outOff)
transformBlock in interface BlockCipherpublic void reset()
public int getBlockSize()
getBlockSize in interface BlockCipher