commit 7479cd9e4e9c8110e4babd40cb1da888eb00c390 Author: Nick Mathewson nickm@torproject.org Date: Fri Jun 26 10:19:37 2020 -0400
Add a sentence about how the digest is calculated; closes tor#32830 --- tor-spec.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/tor-spec.txt b/tor-spec.txt index 9b2c7b3..40ea4cc 100644 --- a/tor-spec.txt +++ b/tor-spec.txt @@ -1617,9 +1617,10 @@ see tor-design.pdf. been destined for this hop of the circuit or originated from this hop of the circuit, seeded from Df or Db respectively (obtained in section 5.2 above), and including this RELAY cell's entire payload - (taken with the digest field set to zero). If the digest - is correct, the cell is considered "recognized" for the purposes of - decryption (see section 5.5 above). + (taken with the digest field set to zero). Note that these digests + _do_ include the padding bytes at the end of the cell, not only those up + to "Len". If the digest is correct, the cell is considered "recognized" + for the purposes of decryption (see section 5.5 above).
(The digest does not include any bytes from relay cells that do not start or end at this hop of the circuit. That is, it does not