diff options
| author | Riccardo Spagni <ric@spagni.net> | 2015-02-03 20:15:02 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2015-02-03 20:15:08 +0200 |
| commit | 6e5797dc1160f73b073b4d9ecdec455ffb11e309 (patch) | |
| tree | d609032f536e9abe3e154bd52963d9d899fc49f3 /src/crypto | |
| parent | cbb07422649d2f8fb08d01f1302d52daf567f121 (diff) | |
| parent | 3ece1584f081fb995217b3dfc718b5e099f10220 (diff) | |
| download | monzero-core-6e5797dc1160f73b073b4d9ecdec455ffb11e309.tar.gz monzero-core-6e5797dc1160f73b073b4d9ecdec455ffb11e309.tar.xz monzero-core-6e5797dc1160f73b073b4d9ecdec455ffb11e309.zip | |
Merge pull request #221
3ece158 make fallback compatible with newer slow-hash (Riccardo Spagni)
709bbc5 replaced 64-bit multiplication in difficulty.cpp with a portable version (Riccardo Spagni)
497a514 replaced 64-bit multiplication in difficulty.cpp with a portable version (Riccardo Spagni)
Diffstat (limited to 'src/crypto')
| -rw-r--r-- | src/crypto/slow-hash.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 }; |
