diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-05-11 11:32:00 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-05-11 11:32:00 -0400 |
commit | 2b441e25bc7019fddfb040c35ebf92fbb5905a49 (patch) | |
tree | f9e4afd93cab66b3ef4cf7d416198b526d344969 /src/or/rendcommon.c | |
parent | ece23da3ae83e13a8a1e815a5da1a6630bb3ccb0 (diff) | |
download | tor-2b441e25bc7019fddfb040c35ebf92fbb5905a49.tar.gz tor-2b441e25bc7019fddfb040c35ebf92fbb5905a49.zip |
comment patch from dgoulet that was in my inbox too long
Diffstat (limited to 'src/or/rendcommon.c')
-rw-r--r-- | src/or/rendcommon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/rendcommon.c b/src/or/rendcommon.c index 9384220226..c3f0d32ac6 100644 --- a/src/or/rendcommon.c +++ b/src/or/rendcommon.c @@ -155,10 +155,10 @@ rend_compute_v2_desc_id(char *desc_id_out, const char *service_id, } /* Calculate current time-period. */ time_period = get_time_period(now, 0, service_id_binary); - /* Calculate secret-id-part = h(time-period | replica). */ + /* Calculate secret-id-part = h(time-period | desc-cookie | replica). */ get_secret_id_part_bytes(secret_id_part, time_period, descriptor_cookie, replica); - /* Calculate descriptor ID. */ + /* Calculate descriptor ID: H(permanent-id | secret-id-part) */ rend_get_descriptor_id_bytes(desc_id_out, service_id_binary, secret_id_part); return 0; } |