anon.client.crypto
Class DefaultMixCipher

java.lang.Object
  extended by anon.client.crypto.DefaultMixCipher
All Implemented Interfaces:
IMixCipher

public class DefaultMixCipher
extends java.lang.Object
implements IMixCipher

Author:
Stefan Lieske

Field Summary
private  boolean m_firstEncryptionPacket
           
private  MixParameters m_mixParameters
           
private  SymCipher m_symCipher
           
 
Constructor Summary
DefaultMixCipher(MixParameters a_mixParameters, SymCipher a_symCipher)
           
 
Method Summary
 void decrypt(byte[] a_packet)
           
 byte[] encrypt(byte[] a_packet, int a_virtualPacketLength, java.util.Vector a_sendCallbackHandlers)
           
 int getNextPacketEncryptionOverhead()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_firstEncryptionPacket

private boolean m_firstEncryptionPacket

m_mixParameters

private MixParameters m_mixParameters

m_symCipher

private SymCipher m_symCipher
Constructor Detail

DefaultMixCipher

public DefaultMixCipher(MixParameters a_mixParameters,
                        SymCipher a_symCipher)
Method Detail

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