diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-01-09 12:49:44 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-01-09 12:49:44 +0000 |
commit | 957037e37439b9378b1242270530db95b06a458c (patch) | |
tree | d17d7c0127f69a9ff317af4ee0e322000bdf4ea0 /src/util/crypto_hash.c | |
parent | 25744888266d74a3dbf444d6b1db2a8d46f9cdfb (diff) | |
download | gnunet-957037e37439b9378b1242270530db95b06a458c.tar.gz gnunet-957037e37439b9378b1242270530db95b06a458c.zip |
-revert 'optimization' that broke test_crypto_hkdf
Diffstat (limited to 'src/util/crypto_hash.c')
-rw-r--r-- | src/util/crypto_hash.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util/crypto_hash.c b/src/util/crypto_hash.c index 3244a4371..60ed6582d 100644 --- a/src/util/crypto_hash.c +++ b/src/util/crypto_hash.c | |||
@@ -36,12 +36,14 @@ | |||
36 | /** | 36 | /** |
37 | * Hash block of given size. | 37 | * Hash block of given size. |
38 | * | 38 | * |
39 | * @param block the data to GNUNET_CRYPTO_hash, length is given as a second argument | 39 | * @param block the data to #GNUNET_CRYPTO_hash, length is given as a second argument |
40 | * @param size the length of the data to GNUNET_CRYPTO_hash | 40 | * @param size the length of the data to #GNUNET_CRYPTO_hash in @a block |
41 | * @param ret pointer to where to write the hashcode | 41 | * @param ret pointer to where to write the hashcode |
42 | */ | 42 | */ |
43 | void | 43 | void |
44 | GNUNET_CRYPTO_hash (const void *block, size_t size, struct GNUNET_HashCode * ret) | 44 | GNUNET_CRYPTO_hash (const void *block, |
45 | size_t size, | ||
46 | struct GNUNET_HashCode *ret) | ||
45 | { | 47 | { |
46 | gcry_md_hash_buffer (GCRY_MD_SHA512, ret, block, size); | 48 | gcry_md_hash_buffer (GCRY_MD_SHA512, ret, block, size); |
47 | } | 49 | } |