diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-30 11:22:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-30 11:22:48 +0000 |
commit | 05ef63d9f8cf65561b7ed2234efdc80e3fb40bd0 (patch) | |
tree | 7c00b58220e87d7f2f050b46e0e2f59c3795e703 /src/core | |
parent | 814457c05d62c8f0c167c6bc2015201151355249 (diff) | |
download | gnunet-05ef63d9f8cf65561b7ed2234efdc80e3fb40bd0.tar.gz gnunet-05ef63d9f8cf65561b7ed2234efdc80e3fb40bd0.zip |
-encrypt using both AES and TWOFISH, with independent symmetric keys
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/gnunet-service-core_kx.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c index 19c8d7710..bf5e9a5fa 100644 --- a/src/core/gnunet-service-core_kx.c +++ b/src/core/gnunet-service-core_kx.c | |||
@@ -429,9 +429,11 @@ derive_auth_key (struct GNUNET_CRYPTO_AuthKey *akey, | |||
429 | { | 429 | { |
430 | static const char ctx[] = "authentication key"; | 430 | static const char ctx[] = "authentication key"; |
431 | 431 | ||
432 | GNUNET_CRYPTO_hmac_derive_key (akey, skey, &seed, sizeof (seed), &skey->key, | 432 | GNUNET_CRYPTO_hmac_derive_key (akey, skey, |
433 | sizeof (skey->key), ctx, | 433 | &seed, sizeof (seed), |
434 | sizeof (ctx), NULL); | 434 | skey, sizeof (struct GNUNET_CRYPTO_AesSessionKey), |
435 | ctx, sizeof (ctx), | ||
436 | NULL); | ||
435 | } | 437 | } |
436 | 438 | ||
437 | 439 | ||