public class BlowFish extends java.lang.Object implements BlockCipher
| Modifier and Type | Class and Description |
|---|---|
static class |
BlowFish.CBC |
static class |
BlowFish.CTR |
| Constructor and Description |
|---|
BlowFish() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithmName() |
int |
getBlockSize() |
void |
init(boolean encrypting,
byte[] key,
byte[] iv)
initialise a Blowfish cipher.
|
void |
transformBlock(byte[] in,
int inOff,
byte[] out,
int outOff) |
public void init(boolean encrypting,
byte[] key,
byte[] iv)
init in interface BlockCipherencrypting - whether or not we are for encryption.key - the key required to set up the cipher.iv - initial vector; not used for stream ciphersjava.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 int getBlockSize()
getBlockSize in interface BlockCipher