Commit Graph

293 Commits

Author SHA1 Message Date
Mike Perry
2c1d626b9f Document relay commands for circpad cells. 2020-07-06 11:32:05 -05:00
Nick Mathewson
7479cd9e4e Add a sentence about how the digest is calculated; closes tor#32830 2020-06-26 10:20:48 -04:00
Nick Mathewson
7146ead1ec Remove a very obsolete note about compatibility notes 2020-06-24 15:41:11 -04:00
Nick Mathewson
693f5d4444 Rename a circuit end reason.
OR_CONN_CLOSED has been CHANNEL_CLOSED since 0.2.4.4-alpha.
2020-06-17 12:53:20 -04:00
teor
560c9181ca
tor-spec: Add Relay=3 protocol version
With minor edits from the draft in proposal 311.

Closes ticket 33227.
2020-05-18 12:59:48 +10:00
teor
b43b915661
tor-spec: Do the same extend checks as tor
Update the extend checks to match tor's implementation, particularly
the comments in channel_tls_matches_target_method().
2020-04-28 21:07:24 +10:00
teor
79fba6de64
tor-spec: Explain the truncated reason better
It's the payload of a DESTROY cell, but the data of a RELAY_TRUNCATED
cell.
2020-04-28 17:34:15 +10:00
teor
ce0d233f6d
tor-spec: Extends accept all-zero ed25519 keys
The spec gives conficting advice about all-zero ed25519 keys in extends.
Resolve this conflict by documenting tor's current behaviour.

Also move a sentence about circuit IDs, so it's closer to the associated
paragraph.
2020-04-28 17:30:30 +10:00
Hans-Christoph Steiner
9c86f54ba0 convert text blocks into widely compatible "blockquote" syntax
This only adds newline characters to make the existing text blocks act like
"blockquote" or "code block" syntax in Markdown, asciidoc, and others.
This was accomplished by manually reviewing the output of this script:

```bash
for f in *.txt; do
  cat $f | python -c "import sys,re;print(re.sub(r'(\n {0,3}[^ \n][^\n]*\n)( {4,}[^\n]*)', r'\1\n\2', sys.stdin.read()))" > ${f}.tmp
  mv ${f}.tmp $f
done
```
2019-12-10 16:06:53 +01:00
George Kadianakis
2b47d247b3 Merge remote-tracking branch 'dgoulet/ticket32617_01' 2019-12-02 12:46:27 +02:00
David Goulet
29a110faae rend-spec-v3.txt: Merge prop305 in it
Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-11-26 15:11:38 -05:00
Hans-Christoph Steiner
a3fd193023 fix erroneous header numbering punctuation
The clear standard is trailing "." after each numeric section.  This fixes
the small handful of outliers.  This makes it easy to convert these headers
to common markup formats, for example:
http://hyperpolyglot.org/lightweight-markup
2019-11-26 21:03:19 +01:00
Nick Mathewson
d03d6ace4b 0.4.1.5 is scheduled to be a stable release. 2019-08-19 11:17:38 -04:00
George Kadianakis
4c11245fe3 tor-spec: Clarify protover Padding=1 and Padding=2. 2019-08-19 11:17:04 -04:00
David Goulet
4fc32990cf tor-spec: Add authenticated SENDMEs
This merges proposal 289 into tor-spec.txt.

Most of the circuit-level flow control section has been rewritten to be
clearer and better detail version 0 and 1.

Closes #30365

Signed-off-by: David Goulet <dgoulet@torproject.org>
2019-05-31 15:11:37 -04:00
Nick Mathewson
e1cb6341f9 Merge remote-tracking branch 'asn-github/bug28142' 2019-01-15 12:24:20 -05:00
Roger Dingledine
df60e9b502 my next surfer band name will be the protocools 2018-12-21 01:57:24 -05:00
Nick Mathewson
ecf241e224 Merge remote-tracking branch 'tor-github/pr/46' 2018-12-20 07:54:39 -05:00
Nick Mathewson
18fcb9ab42 Mark proposal 297-safer-protocol-shutdowns.txt as implemented (#27735) 2018-12-11 09:52:35 -05:00
rl1987
11d0fb3de4 Update syntax that describes NETINFO cell 2018-12-06 15:05:31 +02:00
George Kadianakis
2c9581bcff Specify protover support for circuit-level padding. 2018-12-06 13:34:49 +02:00
rl1987
7282e12288 Reword address format definition in section 4.5
Let's refrain from mentioning section 6.4 in here, as the format
is not exactly the same - not all address type field values from
section 6.4 make sense in NETINFO cell and NETINFO cell does not
have a TTL value at the end of each address. It's a little confusing
to suggest that there is a reuse of wire format fragment between
RELAY_RESOLVED and NETINFO cells.
2018-11-29 12:19:33 +02:00
Nick Mathewson
33792220b2 Merge remote-tracking branch 'teor/ticket26885' 2018-08-08 14:20:53 -04:00
Nick Mathewson
684c46b822 Clarify some places where we meant RELAY to include RELAY_EARLY. 2018-07-30 10:13:43 -04:00
Nick Mathewson
608c4a2b8b Merge branch '26228-padding-bytes_squashed' 2018-07-30 10:10:53 -04:00
teor
46bc41bb1b tor-spec: Prop#289: RELAY cell padding should be randomised
Updates tor-spec for 26871
2018-07-30 10:10:02 -04:00
teor
42d93671d4 tor-spec: Clarify padding bytes in VPADDING, PADDING, and DROP cells
Closes 26870.
2018-07-30 10:10:02 -04:00
teor
42eb1fdc55
tor-spec: Generalise "exit" to "end" where appropriate
Closes #26885.
2018-07-26 09:54:34 +10:00
teor
220ea886ec
tor-spec: Generalise the first-hop ban to rend points and exit streams
Part of 26885.
2018-07-26 09:54:30 +10:00
Taylor Yu
1f0d38a763 Clarify all-zeroes relay fingerprint behavior
The all-zeroes special case for EXTEND/EXTEND2 cells is for relay
fingerprints/public keys, not cell crypto digests.

Closes ticket 26893.
2018-07-20 16:56:29 -05:00
Taylor Yu
d5a0678ec7 Say CREATE/CREATE2, etc. where needed
Not all of the text describing CREATE, CREATED, EXTEND, or EXTENDED
cells was updated when the "2"-suffixed versions were added.

Closes ticket 26894.
2018-07-20 16:01:20 -05:00
Nick Mathewson
7ced6190ea Merge branch '26860-decryption-order-squashed' 2018-07-20 10:39:39 -04:00
teor
03b884b63d tor-spec: circIDs are no longer chosen based on nicknames
And perhaps they never were?
2018-07-20 10:39:32 -04:00
teor
b19196bfb0 tor-spec: fix some section numbers 2018-07-20 10:39:32 -04:00
teor
3347808b4f tor-spec: Specify how EXTEND2 cells are turned into CREATE2 cells
Also generalised the EXTENDED to CREATED section so it covers
EXTENDED2 to CREATED2.

Closes 26859.
2018-07-20 10:39:32 -04:00
teor
81a066672d
tor-spec: Rewrite the Routing Relay Cells section
The section now consists of:
* forward encryption at the client
* forward decryption at ORs
* backward encryption at the end (exit)
* backward decryption at the client

Part of 26860.
2018-07-19 13:29:30 +10:00
teor
ce1d4a8b7e
tor-spec: Fix recognized error, and explain why the field exists
Closes 26872.
2018-07-19 13:24:49 +10:00
Dave Rolek
7b1a76c734 Update spec with SHOULD/MUST behavior for padding bytes
In doing so, specify a general behavior for padding bytes in Section 3
and cross-reference other locations to this, to aid in future
consistency.

Also clarify a few vague parts of the prior wording.

Fixes #26860.
2018-07-18 21:22:43 +00:00
Dave Rolek
c551c2dc07 Update spec to match correct decryption order
Fixes #26860.
2018-07-18 19:51:43 +00:00
Taylor Yu
353b51e257 Fix typo in tor-spec.txt
Section 5.1.2 erroneously suggested that a client might send an
EXTENDED2 cell, which was probably a typo.  Also change "a" to "an".
2018-03-27 14:17:20 -05:00
Nick Mathewson
ef91cd6a59 Small tweaks to clarify recognized even more 2018-02-13 09:05:25 -05:00
Damian Johnson
e4b7001bdf Change clause about recognized to 'may'
Good point from Roger and Tim on...

  https://trac.torproject.org/projects/tor/ticket/25171
2018-02-08 10:02:39 -08:00
Damian Johnson
d326f4d1e3 Clarify what the RELAY cell's 'recognized' field is for
Our tor-spec left me pretty mystified what the 'recognized' field actually was.
It discussed what to do when it was zero, but not what the field *was* or what
non-zero meant. Thankfully Roger filled me in over tasty, tasty pizza.
2018-02-07 09:48:19 -08:00
Nick Mathewson
e2d585a243 Merge commit '8692de910d' 2018-01-12 10:05:01 -05:00
Nick Mathewson
85e4033f9c Document Ed25519 link authentication and EXTEND formats. 2017-09-20 13:43:56 -04:00
Nick Mathewson
7842a0621b Remove a comment about unimplemented feature in 0.2.0.23-rc 2017-09-20 09:38:42 -04:00
teor
dd755cdc56
VERSIONS cells sent after the initial VERSIONS cell are dropped
Resolves 22931.
2017-09-20 09:28:53 +10:00
teor
33d819164c
When VPADDING cells are sent early, specify their CIRC_ID_LEN
Resolves 22929.
2017-09-20 09:28:41 +10:00
Nick Mathewson
51f1127c2f Clarify which ciphers we are talking about in tor-spec 0.3.
Make sure we mention all the ciphers we use, and use the phrase
"unless otherwise specified" liberally to make sure that people
don't think that we're still RSA1024 all over.

Also rename the hybrid encryption thing to "legacy hybrid
encryption", and put it in its own section.

Closes ticket 22722.
2017-09-19 14:22:47 -04:00
Nick Mathewson
1cda024edf clarify that RELAY_SENDME cells are empty 2017-09-19 09:47:56 -04:00