Author: toad
Date: 2007-03-28 01:30:25 +0000 (Wed, 28 Mar 2007)
New Revision: 12405
Modified:
trunk/freenet/src/freenet/node/FNPPacketMangler.java
Log:
logging
Modified: trunk/freenet/src/freenet/node/FNPPacketMangler.java
===================================================================
--- trunk/freenet/src/freenet/node/FNPPacketMangler.java 2007-03-28
01:22:20 UTC (rev 12404)
+++ trunk/freenet/src/freenet/node/FNPPacketMangler.java 2007-03-28
01:30:25 UTC (rev 12405)
@@ -388,6 +388,8 @@
byte[] r = sig.getRBytes(Node.SIGNATURE_PARAMETER_LENGTH);
byte[] s = sig.getSBytes(Node.SIGNATURE_PARAMETER_LENGTH);
+ Logger.minor(this, "Sending DH completion: "+pn+" hash
"+HexUtil.bytesToHex(hash)+" r="+((NativeBigInteger)sig.getR()).toHexString()+"
s="+((NativeBigInteger)sig.getS()).toHexString());
+
int outputLength = iv.length + data.length + r.length + s.length + 2;
byte[] output = new byte[outputLength];
@@ -631,7 +633,7 @@
md.update(data);
byte[] hash = md.digest();
if(!node.verify(hash, sig)) {
- Logger.error(this, "Signature verification failed");
+ Logger.error(this, "Signature verification failed for "+pn+"
hash "+HexUtil.bytesToHex(hash)+" r="+r.toHexString()+" s="+s.toHexString());
return null;
}