diff options
author | Micah Elizabeth Scott <beth@torproject.org> | 2023-05-28 19:45:41 -0700 |
---|---|---|
committer | Micah Elizabeth Scott <beth@torproject.org> | 2023-05-28 20:02:03 -0700 |
commit | 415c0354b2e495f236ddf8f67accb3cba4249e21 (patch) | |
tree | 9d23499ebbb127ea3bd6636c725dcf423c61b483 /src/test | |
parent | a397a92be2032e781479fa4d53a04f9b369ea1ac (diff) | |
download | tor-415c0354b2e495f236ddf8f67accb3cba4249e21.tar.gz tor-415c0354b2e495f236ddf8f67accb3cba4249e21.zip |
hs_pow: Add CompiledProofOfWorkHash torrc option
This exposes the new fallback behavior in hashx via a new AUTOBOOL
configuration option, available to both clients and services. The
default should be fine for nearly everyone, but it might be necessary
to enable or disable the compiler manually for diagnostic purposes.
Signed-off-by: Micah Elizabeth Scott <beth@torproject.org>
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_hs_pow_slow.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_hs_pow_slow.c b/src/test/test_hs_pow_slow.c index e21eee3395..ff715cf53e 100644 --- a/src/test/test_hs_pow_slow.c +++ b/src/test/test_hs_pow_slow.c @@ -218,6 +218,7 @@ test_hs_pow_vectors(void *arg) hs_pow_solution_t solution = { 0 }; hs_pow_solver_inputs_t input = { .effort = vectors[vec_i].effort, + .CompiledProofOfWorkHash = -1 }; tt_int_op(strlen(service_blinded_id_hex), OP_EQ, 2 * HS_POW_ID_LEN); |