InboundGatewayProcessor
class HopProcessor
extends java.lang.Object
修飾子とタイプ | フィールド | 説明 |
---|---|---|
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.
|
コンストラクタ | 説明 |
---|---|
HopProcessor(I2PAppContext ctx,
HopConfig config) |
推奨されていません。
used only by unit tests
|
HopProcessor(I2PAppContext ctx,
HopConfig config,
IVValidator validator) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
boolean |
process(byte[] orig,
int offset,
int length,
Hash prev) |
Process the data for the current hop, overwriting the original data with
what should be sent to the next peer.
|
java.lang.String |
toString() |
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 gatewaypublic java.lang.String toString()
toString
クラス内 java.lang.Object