class OutboundGatewayProcessor
extends java.lang.Object
コンストラクタ | 説明 |
---|---|
OutboundGatewayProcessor(I2PAppContext ctx,
TunnelCreatorConfig cfg) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
(package private) static void |
decrypt(I2PAppContext ctx,
byte[] iv,
byte[] orig,
int offset,
int length,
byte[] cur,
HopConfig config) |
Undo the crypto for a single hop.
|
void |
process(byte[] orig,
int offset,
int length) |
Since we are the outbound gateway, pick a random IV and wrap the preprocessed
data so that it will be exposed at the endpoint.
|
public OutboundGatewayProcessor(I2PAppContext ctx, TunnelCreatorConfig cfg)
public void process(byte[] orig, int offset, int length)
orig
- original data with an extra 16 byte IV prepended.offset
- index into the array where the extra 16 bytes (IV) beginslength
- how much of orig can we write to (must be a multiple of 16).static void decrypt(I2PAppContext ctx, byte[] iv, byte[] orig, int offset, int length, byte[] cur, HopConfig config)