Author: nextgens
Date: 2007-09-27 18:14:57 +0000 (Thu, 27 Sep 2007)
New Revision: 15364

Modified:
   branches/freenet-jfk/src/freenet/crypt/DiffieHellmanLightContext.java
Log:
[18:11] <    nextgens> | kryptos23> I dunno if it should be [p] or [q] in 
                            DHLightContext.getHMACKey()
[18:11] <    nextgens> | do you know ?
[18:14] <  kryptos23> | nextgens > the spec says mod[p] when computing the 
exponentials

Modified: branches/freenet-jfk/src/freenet/crypt/DiffieHellmanLightContext.java
===================================================================
--- branches/freenet-jfk/src/freenet/crypt/DiffieHellmanLightContext.java       
2007-09-27 18:05:57 UTC (rev 15363)
+++ branches/freenet-jfk/src/freenet/crypt/DiffieHellmanLightContext.java       
2007-09-27 18:14:57 UTC (rev 15364)
@@ -43,7 +43,7 @@
                if(logMINOR)
                        Logger.minor(this, "My exponent: 
"+myExponent.toHexString()+", my exponential: "+myExponential.toHexString()+", 
peer's exponential: "+peerExponential.toHexString());
                NativeBigInteger sharedSecret =
-                       (NativeBigInteger) peerExponential.modPow(myExponent, 
group.getQ());
+                       (NativeBigInteger) peerExponential.modPow(myExponent, 
group.getP());
                if(logMINOR)
                        Logger.minor(this, "g^ir mod p = " + 
sharedSecret.toString());



Reply via email to