diff options
author | Micah Elizabeth Scott <beth@torproject.org> | 2023-03-10 14:09:45 -0800 |
---|---|---|
committer | Micah Elizabeth Scott <beth@torproject.org> | 2023-05-10 07:38:28 -0700 |
commit | c6b168e141e9b2a80c80254a9cf3f2a5583fac8c (patch) | |
tree | dcff9e33614b248f3b86c33687b82911fb83a031 /src/test/test.h | |
parent | 0c11411f35e77c42490a3b422a9f0866693b2b57 (diff) | |
download | tor-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.h')
-rw-r--r-- | src/test/test.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test.h b/src/test/test.h index d6c06c658f..ffac069e39 100644 --- a/src/test/test.h +++ b/src/test/test.h @@ -147,6 +147,7 @@ extern struct testcase_t hs_intropoint_tests[]; extern struct testcase_t hs_metrics_tests[]; extern struct testcase_t hs_ntor_tests[]; extern struct testcase_t hs_ob_tests[]; +extern struct testcase_t hs_pow_tests[]; extern struct testcase_t hs_service_tests[]; extern struct testcase_t keypin_tests[]; extern struct testcase_t link_handshake_tests[]; @@ -207,6 +208,7 @@ extern struct testcase_t voting_schedule_tests[]; extern struct testcase_t x509_tests[]; extern struct testcase_t slow_crypto_tests[]; +extern struct testcase_t slow_hs_pow_tests[]; extern struct testcase_t slow_process_tests[]; extern struct testcase_t slow_ptr_tests[]; |