tor/scripts/maint/practracker
Nick Mathewson 0bc1241494 Make sure that we send at least some random data in RELAY_DATA cells
Proposal 289 prevents SENDME-flooding by requiring the other side to
authenticate the data it has received.  But this data won't actually
be random if they are downloading a known resource.  "No problem",
we said, "let's fell the empty parts of our cells with some
randomness!" and we did that in #26871.

Unfortunately, if the relay data payloads are all completely full,
there won't be any empty parts for us to randomize.

Therefore, we now pick random "randomness windows" between
CIRCWINDOW_INCREMENT/2 and CIRCWINDOW_INCREMENT. We remember whether we have
sent a cell containing at least 16 bytes of randomness in that window.  If we
haven't, then when the window is exhausted, we send one.  (This window approach
is designed to lower the number of rng checks we have to do.  The number 16 is
pulled out of a hat to change the attacker's guessing difficulty to
"impossible".)

Implements 28646.
2019-05-27 14:20:07 +03:00
..
exceptions.txt Make sure that we send at least some random data in RELAY_DATA cells 2019-05-27 14:20:07 +03:00
metrics.py practracker: Be more careful about excluding "confusing terms" 2019-03-13 09:27:29 -04:00
practracker_tests.py Improve metrics implementation. 2019-02-27 19:31:15 +02:00
practracker.py Stop assuming that /usr/bin/python3 exists 2019-03-27 11:07:55 +10:00
problem.py practracker: add ability to regenerate exceptions file. 2019-03-25 16:09:11 -04:00
util.py practracker: sort filenames and directories. 2019-03-25 09:08:04 -04:00