From 320dcf65b7c8e382b27260a037bd1e93e563ccb9 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Sat, 17 Mar 2018 10:14:35 -0400 Subject: Extract the crypto parts of circuit_package_relay_cell. --- src/or/relay.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/or/relay.h') 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); -- cgit v1.2.3-54-g00ecf