gnu.crypto.cipher
Class Blowfish
public
class
Blowfish
extends BaseCipher
Blowfish is a 16-round, 64-bit Feistel cipher designed by Bruce
Schneier. It accepts a variable-length key of up to 448 bits.
References:
- Schneier, Bruce: Applied Cryptography, Second Edition,
336--339, 647--654 (1996 Bruce Schneier).
- The
Blowfish Encryption Algorithm.
Method Summary |
Iterator | blockSizes() |
Object | clone() |
void | decrypt(byte[] in, int i, byte[] out, int o, Object k, int bs) |
void | encrypt(byte[] in, int i, byte[] out, int o, Object k, int bs) |
Iterator | keySizes() |
Object | makeKey(byte[] k, int bs) |
boolean | selfTest() |
static final int[] KS0
Initial value of S-box 1.
public Blowfish()
public Iterator blockSizes()
public Object clone()
public void decrypt(byte[] in, int i, byte[] out, int o, Object k, int bs)
public void encrypt(byte[] in, int i, byte[] out, int o, Object k, int bs)
public Iterator keySizes()
public Object makeKey(byte[] k, int bs)
public boolean selfTest()