Author: toad
Date: 2007-03-20 00:48:54 +0000 (Tue, 20 Mar 2007)
New Revision: 12232
Modified:
trunk/freenet/src/freenet/crypt/SHA256.java
Log:
Debug logging to eventually track down the hash mismatch bug
Modified: trunk/freenet/src/freenet/crypt/SHA256.java
===================================================================
--- trunk/freenet/src/freenet/crypt/SHA256.java 2007-03-20 00:48:20 UTC (rev
12231)
+++ trunk/freenet/src/freenet/crypt/SHA256.java 2007-03-20 00:48:54 UTC (rev
12232)
@@ -353,6 +353,8 @@
if(!(algo.equals("SHA-256") || algo.equals("SHA256")))
throw new IllegalArgumentException("Should be SHA-256
but is "+algo);
md256.reset();
+ if(Logger.shouldLog(Logger.DEBUG, SHA256.class))
+ Logger.debug(SHA256.class, "Returning message digest
"+md256, new Exception());
digests.add(md256);
}