public class FragmentedMessage extends MessageImplementation
Modifier and Type | Field and Description |
---|---|
(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 and Description |
---|
FragmentedMessage(java.lang.String[] recipient,
byte[] payload) |
Modifier and Type | Method and Description |
---|---|
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) |
static final int KEY_LEN
static final int OVERHEAD
static final int FRAGMENT_HEADER_LEN
java.lang.String[] m_recipient
byte[] m_payload
public FragmentedMessage(java.lang.String[] recipient, byte[] payload)
public byte[][] buildPayload()
buildPayload
in class MessageImplementation
byte[][] divideIntoFragments(byte[] payload)
payload,
- the message to sendbyte[] FRAGMENT(byte[] M, int K, int N, int I, int PS)
private byte[] whiten(byte[] m)
Copyright © 2023. All rights reserved.