aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_slow.c
diff options
context:
space:
mode:
authorMicah Elizabeth Scott <beth@torproject.org>2023-03-10 14:09:45 -0800
committerMicah Elizabeth Scott <beth@torproject.org>2023-05-10 07:38:28 -0700
commitc6b168e141e9b2a80c80254a9cf3f2a5583fac8c (patch)
treedcff9e33614b248f3b86c33687b82911fb83a031 /src/test/test_slow.c
parent0c11411f35e77c42490a3b422a9f0866693b2b57 (diff)
downloadtor-c6b168e141e9b2a80c80254a9cf3f2a5583fac8c.tar.gz
tor-c6b168e141e9b2a80c80254a9cf3f2a5583fac8c.zip
test_hs_pow: add test vectors for our hs_pow client puzzle
This adds test vectors for the overall client puzzle at the hs_pow and hs_cell layers. These are similar to the crypto/equix tests, but they also cover particulars of our hs_pow format like the conversion to byte arrays, the replay cache, the effort test, and the formatting of the equix challenge string. Signed-off-by: Micah Elizabeth Scott <beth@torproject.org>
Diffstat (limited to 'src/test/test_slow.c')
-rw-r--r--src/test/test_slow.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/test_slow.c b/src/test/test_slow.c
index 5f42b43103..08366416ca 100644
--- a/src/test/test_slow.c
+++ b/src/test/test_slow.c
@@ -21,6 +21,7 @@
struct testgroup_t testgroups[] = {
{ "slow/crypto/", slow_crypto_tests },
{ "slow/process/", slow_process_tests },
+ { "slow/hs_pow/", slow_hs_pow_tests },
{ "slow/prob_distr/", slow_stochastic_prob_distr_tests },
{ "slow/ptr/", slow_ptr_tests },
END_OF_GROUPS