gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r328 - GNUnet/src/util


From: grothoff
Subject: [GNUnet-SVN] r328 - GNUnet/src/util
Date: Sat, 26 Feb 2005 21:31:06 -0800 (PST)

Author: grothoff
Date: 2005-02-26 21:31:05 -0800 (Sat, 26 Feb 2005)
New Revision: 328

Modified:
   GNUnet/src/util/hashing.c
Log:
fix

Modified: GNUnet/src/util/hashing.c
===================================================================
--- GNUnet/src/util/hashing.c   2005-02-27 00:58:00 UTC (rev 327)
+++ GNUnet/src/util/hashing.c   2005-02-27 05:31:05 UTC (rev 328)
@@ -391,12 +391,12 @@
   skey->crc32 = htonl(crc32N(skey, 
                             SESSIONKEY_LEN));
   memcpy(&iv->iv[0], 
-        &(((char *)hc)[sizeof(SESSIONKEY)]), 
-        sizeof(HashCode160) - sizeof(SESSIONKEY));
-  GNUNET_ASSERT(sizeof(HashCode160) - sizeof(SESSIONKEY) ==
-               sizeof(INITVECTOR) - (sizeof(HashCode160) - 
sizeof(SESSIONKEY)));
+        &(((char *)hc)[SESSIONKEY_LEN]), 
+        sizeof(HashCode160) - SESSIONKEY_LEN);
+  GNUNET_ASSERT(sizeof(HashCode160) - SESSIONKEY_LEN ==
+               sizeof(INITVECTOR) - (sizeof(HashCode160) - SESSIONKEY_LEN));
   memcpy(&iv->iv[sizeof(HashCode160) - sizeof(SESSIONKEY)],
-        &(((char *)hc)[sizeof(SESSIONKEY)]), 
+        &(((char *)hc)[SESSIONKEY_LEN]), 
         sizeof(HashCode160) - sizeof(SESSIONKEY));
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]