anon.mixminion.message
Class FragmentedMessage

java.lang.Object
  extended by anon.mixminion.message.MessageImplementation
      extended by anon.mixminion.message.FragmentedMessage

public class FragmentedMessage
extends MessageImplementation

Author:
Stefan Roenisch *

Field Summary
(package private) static int FRAGMENT_HEADER_LEN
           
(package private) static int KEY_LEN
           
(package private)  byte[] m_payload
           
(package private)  java.lang.String[] m_recipient
           
(package private) static int OVERHEAD
           
 
Constructor Summary
FragmentedMessage(java.lang.String[] recipient, byte[] payload)
           
 
Method Summary
 byte[][] buildPayload()
           
(package private)  byte[][] divideIntoFragments(byte[] payload)
          Diese Methode fragmentiert eine Nachricht (nach der E2E.txt)
(package private)  byte[] FRAGMENT(byte[] M, int K, int N, int I, int PS)
          soll den von der Nachricht m das i'te von N Paketen zurueckgeben
private  byte[] whiten(byte[] m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_LEN

static final int KEY_LEN
See Also:
Constant Field Values

OVERHEAD

static final int OVERHEAD
See Also:
Constant Field Values

FRAGMENT_HEADER_LEN

static final int FRAGMENT_HEADER_LEN
See Also:
Constant Field Values

m_recipient

java.lang.String[] m_recipient

m_payload

byte[] m_payload
Constructor Detail

FragmentedMessage

public FragmentedMessage(java.lang.String[] recipient,
                         byte[] payload)
Method Detail

buildPayload

public byte[][] buildPayload()
Overrides:
buildPayload in class MessageImplementation

divideIntoFragments

byte[][] divideIntoFragments(byte[] payload)
Diese Methode fragmentiert eine Nachricht (nach der E2E.txt)

Parameters:
payload, - the message to send
Returns:
the fragments of the Message

FRAGMENT

byte[] FRAGMENT(byte[] M,
                int K,
                int N,
                int I,
                int PS)
soll den von der Nachricht m das i'te von N Paketen zurueckgeben


whiten

private byte[] whiten(byte[] m)