prop250: Add commit and SR values generation code
commit5b183328fdd4bf81a3a38afe88d2766e61773fb9
authorDavid Goulet <dgoulet@torproject.org>
Tue, 3 May 2016 14:57:49 +0000 (3 10:57 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Fri, 1 Jul 2016 17:23:27 +0000 (1 13:23 -0400)
treeab21de7b641144ce46392f9cb38892d8dbf5c807
parentb3b4ffce2e23bfb6a2af374cd8bfa5981628a342
prop250: Add commit and SR values generation code

This adds the logic of commit and SR values generation. Furthermore, the
concept of a protocol run is added that is commit is generated at the right
time as well as SR values which are also rotated before a new protocol run.

Signed-off-by: George Kadianakis <desnacked@riseup.net>
Signed-off-by: David Goulet <dgoulet@torproject.org>
src/or/shared_random.c
src/or/shared_random.h
src/or/shared_random_state.c
src/or/shared_random_state.h