twcore.core
Class SSEncryption

java.lang.Object
  |
  +--twcore.core.SSEncryption

public class SSEncryption
extends java.lang.Object


Constructor Summary
SSEncryption()
           
SSEncryption(twcore.core.ByteArray clientKey, twcore.core.ByteArray serverKey)
           
SSEncryption(long clientKey, long serverKey)
           
 
Method Summary
 void decrypt(twcore.core.ByteArray data, int length)
           
 void decrypt(twcore.core.ByteArray data, int length, int index)
           
 void encrypt(twcore.core.ByteArray data, int length)
           
 void encrypt(twcore.core.ByteArray data, int length, int index)
           
 void setClientKey(twcore.core.ByteArray newClientKey)
           
 void setClientKey(long newClientKey)
           
 void setServerKey(twcore.core.ByteArray newServerKey)
           
 void setServerKey(long newServerKey)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SSEncryption

public SSEncryption()

SSEncryption

public SSEncryption(long clientKey,
                    long serverKey)

SSEncryption

public SSEncryption(twcore.core.ByteArray clientKey,
                    twcore.core.ByteArray serverKey)
Method Detail

setClientKey

public void setClientKey(long newClientKey)

setClientKey

public void setClientKey(twcore.core.ByteArray newClientKey)

setServerKey

public void setServerKey(long newServerKey)

setServerKey

public void setServerKey(twcore.core.ByteArray newServerKey)

encrypt

public void encrypt(twcore.core.ByteArray data,
                    int length)

encrypt

public void encrypt(twcore.core.ByteArray data,
                    int length,
                    int index)

decrypt

public void decrypt(twcore.core.ByteArray data,
                    int length)

decrypt

public void decrypt(twcore.core.ByteArray data,
                    int length,
                    int index)