diff options
author | Nick Mathewson <nickm@torproject.org> | 2023-11-09 14:13:27 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2023-11-09 14:13:27 +0000 |
commit | 7e142c7b8c0a7e47e8963dfc3e26a100189086ef (patch) | |
tree | ca92605071051b7220649c0eb5002cb33e43dff1 /spec/tor-spec/relay-cells.md | |
parent | 9ee1cd49256f125f407385aba73d33e9467ff3ef (diff) | |
parent | cae2c281238e798d3a2614f241e888e92b53ea4e (diff) | |
download | torspec-7e142c7b8c0a7e47e8963dfc3e26a100189086ef.tar.gz torspec-7e142c7b8c0a7e47e8963dfc3e26a100189086ef.zip |
Merge branch 'cell-rewrite' into 'main'
Revise the explanation of the cell format
See merge request tpo/core/torspec!213
Diffstat (limited to 'spec/tor-spec/relay-cells.md')
-rw-r--r-- | spec/tor-spec/relay-cells.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/tor-spec/relay-cells.md b/spec/tor-spec/relay-cells.md index e704d6a..3f0c3a7 100644 --- a/spec/tor-spec/relay-cells.md +++ b/spec/tor-spec/relay-cells.md @@ -106,11 +106,12 @@ the unencrypted payload is padded with padding bytes. Implementations handle padding bytes of unencrypted relay cells as they do padding bytes for other cell types; see [Cell Packet format](./cell-packet-format.md#cell-packet-format). -The 'Padding' field is used to make relay cell contents unpredictable, to +<span id="relay-cell-padding">The +'Padding' field is used to make relay cell contents unpredictable, to avoid certain attacks (see proposal 289 for rationale). Implementations SHOULD fill this field with four zero-valued bytes, followed by as many random bytes as will fit. (If there are fewer than 4 bytes for padding, -then they should all be filled with zero. +then they should all be filled with zero.</span> Implementations MUST NOT rely on the contents of the 'Padding' field. |