diff options
author | Micah Elizabeth Scott <beth@torproject.org> | 2023-03-09 15:28:56 -0800 |
---|---|---|
committer | Micah Elizabeth Scott <beth@torproject.org> | 2023-05-10 07:38:28 -0700 |
commit | bfa2102c955e0dc81af0821760c45d787eac8e1e (patch) | |
tree | 819b955529412abe212cfc25dec692ce8db5f77b /src/test/test_crypto.c | |
parent | ffa8531fe0f495e45ade4910b7a1c0d7e56d78ba (diff) | |
download | tor-bfa2102c955e0dc81af0821760c45d787eac8e1e.tar.gz tor-bfa2102c955e0dc81af0821760c45d787eac8e1e.zip |
hs_pow: Replace libb2 dependency with hashx's internal blake2
This forgoes another external library dependency, and instead
introduces a compatibility header so that interested parties
(who already depend on equix, like hs_pow and unit tests) can
use the implementation of blake2b included in hashx.
Signed-off-by: Micah Elizabeth Scott <beth@torproject.org>
Diffstat (limited to 'src/test/test_crypto.c')
-rw-r--r-- | src/test/test_crypto.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c index 1f66a6251a..82a9d5d642 100644 --- a/src/test/test_crypto.c +++ b/src/test/test_crypto.c @@ -10,6 +10,7 @@ #include "test/test.h" #include "lib/crypt_ops/aes.h" #include "siphash.h" +#include "ext/compat_blake2.h" #include "ext/equix/hashx/include/hashx.h" #include "lib/crypt_ops/crypto_curve25519.h" #include "lib/crypt_ops/crypto_dh.h" @@ -21,9 +22,6 @@ #include "ed25519_vectors.inc" #include "test/log_test_helpers.h" -// TODO fixme -#include <blake2.h> - #ifdef HAVE_SYS_STAT_H #include <sys/stat.h> #endif |