java.lang.Object
mindbright.security.Cipher
mindbright.security.Blowfish
- public final class Blowfish
- extends Cipher
|
Field Summary |
(package private) static int[] |
blowfish_pbox
|
(package private) static int[] |
blowfish_sbox
|
private int |
IV0
|
private int |
IV1
|
protected int[] |
P
|
protected int[] |
S0
|
protected int[] |
S1
|
protected int[] |
S2
|
protected int[] |
S3
|
|
Method Summary |
void |
decrypt(byte[] src,
int srcOff,
byte[] dest,
int destOff,
int len)
|
int[] |
decrypt(int xL,
int xR,
int[] out)
|
void |
encrypt(byte[] src,
int srcOff,
byte[] dest,
int destOff,
int len)
|
void |
encrypt(int xL,
int xR,
int[] out)
|
void |
setKey(byte[] key)
|
void |
setKey(java.lang.String skey)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
S0
protected int[] S0
S1
protected int[] S1
S2
protected int[] S2
S3
protected int[] S3
P
protected int[] P
IV0
private int IV0
IV1
private int IV1
blowfish_pbox
static final int[] blowfish_pbox
blowfish_sbox
static final int[] blowfish_sbox
Blowfish
public Blowfish()
setKey
public void setKey(java.lang.String skey)
- Overrides:
setKey in class Cipher
setKey
public void setKey(byte[] key)
- Specified by:
setKey in class Cipher
encrypt
public void encrypt(byte[] src,
int srcOff,
byte[] dest,
int destOff,
int len)
- Specified by:
encrypt in class Cipher
encrypt
public void encrypt(int xL,
int xR,
int[] out)
decrypt
public void decrypt(byte[] src,
int srcOff,
byte[] dest,
int destOff,
int len)
- Specified by:
decrypt in class Cipher
decrypt
public int[] decrypt(int xL,
int xR,
int[] out)