net.i2p.router.tunnel
public class OutboundSender extends Object implements TunnelGateway.Sender
Modifier and Type | Field and Description |
---|---|
(package private) static boolean |
USE_ENCRYPTION |
Constructor and Description |
---|
OutboundSender(I2PAppContext ctx,
TunnelCreatorConfig config) |
Modifier and Type | Method and Description |
---|---|
long |
sendPreprocessed(byte[] preprocessed,
TunnelGateway.Receiver receiver)
Take the preprocessed data containing zero or more fragments, encrypt
it, and pass it on to the receiver
|
static final boolean USE_ENCRYPTION
public OutboundSender(I2PAppContext ctx, TunnelCreatorConfig config)
public long sendPreprocessed(byte[] preprocessed, TunnelGateway.Receiver receiver)
TunnelGateway.Sender
sendPreprocessed
in interface TunnelGateway.Sender
preprocessed
- IV + (rand padding) + 0x0 + Hash[0:3] + {instruction+fragment}*