net.vncviewer.rfb
Class DesCipher
java.lang.Object
net.vncviewer.rfb.DesCipher
public class DesCipher
- extends java.lang.Object
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 |
DesCipher
public DesCipher(byte[] key)
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)