Author: nextgens
Date: 2007-09-10 08:48:28 +0000 (Mon, 10 Sep 2007)
New Revision: 15113
Modified:
branches/freenet-jfk/src/freenet/node/FNPPacketMangler.java
branches/freenet-jfk/src/freenet/node/NodeCrypto.java
Log:
That method NodeCrypto.sign(...,privkey, ...) shouldn't be there. Add a debug
message
Modified: branches/freenet-jfk/src/freenet/node/FNPPacketMangler.java
===================================================================
--- branches/freenet-jfk/src/freenet/node/FNPPacketMangler.java 2007-09-10
08:22:01 UTC (rev 15112)
+++ branches/freenet-jfk/src/freenet/node/FNPPacketMangler.java 2007-09-10
08:48:28 UTC (rev 15113)
@@ -521,7 +521,7 @@
// get g^i
byte[] hisExponential = new
byte[DiffieHellman.modulusLengthInBytes()];
System.arraycopy(payload, NONCE_SIZE, hisExponential, 0,
DiffieHellman.modulusLengthInBytes());
-
+
NativeBigInteger _hisExponential = new NativeBigInteger(1,
hisExponential);
if(_hisExponential.compareTo(NativeBigInteger.ONE) > 0)
sendMessage2(nonceInitiator, hisExponential, pn,
replyTo);
@@ -2266,6 +2266,7 @@
//TODO: when shall that be called ? what about DH exponentials ?
private void resetTransientKey() {
+ Logger.normal(this, "JFK's TransientKey has been changed and
the message cache flushed.");
synchronized (authenticatorCache) {
node.random.nextBytes(transientKey);
Modified: branches/freenet-jfk/src/freenet/node/NodeCrypto.java
===================================================================
--- branches/freenet-jfk/src/freenet/node/NodeCrypto.java 2007-09-10
08:22:01 UTC (rev 15112)
+++ branches/freenet-jfk/src/freenet/node/NodeCrypto.java 2007-09-10
08:48:28 UTC (rev 15113)
@@ -386,10 +386,7 @@
DSASignature sign(byte[] hash) {
return DSA.sign(cryptoGroup, privKey, new NativeBigInteger(1,
hash), random);
}
- // Sign a hash with a specified PrivateKey
- DSASignature sign(byte[] hash,DSAGroup g,DSAPrivateKey pk,RandomSource
r) {
- return DSA.sign(g, pk, new NativeBigInteger(1, hash), r);
- }
+
public void onSetDropProbability(int val) {
synchronized(this) {
if(socket == null) return;