|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsynergynetframework.appsystem.contentsystem.items.utils.vnc.DesCipher
public class DesCipher
The Class DesCipher.
Constructor Summary | |
---|---|
DesCipher(byte[] key)
Instantiates a new des cipher. |
Method Summary | |
---|---|
void |
decrypt(byte[] cipherText,
int cipherOff,
byte[] clearText,
int clearOff)
Decrypt. |
void |
encrypt(byte[] clearText,
int clearOff,
byte[] cipherText,
int cipherOff)
Encrypt. |
void |
setKey(byte[] key)
Sets the key. |
static void |
spreadIntsToBytes(int[] inInts,
int inOff,
byte[] outBytes,
int outOff,
int intLen)
Spread ints to bytes. |
static void |
squashBytesToInts(byte[] inBytes,
int inOff,
int[] outInts,
int outOff,
int intLen)
Squash bytes to ints. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DesCipher(byte[] key)
key
- the keyMethod Detail |
---|
public static void spreadIntsToBytes(int[] inInts, int inOff, byte[] outBytes, int outOff, int intLen)
inInts
- the in intsinOff
- the in offoutBytes
- the out bytesoutOff
- the out offintLen
- the int lenpublic static void squashBytesToInts(byte[] inBytes, int inOff, int[] outInts, int outOff, int intLen)
inBytes
- the in bytesinOff
- the in offoutInts
- the out intsoutOff
- the out offintLen
- the int lenpublic void decrypt(byte[] cipherText, int cipherOff, byte[] clearText, int clearOff)
cipherText
- the cipher textcipherOff
- the cipher offclearText
- the clear textclearOff
- the clear offpublic void encrypt(byte[] clearText, int clearOff, byte[] cipherText, int cipherOff)
clearText
- the clear textclearOff
- the clear offcipherText
- the cipher textcipherOff
- the cipher offpublic void setKey(byte[] key)
key
- the new key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |