- dont resend useless channel_destroy messages
[oweals/gnunet.git] / src / util / test_crypto_symmetric.c
index b350e9efecfe31eb19841cadae6cccd56ac62969..42bf10ffd780ba42b11ca4d461bd97eca5a99d35 100644 (file)
@@ -24,8 +24,7 @@
  * @brief test for AES ciphers
  */
 #include "platform.h"
-#include "gnunet_common.h"
-#include "gnunet_crypto_lib.h"
+#include "gnunet_util_lib.h"
 
 #define TESTSTRING "Hello World!"
 #define INITVALUE "InitializationVectorValueinitializationvectorvalue"
@@ -96,9 +95,9 @@ verifyCrypto ()
   };
   unsigned char encrresult[] =
   {
-    161, 152, 186, 231, 214, 55, 225, 206, 85, 43, 80, 134, 145, 198, 20, 
-    233, 236, 57, 194, 10, 147, 149, 30, 106, 179, 54, 182, 247, 71, 204, 
-    179, 51, 1
+    155, 88, 106, 174, 124, 172, 47, 149, 85, 15, 208, 176, 65, 124, 155,
+    74, 215, 25, 177, 231, 162, 109, 165, 4, 133, 165, 93, 44, 213, 77,
+    206, 204, 1
   };
 
   res = NULL;
@@ -108,9 +107,10 @@ verifyCrypto ()
   memcpy (key.twofish_key, raw_key_twofish, GNUNET_CRYPTO_AES_KEY_LENGTH);
   if (GNUNET_CRYPTO_AES_KEY_LENGTH !=
       GNUNET_CRYPTO_symmetric_encrypt (plain, GNUNET_CRYPTO_AES_KEY_LENGTH, &key,
-                                 (const struct
-                                  GNUNET_CRYPTO_SymmetricInitializationVector *)
-                                 "testtesttesttest", result))
+                                       (const struct
+                                        GNUNET_CRYPTO_SymmetricInitializationVector *)
+                                       "testtesttesttesttesttesttesttest",
+                                       result))
   {
     printf ("Wrong return value from encrypt block.\n");
     ret = 1;
@@ -132,7 +132,7 @@ verifyCrypto ()
       GNUNET_CRYPTO_symmetric_decrypt (result, GNUNET_CRYPTO_AES_KEY_LENGTH, &key,
                                  (const struct
                                   GNUNET_CRYPTO_SymmetricInitializationVector *)
-                                 "testtesttesttest", res))
+                                 "testtesttesttesttesttesttesttest", res))
   {
     printf ("Wrong return value from decrypt block.\n");
     ret = 1;