aboutsummaryrefslogtreecommitdiff
path: root/spec/tor-spec/routing-relay-cells.md
diff options
context:
space:
mode:
Diffstat (limited to 'spec/tor-spec/routing-relay-cells.md')
-rw-r--r--spec/tor-spec/routing-relay-cells.md16
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/tor-spec/routing-relay-cells.md b/spec/tor-spec/routing-relay-cells.md
index e2c784c..07057b0 100644
--- a/spec/tor-spec/routing-relay-cells.md
+++ b/spec/tor-spec/routing-relay-cells.md
@@ -1,10 +1,10 @@
<a id="tor-spec.txt-5.5"></a>
-## Routing relay cells
+# Routing relay cells
<a id="tor-spec.txt-5.5.1"></a>
-### Circuit ID Checks
+## Circuit ID Checks
When a node wants to send a RELAY or RELAY_EARLY cell, it checks the cell's
circID and determines whether the corresponding circuit along that
@@ -16,14 +16,14 @@ that connection. If not, the node drops the cell.
<a id="tor-spec.txt-5.5.2"></a>
-### Forward Direction
+## Forward Direction
The forward direction is the direction that CREATE/CREATE2 cells
are sent.
<a id="tor-spec.txt-5.5.2.1"></a>
-#### Routing from the Origin
+### Routing from the Origin
When a relay cell is sent from an OP, the OP encrypts the payload
with the stream cipher as follows:
@@ -37,7 +37,7 @@ with the stream cipher as follows:
<a id="tor-spec.txt-5.5.2.2"></a>
-#### Relaying Forward at Onion Routers
+### Relaying Forward at Onion Routers
When a forward relay cell is received by an OR, it decrypts the payload
with the stream cipher, as follows:
@@ -59,14 +59,14 @@ For more information, see section 6 below.
<a id="tor-spec.txt-5.5.3"></a>
-### Backward Direction
+## Backward Direction
The backward direction is the opposite direction from
CREATE/CREATE2 cells.
<a id="tor-spec.txt-5.5.3.1"></a>
-#### Relaying Backward at Onion Routers
+### Relaying Backward at Onion Routers
When a backward relay cell is received by an OR, it encrypts the payload
with the stream cipher, as follows:
@@ -78,7 +78,7 @@ with the stream cipher, as follows:
<a id="tor-spec.txt-5.5.3"></a>
-### Routing to the Origin
+## Routing to the Origin
When a relay cell arrives at an OP, the OP decrypts the payload
with the stream cipher as follows: