Author: nextgens
Date: 2007-09-27 18:22:13 +0000 (Thu, 27 Sep 2007)
New Revision: 15365
Modified:
branches/freenet-jfk/src/freenet/crypt/DiffieHellmanLightContext.java
Log:
logging
Modified: branches/freenet-jfk/src/freenet/crypt/DiffieHellmanLightContext.java
===================================================================
--- branches/freenet-jfk/src/freenet/crypt/DiffieHellmanLightContext.java
2007-09-27 18:14:57 UTC (rev 15364)
+++ branches/freenet-jfk/src/freenet/crypt/DiffieHellmanLightContext.java
2007-09-27 18:22:13 UTC (rev 15365)
@@ -40,12 +40,15 @@
* Calling the following is costy; avoid
*/
public NativeBigInteger getHMACKey(NativeBigInteger peerExponential,
DSAGroup group) {
- if(logMINOR)
- Logger.minor(this, "My exponent:
"+myExponent.toHexString()+", my exponential: "+myExponential.toHexString()+",
peer's exponential: "+peerExponential.toHexString());
+ if(logMINOR) {
+ Logger.minor(this, "My exponent:
"+myExponent.toHexString());
+ Logger.minor(this, "My exponential:
"+myExponential.toHexString());
+ Logger.minor(this, "Peer's exponential:
"+peerExponential.toHexString());
+ }
NativeBigInteger sharedSecret =
(NativeBigInteger) peerExponential.modPow(myExponent,
group.getP());
if(logMINOR)
- Logger.minor(this, "g^ir mod p = " +
sharedSecret.toString());
+ Logger.minor(this, "g^ir mod p = " +
sharedSecret.toHexString());
return sharedSecret;
}