Luky Library - 4.1.1 (20061117-1148)

luky.crypt
Class BlowfishECB

java.lang.Object
  extended by luky.crypt.BlowfishECB
Direct Known Subclasses:
BlowfishCBC

public class BlowfishECB
extends Object

implementation of the Blowfish encryption algorithm in ECB mode

Version:
16 May 2000
Author:
Markus Hahn
 

Field Summary
static int BLOCKSIZE
          block size of this cipher (in bytes)
static int MAXKEYLENGTH
          maximum possible key length
 
Constructor Summary
BlowfishECB(byte[] bfkey)
          default constructor
 
Method Summary
protected  long decryptBlock(long lCipherBlock)
           
protected  long encryptBlock(long lPlainBlock)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXKEYLENGTH

public static final int MAXKEYLENGTH
maximum possible key length

See Also:
Constant Field Values

BLOCKSIZE

public static final int BLOCKSIZE
block size of this cipher (in bytes)

See Also:
Constant Field Values
Constructor Detail

BlowfishECB

public BlowfishECB(byte[] bfkey)
default constructor

Parameters:
bfkey - key material, up to MAXKEYLENGTH bytes
Method Detail

encryptBlock

protected long encryptBlock(long lPlainBlock)

decryptBlock

protected long decryptBlock(long lCipherBlock)

Luky Library - 4.1.1 (20061117-1148)