Changeset e708149
- Timestamp:
- Jan 23, 2016 5:58:16 PM (5 years ago)
- Branches:
- master
- Children:
- 374996d
- Parents:
- 594abde
- Location:
- router/java
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
router/java/src/net/i2p/router/tunnel/HopProcessor.java
r594abde re708149 31 31 //static final boolean USE_DOUBLE_IV_ENCRYPTION = true; 32 32 static final int IV_LENGTH = 16; 33 34 /** 35 * @deprecated used only by unit tests 36 */ 37 HopProcessor(I2PAppContext ctx, HopConfig config) { 38 this(ctx, config, createValidator()); 39 } 33 40 34 35 41 public HopProcessor(I2PAppContext ctx, HopConfig config, IVValidator validator) { 36 42 _context = ctx; … … 38 44 _config = config; 39 45 _validator = validator; 46 } 47 48 /** 49 * @deprecated used only by unit test constructor 50 */ 51 private static IVValidator createValidator() { 52 // yeah, we'll use an O(1) validator later (e.g. bloom filter) 53 return new HashSetIVValidator(); 40 54 } 41 55 -
router/java/src/net/i2p/router/tunnel/InboundEndpointProcessor.java
r594abde re708149 22 22 //static final boolean USE_ENCRYPTION = HopProcessor.USE_ENCRYPTION; 23 23 24 /** @deprecated unused */ 25 public InboundEndpointProcessor(RouterContext ctx, TunnelCreatorConfig cfg) { 24 /** 25 * @deprecated used only by unit tests 26 */ 27 InboundEndpointProcessor(RouterContext ctx, TunnelCreatorConfig cfg) { 26 28 this(ctx, cfg, DummyValidator.getInstance()); 27 29 } -
router/java/test/junit/net/i2p/router/tunnel/BuildMessageTestStandalone.java
r594abde re708149 76 76 // this not only decrypts the current hop's record, but encrypts the other records 77 77 // with the reply key 78 BuildRequestRecord req = proc.decrypt( ctx,msg, _peers[i], _privKeys[i]);78 BuildRequestRecord req = proc.decrypt(msg, _peers[i], _privKeys[i]); 79 79 // If false, no records matched the _peers[i], or the decryption failed 80 80 assertTrue("foo @ " + i, req != null);
Note: See TracChangeset
for help on using the changeset viewer.