aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_crypto_hash.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-08-29 20:00:36 +0000
committerChristian Grothoff <christian@grothoff.org>2009-08-29 20:00:36 +0000
commit70486ed8cb9e5d7c64842a4721c8d106c01dccd6 (patch)
tree32b1b2fa1af701c6fbd2cf0235bd404b73b01edc /src/util/test_crypto_hash.c
parent02e058ca700d62fb41d14cef5040cc613e74408a (diff)
downloadgnunet-70486ed8cb9e5d7c64842a4721c8d106c01dccd6.tar.gz
gnunet-70486ed8cb9e5d7c64842a4721c8d106c01dccd6.zip
fix check for close
Diffstat (limited to 'src/util/test_crypto_hash.c')
-rw-r--r--src/util/test_crypto_hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/test_crypto_hash.c b/src/util/test_crypto_hash.c
index a22a0e16a..e10aee9b1 100644
--- a/src/util/test_crypto_hash.c
+++ b/src/util/test_crypto_hash.c
@@ -98,7 +98,7 @@ testArithmetic ()
98 if (1 != GNUNET_CRYPTO_hash_get_bit (&d, 6)) 98 if (1 != GNUNET_CRYPTO_hash_get_bit (&d, 6))
99 return 1; 99 return 1;
100 memset (&d, 0, sizeof (d)); 100 memset (&d, 0, sizeof (d));
101 GNUNET_CRYPTO_hash_to_AES_key (&d, &skey, &iv); 101 GNUNET_CRYPTO_hash_to_aes_key (&d, &skey, &iv);
102 if ((0 != memcmp (&skey, &zskey, sizeof (skey) - sizeof (unsigned int))) || 102 if ((0 != memcmp (&skey, &zskey, sizeof (skey) - sizeof (unsigned int))) ||
103 (0 != memcmp (&iv, &ziv, sizeof (iv)))) 103 (0 != memcmp (&iv, &ziv, sizeof (iv))))
104 return 1; 104 return 1;