From 32e21c94e921edf3b026f8e94010cd66db32b00c Mon Sep 17 00:00:00 2001 From: Nils Durner Date: Sat, 3 Jul 2010 18:12:40 +0000 Subject: fix --- src/util/Makefile.am | 1 + src/util/test_crypto_hkdf.c | 6 +++--- 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 = \ test_crypto_aes_weak \ test_crypto_crc \ test_crypto_hash \ + test_crypto_hkdf \ test_crypto_ksk \ test_crypto_random \ 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 () { 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, -- cgit v1.2.3