|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object anon.mixminion.message.Decoder
public class Decoder
Field Summary | |
---|---|
private int |
KEY_LEN
|
private java.lang.String |
m_message
|
private java.lang.String |
m_password
|
private int |
MAXHOPS
|
private int |
PACKETSIZE
|
Constructor Summary | |
---|---|
Decoder(java.lang.String message,
java.lang.String password)
Constructor |
Method Summary | |
---|---|
private int |
byteToInt(byte[] b,
int offset)
Calculates the int value of a given ByteArray |
java.lang.String |
decode()
Method to decode a given payload as String |
private int |
testPayload(byte[] payload)
Tests a given payload for being a plaintext one |
private java.lang.String |
trytoReassemble(byte[] fragment)
try's to reassemble the message the fragment belongs to and returns either null or the reassembled message |
private byte[] |
unwhiten(byte[] m)
Unwhites a ByteArray in the fashion of mixminion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final int KEY_LEN
private final int MAXHOPS
private final int PACKETSIZE
private java.lang.String m_message
private java.lang.String m_password
Constructor Detail |
---|
public Decoder(java.lang.String message, java.lang.String password)
message
- Method Detail |
---|
public java.lang.String decode() throws java.io.IOException
java.io.IOException
private int testPayload(byte[] payload)
payload
-
private java.lang.String trytoReassemble(byte[] fragment)
fragment
-
private int byteToInt(byte[] b, int offset)
b
- offset
-
private byte[] unwhiten(byte[] m)
m
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |