class HopProcessor extends Object
Modifier and Type | Field and Description |
---|---|
protected HopConfig |
_config |
protected I2PAppContext |
_context |
(package private) static int |
IV_LENGTH
as of i2p 0.6, the tunnel crypto changed to encrypt the IV both before
and after using it at each hop so as to prevent a certain type of replay/confirmation
attack.
|
Constructor and Description |
---|
HopProcessor(I2PAppContext ctx,
HopConfig config)
Deprecated.
used only by unit tests
|
HopProcessor(I2PAppContext ctx,
HopConfig config,
IVValidator validator) |
protected final I2PAppContext _context
protected final HopConfig _config
static final int IV_LENGTH
@Deprecated HopProcessor(I2PAppContext ctx, HopConfig config)
public HopProcessor(I2PAppContext ctx, HopConfig config, IVValidator validator)
public boolean process(byte[] orig, int offset, int length, Hash prev)
orig
- IV+data of the messageoffset
- index into orig where the IV beginslength
- how long after the offset does the message go for?prev
- previous hop in the tunnel, or null if we are the gateway