public class BlowFish extends Object implements BlockCipher
Constructor and Description |
---|
BlowFish() |
Modifier and Type | Method and Description |
---|---|
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 BlockCipher
encrypting
- whether or not we are for encryption.key
- the key required to set up the cipher.IllegalArgumentException
- if the params argument is inappropriate.public String getAlgorithmName()
public final void transformBlock(byte[] in, int inOff, byte[] out, int outOff)
transformBlock
in interface BlockCipher
public void reset()
public int getBlockSize()
getBlockSize
in interface BlockCipher
Copyright © 2021. All rights reserved.