Skip to content

Commit

Permalink
Remove haval
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaynexus committed Mar 18, 2019
1 parent 0bd7ba5 commit 999ddbd
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ crypto_libbitcoin_crypto_a_SOURCES = \
crypto/shabal.c \
crypto/simd.c \
crypto/echo.c \
crypto/haval.c \
crypto/hamsi.c \
crypto/fugue.c \
crypto/sha2.c \
Expand Down Expand Up @@ -321,7 +320,6 @@ crypto_libbitcoin_crypto_a_SOURCES = \
crypto/sph_shabal.h \
crypto/sph_whirlpool.h \
crypto/sph_sha2.h \
crypto/sph_haval.h \
crypto/sph_types.h

# univalue JSON library
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.test.include
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ TEST_BINARY=test/test_dogecash$(EXEEXT)


EXTRA_DIST += \
src/crypto/haval_helper.c \

test/bctest.py \
test/bitcoin-util-test.py \
test/data/bitcoin-util-test.json \
Expand Down
4 changes: 0 additions & 4 deletions src/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
#include "crypto/sph_fugue.h"
#include "crypto/sph_shabal.h"
#include "crypto/sph_sha2.h"
#include "crypto/sph_haval.h"
#include "crypto/sha512.h"
#include <iomanip>
#include <openssl/sha.h>
Expand Down Expand Up @@ -60,7 +59,6 @@ GLOBAL sph_hamsi512_context z_hamsi;
GLOBAL sph_fugue512_context z_fugue;
GLOBAL sph_shabal512_context z_shabal;
GLOBAL sph_sha512_context z_sha2;
GLOBAL sph_haval256_5_context z_haval;

#define fillz() do { \
sph_blake512_init(&z_blake); \
Expand All @@ -78,7 +76,6 @@ GLOBAL sph_haval256_5_context z_haval;
sph_fugue512_init(&z_fugue); \
sph_shabal512_init(&z_shabal); \
sph_sha512_init(&z_sha2); \
sph_haval256_5_init(&z_haval); \
} while (0)

#define ZBLAKE (memcpy(&ctx_blake, &z_blake, sizeof(z_blake)))
Expand All @@ -91,7 +88,6 @@ GLOBAL sph_haval256_5_context z_haval;
#define ZFUGUE (memcpy(&ctx_fugue, &z_fugue, sizeof(z_fugue)))
#define ZSHABAL (memcpy(&ctx_shabal, &z_shabal, sizeof(z_shabal)))
#define ZSHA2 (memcpy(&ctx_sha2, &z_sha2, sizeof(z_sha2)))
#define ZHAVAL (memcpy(&ctx_haval, &z_haval, sizeof(z_haval)))

/** A hasher class for Bitcoin's 256-bit hash (double SHA-256). */
class CHash256
Expand Down

0 comments on commit 999ddbd

Please sign in to comment.