net.rfb
Class DesCipher

java.lang.Object
  extended by net.rfb.DesCipher

public class DesCipher
extends java.lang.Object


Constructor Summary
DesCipher(byte[] key)
           
 
Method Summary
 void decrypt(byte[] cipherText, int cipherOff, byte[] clearText, int clearOff)
           
 void encrypt(byte[] clearText, int clearOff, byte[] cipherText, int cipherOff)
           
 void setKey(byte[] key)
           
static void spreadIntsToBytes(int[] inInts, int inOff, byte[] outBytes, int outOff, int intLen)
           
static void squashBytesToInts(byte[] inBytes, int inOff, int[] outInts, int outOff, int intLen)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DesCipher

public DesCipher(byte[] key)
Method Detail

setKey

public void setKey(byte[] key)

encrypt

public void encrypt(byte[] clearText,
                    int clearOff,
                    byte[] cipherText,
                    int cipherOff)

decrypt

public void decrypt(byte[] cipherText,
                    int cipherOff,
                    byte[] clearText,
                    int clearOff)

squashBytesToInts

public static void squashBytesToInts(byte[] inBytes,
                                     int inOff,
                                     int[] outInts,
                                     int outOff,
                                     int intLen)

spreadIntsToBytes

public static void spreadIntsToBytes(int[] inInts,
                                     int inOff,
                                     byte[] outBytes,
                                     int outOff,
                                     int intLen)