]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Document a requirement for cells to be encrypted.
authorNick Mathewson <nickm@torproject.org>
Sat, 24 Mar 2018 17:49:44 +0000 (13:49 -0400)
committerNick Mathewson <nickm@torproject.org>
Sat, 24 Mar 2018 17:49:44 +0000 (13:49 -0400)
src/or/relay_crypto.c

index 9d61ecd424920bbaf3a98e2fe78fa972908fcf99..c42a4f9ccaa951f0af5405a55c084b09342a8979 100644 (file)
@@ -170,6 +170,9 @@ relay_decrypt_cell(circuit_t *circ, cell_t *cell,
 /**
  * Encrypt a cell <b>cell</b> that we are creating, and sending outbound on
  * <b>circ</b> until the hop corresponding to <b>layer_hint</b>.
+ *
+ * The integrity field and recognized field of <b>cell</b>'s relay headers
+ * must be set to zero.
  */
 void
 relay_encrypt_cell_outbound(cell_t *cell,
@@ -193,6 +196,9 @@ relay_encrypt_cell_outbound(cell_t *cell,
 /**
  * Encrypt a cell <b>cell</b> that we are creating, and sending on
  * <b>circuit</b> to the origin.
+ *
+ * The integrity field and recognized field of <b>cell</b>'s relay headers
+ * must be set to zero.
  */
 void
 relay_encrypt_cell_inbound(cell_t *cell,