Author: toad
Date: 2007-03-28 01:22:20 +0000 (Wed, 28 Mar 2007)
New Revision: 12404

Modified:
   trunk/freenet/src/freenet/node/FNPPacketMangler.java
Log:
doh

Modified: trunk/freenet/src/freenet/node/FNPPacketMangler.java
===================================================================
--- trunk/freenet/src/freenet/node/FNPPacketMangler.java        2007-03-28 
01:16:30 UTC (rev 12403)
+++ trunk/freenet/src/freenet/node/FNPPacketMangler.java        2007-03-28 
01:22:20 UTC (rev 12404)
@@ -609,14 +609,14 @@
         byte[] rBytes = new byte[rLen];
         System.arraycopy(payload, count, rBytes, 0, rLen);
         count += rLen;
-        NativeBigInteger r = new NativeBigInteger(rBytes);
+        NativeBigInteger r = new NativeBigInteger(1, rBytes);

         // S
         int sLen = payload[count++] & 0xFF;
         byte[] sBytes = new byte[sLen];
         System.arraycopy(payload, count, sBytes, 0, sLen);
         count += sLen;
-        NativeBigInteger s = new NativeBigInteger(sBytes);
+        NativeBigInteger s = new NativeBigInteger(1, sBytes);

         DSASignature sig = new DSASignature(r, s);



Reply via email to