Changeset 04e6beb


Ignore:
Timestamp:
Jul 30, 2013 10:05:46 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
5941a52
Parents:
1284c7a
Message:

javadoc, log, comment, and su3file help tweaks

Files:
7 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/crypto/SU3File.java

    r1284c7a r04e6beb  
    359359
    360360    private static final void showUsageCLI() {
    361         System.err.println("Usage: SU3File showversion   signedFile");
    362         System.err.println("       SU3File sign          inputFile signedFile privateKeyFile version signerName");
    363         System.err.println("       SU3File verifysig     signedFile");
     361        System.err.println("Usage: SU3File showversion   signedFile.su3");
     362        System.err.println("       SU3File sign          inputFile.zip signedFile.su3 privateKeyFile version signerName@mail.i2p");
     363        System.err.println("       SU3File verifysig     signedFile.su3");
    364364    }
    365365
  • core/java/src/net/i2p/data/Destination.java

    r1284c7a r04e6beb  
    1313 * Defines an end point in the I2P network.  The Destination may move around
    1414 * in the network, but messages sent to the Destination will find it
     15 *
     16 * Note that the public (encryption) key is essentially unused, since
     17 * "end-to-end" encryption was removed in 0.6. The public key in the
     18 * LeaseSet is used instead.
     19 *
     20 * The first bytes of the public key are used for the IV for leaseset encryption,
     21 * but that encryption is poorly designed and should be deprecated.
    1522 *
    1623 * @author jrandom
  • core/java/src/net/i2p/data/LeaseSet.java

    r1284c7a r04e6beb  
    3131 * Only the gateways and tunnel IDs in the individual
    3232 * leases are encrypted.
     33 *
     34 * WARNING:
     35 * Encryption is poorly designed and probably insecure.
     36 * Not recommended.
    3337 *
    3438 * Encrypted leases are not indicated as such.
  • core/java/src/net/i2p/util/RandomSource.java

    r1284c7a r04e6beb  
    177177            ok = true;
    178178        } catch (NoSuchAlgorithmException e) {}
    179         // why urandom?  because /dev/random blocks, and there are arguments
    180         // suggesting such blockages are largely meaningless
     179        // why urandom?  because /dev/random blocks
    181180        ok = seedFromFile(new File("/dev/urandom"), buf) || ok;
    182181        // we merge (XOR) in the data from /dev/urandom with our own seedfile
     
    187186   
    188187    /**
     188     *  XORs the seed into buf
     189     *
    189190     *  @param f absolute path
    190191     *  @return success
  • router/java/src/net/i2p/router/tunnel/OutboundTunnelEndpoint.java

    r1284c7a r04e6beb  
    3030        _outDistributor = new OutboundMessageDistributor(ctx, OutNetMessage.PRIORITY_PARTICIPATING);
    3131    }
     32
    3233    public void dispatch(TunnelDataMessage msg, Hash recvFrom) {
    3334        _config.incrementProcessedMessages();
     
    6768        }
    6869    }
     70
     71    /** @since 0.9.8 */
     72    @Override
     73    public String toString() {
     74        return "OBEP " + _config.getReceiveTunnel();
     75    }
    6976}
  • router/java/src/net/i2p/router/tunnel/ThrottledPumpedTunnelGateway.java

    r1284c7a r04e6beb  
    4545        add(new PendingGatewayMessage(msg, toRouter, toTunnel));
    4646    }
     47
     48    /** @since 0.9.8 */
     49    @Override
     50    public String toString() {
     51        return "IBGW " + _config.getReceiveTunnel();
     52    }
    4753}
  • router/java/src/net/i2p/router/tunnel/TunnelDispatcher.java

    r1284c7a r04e6beb  
    492492        if (removed) {
    493493            if (_log.shouldLog(Log.DEBUG))
    494                 _log.debug("removing " + cfg, new Exception());
     494                _log.debug("removing " + cfg /* , new Exception() */ );
    495495        } else {
    496496            // this is normal, this can get called twice
    497497            if (_log.shouldLog(Log.DEBUG))
    498                 _log.debug("Participating tunnel, but no longer listed in participatingConfig? " + cfg, new Exception());
     498                _log.debug("Participating tunnel, but no longer listed in participatingConfig? " + cfg /* , new Exception() */ );
    499499        }
    500500       
Note: See TracChangeset for help on using the changeset viewer.