Class DHSessionKeyBuilder

java.lang.Object
net.i2p.router.transport.crypto.DHSessionKeyBuilder

public class DHSessionKeyBuilder
extends Object
Generate a new session key through a diffie hellman exchange. This uses the constants defined in CryptoConstants, which causes the exchange to create a 256 bit session key. This class precalcs a set of values on its own thread. Whenever the pool has less than the minimum, it fills it up again to the max. There is a delay after each precalculation so that the CPU isn't hosed during startup. These three parameters are controlled by java environmental variables and can be adjusted via: -Dcrypto.dh.precalc.min=40 -Dcrypto.dh.precalc.max=100 -Dcrypto.dh.precalc.delay=60000 (delay is milliseconds) To disable precalculation, set min to 0
Since:
0.9 moved from net.i2p.crypto
Author:
jrandom