Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

mindbright.security
Class Blowfish  view Blowfish download Blowfish.java

java.lang.Object
  extended bymindbright.security.Cipher
      extended bymindbright.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
           
 
Constructor Summary
Blowfish()
           
 
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 mindbright.security.Cipher
decrypt, encrypt, getInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Blowfish

public Blowfish()
Method Detail

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)