summaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-02-06 12:26:36 -0500
committerNick Mathewson <nickm@torproject.org>2017-08-08 20:29:33 -0400
commit9052530bdde9f03da883dfb70fe261ea7d0e1b4d (patch)
tree1e96d47b71da1cd4809a925d95aeecc723c72866 /src/test
parent44e3255c4df78828110cec360031a616c6d8d0fa (diff)
downloadtor-9052530bdde9f03da883dfb70fe261ea7d0e1b4d.tar.gz
tor-9052530bdde9f03da883dfb70fe261ea7d0e1b4d.zip
prop224: API for the creation of blinded keys
Add a function for both the client and service side that is building a blinded key from a keypair (service) and from a public key (client). Those two functions uses the current time period information to build the key. Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/test_hs_service.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/test_hs_service.c b/src/test/test_hs_service.c
index 4a7cb81140..174d07f488 100644
--- a/src/test/test_hs_service.c
+++ b/src/test/test_hs_service.c
@@ -330,18 +330,18 @@ test_time_period(void *arg)
tt_int_op(retval, ==, 0);
/* Check that the time period number is right */
- tn = get_time_period_num(fake_time);
+ tn = hs_get_time_period_num(fake_time);
tt_u64_op(tn, ==, 16903);
/* Increase current time to 11:59:59 UTC and check that the time period
number is still the same */
fake_time += 3599;
- tn = get_time_period_num(fake_time);
+ tn = hs_get_time_period_num(fake_time);
tt_u64_op(tn, ==, 16903);
/* Now take time to 12:00:00 UTC and check that the time period rotated */
fake_time += 1;
- tn = get_time_period_num(fake_time);
+ tn = hs_get_time_period_num(fake_time);
tt_u64_op(tn, ==, 16904);
/* Now also check our hs_get_next_time_period_num() function */