class InboundEndpointProcessor extends Object
| Constructor and Description |
|---|
InboundEndpointProcessor(RouterContext ctx,
TunnelCreatorConfig cfg,
IVValidator validator) |
| Modifier and Type | Method and Description |
|---|---|
TunnelCreatorConfig |
getConfig() |
Hash |
getDestination() |
boolean |
retrievePreprocessedData(byte[] orig,
int offset,
int length,
Hash prev)
Undo all of the encryption done by the peers in the tunnel, recovering the
preprocessed data sent by the gateway.
|
public InboundEndpointProcessor(RouterContext ctx, TunnelCreatorConfig cfg, IVValidator validator)
public TunnelCreatorConfig getConfig()
public Hash getDestination()
public boolean retrievePreprocessedData(byte[] orig,
int offset,
int length,
Hash prev)
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).
Should always be 1024 bytes.