tor/scripts/maint/practracker
David Goulet 3835a3acf5 sendme: Properly record SENDMEs on both edges
Turns out that we were only recording the "b_digest" but to have
bidirectionnal authenticated SENDMEs, we need to use the "f_digest" in the
forward cell situation.

Because of the cpath refactoring, this commit plays with the crypt_path_ and
relay_crypto_t API a little bit in order to respect the abstractions.

Previously, we would record the cell digest as the SENDME digest in the
decrypt cell function but to avoid code duplication (both directions needs to
record), we now do that right after iff the cell is recognized (at the edge).
It is now done in circuit_receive_relay_cell() instead.

We now also record the cell digest as the SENDME digest in both relay cell
encryption functions since they are split depending on the direction.
relay_encrypt_cell_outbound() and relay_encrypt_cell_inbound() need to
consider recording the cell digest depending on their direction (f vs b
digest).

Fixes #30428

Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-05-22 11:47:20 -04:00
..
exceptions.txt sendme: Properly record SENDMEs on both edges 2019-05-22 11:47:20 -04: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