net.i2p.router.tunnel

## Class InboundGatewayProcessor

- java.lang.Object
- - net.i2p.router.tunnel.HopProcessor
  - - net.i2p.router.tunnel.InboundGatewayProcessor

-     class InboundGatewayProcessor
      extends HopProcessor

  Override the hop processor to seed the message with a random IV.

- - ### Field Summary

    - ### Fields inherited from class net.i2p.router.tunnel.HopProcessor

      `_config, _context, IV_LENGTH`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `InboundGatewayProcessor(I2PAppContext ctx, HopConfig config)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `process(byte[] orig, int offset, int length)` Since we are the inbound gateway, use the IV given to us as the first 16 bytes, ignore the 'prev' hop, and encrypt the message like every other participant.

    - ### Methods inherited from class net.i2p.router.tunnel.HopProcessor

      `process, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### InboundGatewayProcessor

          public InboundGatewayProcessor(I2PAppContext ctx,
                                         HopConfig config)

  - ### Method Detail

    - #### process

          public void process(byte[] orig,
                              int offset,
                              int length)

      Since we are the inbound gateway, use the IV given to us as the first 16 bytes, ignore the 'prev' hop, and encrypt the message like every other participant.