gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r3423 - branches/GNUnet-0.7.0/src/util


From: grothoff
Subject: [GNUnet-SVN] r3423 - branches/GNUnet-0.7.0/src/util
Date: Sat, 30 Sep 2006 18:40:36 -0700 (PDT)

Author: grothoff
Date: 2006-09-30 18:40:33 -0700 (Sat, 30 Sep 2006)
New Revision: 3423

Modified:
   branches/GNUnet-0.7.0/src/util/symciphertest.c
Log:
fixing 1139

Modified: branches/GNUnet-0.7.0/src/util/symciphertest.c
===================================================================
--- branches/GNUnet-0.7.0/src/util/symciphertest.c      2006-10-01 01:34:20 UTC 
(rev 3422)
+++ branches/GNUnet-0.7.0/src/util/symciphertest.c      2006-10-01 01:40:33 UTC 
(rev 3423)
@@ -64,8 +64,7 @@
   memcpy(key.key, raw_key, SESSIONKEY_LEN);
   key.crc32 = htonl(crc32N(&key, SESSIONKEY_LEN));
 
-  if (key.crc32 != 2344502530)
-  {
+  if (ntohl(key.crc32) != 2344502530) {
     printf("Static key has different CRC\n");
 
     ret = 1;
@@ -78,8 +77,7 @@
                   (const INITVECTOR*) "test",
                   result);
 
-  if (memcmp(encrresult, result, SESSIONKEY_LEN) != 0)
-  {
+  if (memcmp(encrresult, result, SESSIONKEY_LEN) != 0) {
     printf("Encrypted result wrong.\n");
 
     ret = 1;





reply via email to

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