[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12152 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12152 - gnunet/src/util |
Date: |
Sat, 3 Jul 2010 20:12:40 +0200 |
Author: durner
Date: 2010-07-03 20:12:40 +0200 (Sat, 03 Jul 2010)
New Revision: 12152
Modified:
gnunet/src/util/Makefile.am
gnunet/src/util/test_crypto_hkdf.c
Log:
fix
Modified: gnunet/src/util/Makefile.am
===================================================================
--- gnunet/src/util/Makefile.am 2010-07-03 13:58:25 UTC (rev 12151)
+++ gnunet/src/util/Makefile.am 2010-07-03 18:12:40 UTC (rev 12152)
@@ -113,6 +113,7 @@
test_crypto_aes_weak \
test_crypto_crc \
test_crypto_hash \
+ test_crypto_hkdf \
test_crypto_ksk \
test_crypto_random \
test_crypto_rsa \
Modified: gnunet/src/util/test_crypto_hkdf.c
===================================================================
--- gnunet/src/util/test_crypto_hkdf.c 2010-07-03 13:58:25 UTC (rev 12151)
+++ gnunet/src/util/test_crypto_hkdf.c 2010-07-03 18:12:40 UTC (rev 12152)
@@ -183,12 +183,12 @@
{
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,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12152 - gnunet/src/util,
gnunet <=