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:

  1. Schneier, Bruce: Applied Cryptography, Second Edition, 336--339, 647--654 (1996 Bruce Schneier).
  2. The Blowfish Encryption Algorithm.
Field Summary
static int[]KS0
Initial value of S-box 1.
Constructor Summary
Blowfish()
Method Summary
IteratorblockSizes()
Objectclone()
voiddecrypt(byte[] in, int i, byte[] out, int o, Object k, int bs)
voidencrypt(byte[] in, int i, byte[] out, int o, Object k, int bs)
IteratorkeySizes()
ObjectmakeKey(byte[] k, int bs)
booleanselfTest()

Field Detail

KS0

static final int[] KS0
Initial value of S-box 1.

Constructor Detail

Blowfish

public Blowfish()

Method Detail

blockSizes

public Iterator blockSizes()

clone

public Object clone()

decrypt

public void decrypt(byte[] in, int i, byte[] out, int o, Object k, int bs)

encrypt

public void encrypt(byte[] in, int i, byte[] out, int o, Object k, int bs)

keySizes

public Iterator keySizes()

makeKey

public Object makeKey(byte[] k, int bs)

selfTest

public boolean selfTest()
Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.