Transports: Disable eph. key reuse

This commit is contained in:
zzz
2019-08-17 17:39:25 +00:00
parent a667c36d2d
commit 789f482373
2 changed files with 4 additions and 0 deletions

View File

@ -582,12 +582,14 @@ public class DHSessionKeyBuilder {
* @since 0.9.16
*/
public void returnUnused(DHSessionKeyBuilder builder) {
/*
if (builder.getPeerPublicValue() != null) {
_log.error("builder returned used", new Exception());
return;
}
_context.statManager().addRateData("crypto.DHReused", 1);
_builders.offer(builder);
*/
}
/** @return true if successful, false if full */

View File

@ -151,8 +151,10 @@ public class X25519KeyFactory extends I2PThread {
* to be put back onto the queue for reuse.
*/
public void returnUnused(KeyPair kp) {
/*
_context.statManager().addRateData("crypto.XDHReused", 1);
_keys.offer(kp);
*/
}
/** @return true if successful, false if full */