anon.client.crypto
Class DefaultMixCipher
java.lang.Object
anon.client.crypto.DefaultMixCipher
- All Implemented Interfaces:
- IMixCipher
public class DefaultMixCipher
- extends java.lang.Object
- implements IMixCipher
- Author:
- Stefan Lieske
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_firstEncryptionPacket
private boolean m_firstEncryptionPacket
m_mixParameters
private MixParameters m_mixParameters
m_symCipher
private SymCipher m_symCipher
DefaultMixCipher
public DefaultMixCipher(MixParameters a_mixParameters,
SymCipher a_symCipher)
encrypt
public byte[] encrypt(byte[] a_packet,
int a_virtualPacketLength,
java.util.Vector a_sendCallbackHandlers)
- Specified by:
encrypt
in interface IMixCipher
decrypt
public void decrypt(byte[] a_packet)
- Specified by:
decrypt
in interface IMixCipher
getNextPacketEncryptionOverhead
public int getNextPacketEncryptionOverhead()
- Specified by:
getNextPacketEncryptionOverhead
in interface IMixCipher