aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/util/Makefile.am1
-rw-r--r--src/util/test_crypto_hkdf.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/src/util/Makefile.am b/src/util/Makefile.am
index d6628daac..4b28cabf1 100644
--- a/src/util/Makefile.am
+++ b/src/util/Makefile.am
@@ -113,6 +113,7 @@ check_PROGRAMS = \
113 test_crypto_aes_weak \ 113 test_crypto_aes_weak \
114 test_crypto_crc \ 114 test_crypto_crc \
115 test_crypto_hash \ 115 test_crypto_hash \
116 test_crypto_hkdf \
116 test_crypto_ksk \ 117 test_crypto_ksk \
117 test_crypto_random \ 118 test_crypto_random \
118 test_crypto_rsa \ 119 test_crypto_rsa \
diff --git a/src/util/test_crypto_hkdf.c b/src/util/test_crypto_hkdf.c
index b8336236d..ec215fd34 100644
--- a/src/util/test_crypto_hkdf.c
+++ b/src/util/test_crypto_hkdf.c
@@ -183,12 +183,12 @@ tc6 ()
183{ 183{
184 unsigned char ikm[22] = { 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 184 unsigned char ikm[22] = { 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b,
185 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b }; 185 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b };
186 unsigned char okm[82] = { 0x0a, 0xc1, 0xaf, 0x70, 0x02, 0xb3, 0xd7, 0x61, 0xd1, 0xe5, 186 unsigned char okm[42] = { 0x0a, 0xc1, 0xaf, 0x70, 0x02, 0xb3, 0xd7, 0x61, 0xd1, 0xe5,
187 0x52, 0x98, 0xda, 0x9d, 0x05, 0x06, 0xb9, 0xae, 0x52, 0x05, 0x72, 0x20, 187 0x52, 0x98, 0xda, 0x9d, 0x05, 0x06, 0xb9, 0xae, 0x52, 0x05, 0x72, 0x20,
188 0xa3, 0x06, 0xe0, 0x7b, 0x6b, 0x87, 0xe8, 0xdf, 0x21, 0xd0, 0xea, 0x00, 188 0xa3, 0x06, 0xe0, 0x7b, 0x6b, 0x87, 0xe8, 0xdf, 0x21, 0xd0, 0xea, 0x00,
189 0x03, 0x3d, 0xe0, 0x39, 0x84, 0xd3, 0x49, 0x18 }; 189 0x03, 0x3d, 0xe0, 0x39, 0x84, 0xd3, 0x49, 0x18 };
190 char result[84]; 190 char result[44];
191 int l = 82; 191 int l = 42;
192 192
193 memset (result, 0, sizeof(result)); 193 memset (result, 0, sizeof(result));
194 GNUNET_assert (GNUNET_CRYPTO_hkdf(GCRY_MD_SHA1, GCRY_MD_SHA1, NULL, 0, ikm, sizeof(ikm), NULL, 0, 194 GNUNET_assert (GNUNET_CRYPTO_hkdf(GCRY_MD_SHA1, GCRY_MD_SHA1, NULL, 0, ikm, sizeof(ikm), NULL, 0,