fix
authorNils Durner <durner@gnunet.org>
Sat, 3 Jul 2010 18:12:40 +0000 (18:12 +0000)
committerNils Durner <durner@gnunet.org>
Sat, 3 Jul 2010 18:12:40 +0000 (18:12 +0000)
src/util/Makefile.am
src/util/test_crypto_hkdf.c

index d6628daac07e18dcda419bfff921cc0cf4b4ed6a..4b28cabf1e1fc4238b17dc231e310117e41e6087 100644 (file)
@@ -113,6 +113,7 @@ check_PROGRAMS = \
  test_crypto_aes_weak \
  test_crypto_crc \
  test_crypto_hash \
+ test_crypto_hkdf \
  test_crypto_ksk \
  test_crypto_random \
  test_crypto_rsa \
index b8336236de1bb6d84fe36e77a9ad18f4662c736a..ec215fd348592df3d86efad531505bea751669ef 100644 (file)
@@ -183,12 +183,12 @@ tc6 ()
 {
   unsigned char ikm[22] = { 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b,
       0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b, 0x0b };
-  unsigned char okm[82] = { 0x0a, 0xc1, 0xaf, 0x70, 0x02, 0xb3, 0xd7, 0x61, 0xd1, 0xe5,
+  unsigned char okm[42] = { 0x0a, 0xc1, 0xaf, 0x70, 0x02, 0xb3, 0xd7, 0x61, 0xd1, 0xe5,
       0x52, 0x98, 0xda, 0x9d, 0x05, 0x06, 0xb9, 0xae, 0x52, 0x05, 0x72, 0x20,
       0xa3, 0x06, 0xe0, 0x7b, 0x6b, 0x87, 0xe8, 0xdf, 0x21, 0xd0, 0xea, 0x00,
       0x03, 0x3d, 0xe0, 0x39, 0x84, 0xd3, 0x49, 0x18 };
-  char result[84];
-  int l = 82;
+  char result[44];
+  int l = 42;
 
   memset (result, 0, sizeof(result));
   GNUNET_assert (GNUNET_CRYPTO_hkdf(GCRY_MD_SHA1, GCRY_MD_SHA1, NULL, 0, ikm, sizeof(ikm), NULL, 0,