diff options
author | Nils Durner <durner@gnunet.org> | 2010-07-03 18:12:40 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2010-07-03 18:12:40 +0000 |
commit | 32e21c94e921edf3b026f8e94010cd66db32b00c (patch) | |
tree | 8d622ada19e30c569daa4ae6538141724e8b9d27 /src/util/test_crypto_hkdf.c | |
parent | 69179158b93b433eb30800bc14d69bc305571bbc (diff) |
fix
Diffstat (limited to 'src/util/test_crypto_hkdf.c')
-rw-r--r-- | src/util/test_crypto_hkdf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/test_crypto_hkdf.c b/src/util/test_crypto_hkdf.c index b8336236de..ec215fd348 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, |