From 3ece1584f081fb995217b3dfc718b5e099f10220 Mon Sep 17 00:00:00 2001 From: Riccardo Spagni Date: Wed, 28 Jan 2015 11:32:52 +0200 Subject: [PATCH] make fallback compatible with newer slow-hash --- src/crypto/slow-hash.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/crypto/slow-hash.c b/src/crypto/slow-hash.c index fda854ea5..6b410b01a 100644 --- a/src/crypto/slow-hash.c +++ b/src/crypto/slow-hash.c @@ -627,6 +627,18 @@ void cn_slow_hash(const void *data, size_t length, char *hash) #else // Portable implementation as a fallback +void slow_hash_allocate_state(void) +{ + // Do nothing, this is just to maintain compatibility with the upgraded slow-hash.c + return; +} + +void slow_hash_free_state(void) +{ + // As above + return; +} + static void (*const extra_hashes[4])(const void *, size_t, char *) = { hash_extra_blake, hash_extra_groestl, hash_extra_jh, hash_extra_skein };