aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/crypto_hash.c')
-rw-r--r--src/util/crypto_hash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/crypto_hash.c b/src/util/crypto_hash.c
index 67cf92d17..cd2ea75bf 100644
--- a/src/util/crypto_hash.c
+++ b/src/util/crypto_hash.c
@@ -289,7 +289,7 @@ GNUNET_CRYPTO_hash_from_string2 (const char *enc,
289 289
290/** 290/**
291 * @ingroup hash 291 * @ingroup hash
292 * 292 *
293 * Compute the distance between 2 hashcodes. The computation must be 293 * Compute the distance between 2 hashcodes. The computation must be
294 * fast, not involve bits[0] or bits[4] (they're used elsewhere), and be 294 * fast, not involve bits[0] or bits[4] (they're used elsewhere), and be
295 * somewhat consistent. And of course, the result should be a positive 295 * somewhat consistent. And of course, the result should be a positive
@@ -457,7 +457,7 @@ GNUNET_CRYPTO_hash_matching_bits (const struct GNUNET_HashCode * first,
457 * @return 1 if h1 > h2, -1 if h1 < h2 and 0 if h1 == h2. 457 * @return 1 if h1 > h2, -1 if h1 < h2 and 0 if h1 == h2.
458 */ 458 */
459int 459int
460GNUNET_CRYPTO_hash_cmp (const struct GNUNET_HashCode *h1, 460GNUNET_CRYPTO_hash_cmp (const struct GNUNET_HashCode *h1,
461 const struct GNUNET_HashCode *h2) 461 const struct GNUNET_HashCode *h2)
462{ 462{
463 unsigned int *i1; 463 unsigned int *i1;
@@ -543,8 +543,8 @@ GNUNET_CRYPTO_hmac_derive_key_v (struct GNUNET_CRYPTO_AuthKey *key,
543 const void *salt, size_t salt_len, 543 const void *salt, size_t salt_len,
544 va_list argp) 544 va_list argp)
545{ 545{
546 GNUNET_CRYPTO_kdf_v (key->key, sizeof (key->key), 546 GNUNET_CRYPTO_kdf_v (key->key, sizeof (key->key),
547 salt, salt_len, 547 salt, salt_len,
548 rkey, sizeof (struct GNUNET_CRYPTO_SymmetricSessionKey), 548 rkey, sizeof (struct GNUNET_CRYPTO_SymmetricSessionKey),
549 argp); 549 argp);
550} 550}