aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_hash.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-01-09 12:49:44 +0000
committerChristian Grothoff <christian@grothoff.org>2014-01-09 12:49:44 +0000
commit957037e37439b9378b1242270530db95b06a458c (patch)
treed17d7c0127f69a9ff317af4ee0e322000bdf4ea0 /src/util/crypto_hash.c
parent25744888266d74a3dbf444d6b1db2a8d46f9cdfb (diff)
downloadgnunet-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.c8
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 */
43void 43void
44GNUNET_CRYPTO_hash (const void *block, size_t size, struct GNUNET_HashCode * ret) 44GNUNET_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}