Author: kryptos
Date: 2007-07-04 14:20:25 +0000 (Wed, 04 Jul 2007)
New Revision: 13915
Added:
branches/freenet-jfk/devnotes/jfkNotes.txt
Modified:
branches/freenet-jfk/src/freenet/node/FNPPacketMangler.java
Log:
JFK description as will be implemented
Added: branches/freenet-jfk/devnotes/jfkNotes.txt
===================================================================
--- branches/freenet-jfk/devnotes/jfkNotes.txt (rev 0)
+++ branches/freenet-jfk/devnotes/jfkNotes.txt 2007-07-04 14:20:25 UTC (rev
13915)
@@ -0,0 +1,20 @@
+Initiator-Responder:
+This is a straightforward DiffieHellman exponential.
+The Initiator Nonce serves two purposes;it allows the initiator to use the same
+exponentials during different sessions while ensuring that the resulting
session key will be different,can be used to differentiate
between parallel sessions
+
+Responder-Initiator:
+Responder replies with a signed copy of his own exponential, a random nonce
and an authenticator calculated from a transient hash key private to the
responder.
+We slightly deviate JFK here;we do not send any public key information
+as specified in the JFK docs
+
+Initiator-Responder:
+Initiator echoes the data sent by the responder including the authenticator.
This helps
+the responder verify the authenticity of the returned data. Rejection messages
do not
+concern us because grpinfo which is sent in Message2 indicates which groups
and algorithms
+are acceptable avoiding the need for explicit message rejection.
+
+Responder-Initiator:
+Encrypted message of the signature
+on both nonces, both exponentials using the same keys as in the previous
message
+
Modified: branches/freenet-jfk/src/freenet/node/FNPPacketMangler.java
===================================================================
--- branches/freenet-jfk/src/freenet/node/FNPPacketMangler.java 2007-07-04
11:56:22 UTC (rev 13914)
+++ branches/freenet-jfk/src/freenet/node/FNPPacketMangler.java 2007-07-04
14:20:25 UTC (rev 13915)
@@ -324,12 +324,17 @@
* Initiator- This is a straightforward DiffieHellman
exponential. The Init * iator Nonce serves two
purposes;it allows the initiator to use the same *
exponentials during different sessions while ensuring that the resulting
* session key will be different,can be used to differentiate
between
* parallel sessions
*/
+ DiffieHellmanContext ctx =
+ processDHZeroOrOne(0, payload, pn);
+ if(ctx == null) return;
+
+
}
else if(packetType==1){
/*
* Responder replies with a signed copy of his own
exponential, a random
* nonce and an authenticator calculated from a transient
hash key private
- * to the responder
+ * to the responder. We slightly deviate JFK here;we do
not send any public * key information as specified in the
JFK docs
*/
}
else if(packetType==2){