diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-03-17 10:14:35 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-03-17 10:16:41 -0400 |
commit | 320dcf65b7c8e382b27260a037bd1e93e563ccb9 (patch) | |
tree | a42f76d15d4cbee6bf685e4aad199cc8f08b49de /src/or/relay.h | |
parent | 298932605495dc9ef3e8e068c36a80a517036195 (diff) | |
download | tor-320dcf65b7c8e382b27260a037bd1e93e563ccb9.tar.gz tor-320dcf65b7c8e382b27260a037bd1e93e563ccb9.zip |
Extract the crypto parts of circuit_package_relay_cell.
Diffstat (limited to 'src/or/relay.h')
-rw-r--r-- | src/or/relay.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/or/relay.h b/src/or/relay.h index f0fa7e9870..ff4d011f73 100644 --- a/src/or/relay.h +++ b/src/or/relay.h @@ -90,8 +90,12 @@ void circuit_clear_cell_queue(circuit_t *circ, channel_t *chan); void stream_choice_seed_weak_rng(void); -int relay_crypt(circuit_t *circ, cell_t *cell, cell_direction_t cell_direction, - crypt_path_t **layer_hint, char *recognized); +int relay_decrypt_cell(circuit_t *circ, cell_t *cell, + cell_direction_t cell_direction, + crypt_path_t **layer_hint, char *recognized); +void relay_encrypt_cell_outbound(cell_t *cell, origin_circuit_t *or_circ, + crypt_path_t *layer_hint); +void relay_encrypt_cell_inbound(cell_t *cell, or_circuit_t *or_circ); circid_t packed_cell_get_circid(const packed_cell_t *cell, int wide_circ_ids); |