[freenet-cvs] r15440 - trunk/freenet/src/freenet/node
nextgens at freenetproject.org
nextgens at freenetproject.org
Tue Oct 9 04:40:19 UTC 2007
Author: nextgens
Date: 2007-10-09 04:40:19 +0000 (Tue, 09 Oct 2007)
New Revision: 15440
Modified:
trunk/freenet/src/freenet/node/FNPPacketMangler.java
trunk/freenet/src/freenet/node/NodeCrypto.java
Log:
JFK: pick up the DSA group from the node insteed of the hardcoded value
Modified: trunk/freenet/src/freenet/node/FNPPacketMangler.java
===================================================================
--- trunk/freenet/src/freenet/node/FNPPacketMangler.java 2007-10-09 04:29:02 UTC (rev 15439)
+++ trunk/freenet/src/freenet/node/FNPPacketMangler.java 2007-10-09 04:40:19 UTC (rev 15440)
@@ -2440,7 +2440,7 @@
if((currentDHContext == null) || (currentDHContextLifetime + 1800000 /*30mins*/) < now) {
currentDHContextLifetime = now;
currentDHContext = DiffieHellman.generateLightContext();
- currentDHContext.setSignature(signDHParams(currentDHContext.myExponential, Global.DSAgroupBigA));
+ currentDHContext.setSignature(signDHParams(currentDHContext.myExponential, crypto.getCryptoGroup()));
}
}
return currentDHContext;
Modified: trunk/freenet/src/freenet/node/NodeCrypto.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeCrypto.java 2007-10-09 04:29:02 UTC (rev 15439)
+++ trunk/freenet/src/freenet/node/NodeCrypto.java 2007-10-09 04:40:19 UTC (rev 15440)
@@ -416,4 +416,7 @@
return true;
}
+ DSAGroup getCryptoGroup() {
+ return cryptoGroup;
+ }
}
More information about the cvs
mailing list