diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-30 11:22:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-30 11:22:48 +0000 |
commit | 05ef63d9f8cf65561b7ed2234efdc80e3fb40bd0 (patch) | |
tree | 7c00b58220e87d7f2f050b46e0e2f59c3795e703 /src/util/test_crypto_hash.c | |
parent | 814457c05d62c8f0c167c6bc2015201151355249 (diff) | |
download | gnunet-05ef63d9f8cf65561b7ed2234efdc80e3fb40bd0.tar.gz gnunet-05ef63d9f8cf65561b7ed2234efdc80e3fb40bd0.zip |
-encrypt using both AES and TWOFISH, with independent symmetric keys
Diffstat (limited to 'src/util/test_crypto_hash.c')
-rw-r--r-- | src/util/test_crypto_hash.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/util/test_crypto_hash.c b/src/util/test_crypto_hash.c index a8ef39a38..2a5d6d773 100644 --- a/src/util/test_crypto_hash.c +++ b/src/util/test_crypto_hash.c | |||
@@ -65,8 +65,6 @@ testEncoding () | |||
65 | static int | 65 | static int |
66 | testArithmetic () | 66 | testArithmetic () |
67 | { | 67 | { |
68 | static struct GNUNET_CRYPTO_AesSessionKey zskey; | ||
69 | static struct GNUNET_CRYPTO_AesInitializationVector ziv; | ||
70 | struct GNUNET_HashCode h1; | 68 | struct GNUNET_HashCode h1; |
71 | struct GNUNET_HashCode h2; | 69 | struct GNUNET_HashCode h2; |
72 | struct GNUNET_HashCode d; | 70 | struct GNUNET_HashCode d; |
@@ -100,9 +98,6 @@ testArithmetic () | |||
100 | return 1; | 98 | return 1; |
101 | memset (&d, 0, sizeof (d)); | 99 | memset (&d, 0, sizeof (d)); |
102 | GNUNET_CRYPTO_hash_to_aes_key (&d, &skey, &iv); | 100 | GNUNET_CRYPTO_hash_to_aes_key (&d, &skey, &iv); |
103 | if ((0 != memcmp (&skey, &zskey, sizeof (skey) - sizeof (unsigned int))) || | ||
104 | (0 != memcmp (&iv, &ziv, sizeof (iv)))) | ||
105 | return 1; | ||
106 | return 0; | 101 | return 0; |
107 | } | 102 | } |
108 | 103 | ||