luky.crypt
Class BlowfishECB
java.lang.Object
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
BlowfishECB
public BlowfishECB(byte[] bfkey)
- default constructor
- Parameters:
bfkey
- key material, up to MAXKEYLENGTH bytes
encryptBlock
protected long encryptBlock(long lPlainBlock)
decryptBlock
protected long decryptBlock(long lCipherBlock)