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

Quick Search    Search Deep

mindbright.security
Class IDEA  view IDEA download IDEA.java

java.lang.Object
  extended bymindbright.security.Cipher
      extended bymindbright.security.IDEA

public final class IDEA
extends Cipher


Field Summary
protected  int IV0
           
protected  int IV1
           
protected  int[] key_schedule
           
 
Constructor Summary
IDEA()
           
 
Method Summary
 void decrypt(byte[] src, int srcOff, byte[] dest, int destOff, int len)
           
 void decrypt(int l, int r, int[] out)
           
 void encrypt(byte[] src, int srcOff, byte[] dest, int destOff, int len)
           
 void encrypt(int l, int r, int[] out)
           
static int mulop(int a, int b)
           
 void setKey(byte[] key)
           
 
Methods inherited from class mindbright.security.Cipher
decrypt, encrypt, getInstance, setKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

key_schedule

protected int[] key_schedule

IV0

protected int IV0

IV1

protected int IV1
Constructor Detail

IDEA

public IDEA()
Method Detail

encrypt

public void encrypt(byte[] src,
                    int srcOff,
                    byte[] dest,
                    int destOff,
                    int len)
Specified by:
encrypt in class Cipher

decrypt

public void decrypt(byte[] src,
                    int srcOff,
                    byte[] dest,
                    int destOff,
                    int len)
Specified by:
decrypt in class Cipher

setKey

public void setKey(byte[] key)
Specified by:
setKey in class Cipher

encrypt

public final void encrypt(int l,
                          int r,
                          int[] out)

decrypt

public final void decrypt(int l,
                          int r,
                          int[] out)

mulop

public static final int mulop(int a,
                              int b)