|
Luky Library - 4.1.1 (20061117-1148) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectluky.crypt.BlowfishECB
luky.crypt.BlowfishCBC
public class BlowfishCBC
implementation of the Blowfish encryption algorithm in CBC mode

| Field Summary |
|---|
| Fields inherited from class luky.crypt.BlowfishECB |
|---|
BLOCKSIZE, MAXKEYLENGTH |
| Constructor Summary | |
|---|---|
BlowfishCBC(byte[] bfkey,
long lInitCBCIV)
constructor |
|
| Method Summary | |
|---|---|
void |
decrypt(byte[] buffer)
decrypts a byte buffer (should be aligned to an 8 byte border) to itself |
void |
encrypt(byte[] buffer)
encrypts a byte buffer (should be aligned to an 8 byte border) to itself |
long |
getCBCIV()
get the current CBC IV (for cipher resets) |
void |
setCBCIV(byte[] newCBCIV)
set the current CBC IV (for cipher resets) |
void |
setCBCIV(long lNewCBCIV)
set the current CBC IV (for cipher resets) |
| Methods inherited from class luky.crypt.BlowfishECB |
|---|
decryptBlock, encryptBlock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlowfishCBC(byte[] bfkey,
long lInitCBCIV)
bfkey - key material, up to MAXKEYLENGTH byteslInitCBCIV - the CBC IV| Method Detail |
|---|
public long getCBCIV()
public void setCBCIV(long lNewCBCIV)
lNewCBCIV - the new CBC IVpublic void setCBCIV(byte[] newCBCIV)
newCBCIV - the new CBC IV in network byte ordered arraypublic void encrypt(byte[] buffer)
buffer - buffer to encryptpublic void decrypt(byte[] buffer)
buffer - buffer to decrypt
|
Luky Library - 4.1.1 (20061117-1148) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||