net.i2p.router.tunnel
Class HashSetIVValidator

java.lang.Object
  extended by net.i2p.router.tunnel.HashSetIVValidator
All Implemented Interfaces:
IVValidator

Deprecated. unused

 class HashSetIVValidator
extends java.lang.Object
implements IVValidator

waste lots of RAM


Constructor Summary
HashSetIVValidator()
          Deprecated.  
 
Method Summary
 boolean receiveIV(byte[] ivData, int ivOffset, byte[] payload, int payloadOffset)
          Deprecated. receive the IV for the tunnel message, returning true if it is valid, or false if it has already been used (or is otherwise invalid).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HashSetIVValidator

public HashSetIVValidator()
Deprecated. 
Method Detail

receiveIV

public boolean receiveIV(byte[] ivData,
                         int ivOffset,
                         byte[] payload,
                         int payloadOffset)
Deprecated. 
Description copied from interface: IVValidator
receive the IV for the tunnel message, returning true if it is valid, or false if it has already been used (or is otherwise invalid). To prevent colluding attackers from successfully tagging the tunnel by switching the IV and the first block of the message, the validator should treat the XOR of the IV and the first block as the unique identifier, not the IV alone (since the tunnel is encrypted via AES/CBC). Thanks to dvorak for pointing out that tagging!

Specified by:
receiveIV in interface IVValidator