anon.client.crypto
Class FirstMixCipher

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

public class FirstMixCipher
extends java.lang.Object
implements IMixCipher

Author:
Stefan Lieske

Nested Class Summary
private  class FirstMixCipher.MixEncryptionHandler
           
 
Field Summary
private  SymCipher m_channelSymCipher
           
private  boolean m_firstEncryptionPacket
           
private  SymCipher m_mixCipher
           
 
Constructor Summary
FirstMixCipher(SymCipher a_mixCipher, SymCipher a_channelSymCipher)
           
 
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_mixCipher

private SymCipher m_mixCipher

m_channelSymCipher

private SymCipher m_channelSymCipher
Constructor Detail

FirstMixCipher

public FirstMixCipher(SymCipher a_mixCipher,
                      SymCipher a_channelSymCipher)
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