Tor 0.4.9.0-alpha-dev
crypt_path.h
Go to the documentation of this file.
1/**
2 * \file crypt_path.h
3 * \brief Header file for crypt_path.c.
4 **/
5
6#ifndef CRYPT_PATH_H
7#define CRYPT_PATH_H
8
10
11void cpath_assert_ok(const crypt_path_t *cp);
12
13int cpath_append_hop(crypt_path_t **head_ptr, extend_info_t *choice);
14
16 const char *key_data, size_t key_data_len,
17 int reverse, int is_hs_v3);
18
19void
21
22void cpath_extend_linked_list(crypt_path_t **head_ptr, crypt_path_t *new_hop);
23
24void
25cpath_crypt_cell(const crypt_path_t *cpath, uint8_t *payload, bool is_decrypt);
26
27struct crypto_digest_t *
29
31 bool is_foward_digest);
32
33void
35
37
38void cpath_sendme_circuit_record_inbound_cell(crypt_path_t *cpath);
39
41
42#if defined(TOR_UNIT_TESTS)
43unsigned int cpath_get_n_hops(crypt_path_t **head_ptr);
44#endif /* defined(TOR_UNIT_TESTS) */
45
46#endif /* !defined(CRYPT_PATH_H) */
crypt_path_t * cpath_get_next_non_open_hop(crypt_path_t *cpath)
Definition: crypt_path.c:227
int cpath_append_hop(crypt_path_t **head_ptr, extend_info_t *choice)
Definition: crypt_path.c:59
struct crypto_digest_t * cpath_get_incoming_digest(const crypt_path_t *cpath)
Definition: crypt_path.c:191
void cpath_assert_layer_ok(const crypt_path_t *cp)
Definition: crypt_path.c:104
int cpath_init_circuit_crypto(crypt_path_t *cpath, const char *key_data, size_t key_data_len, int reverse, int is_hs_v3)
Definition: crypt_path.c:148
void cpath_crypt_cell(const crypt_path_t *cpath, uint8_t *payload, bool is_decrypt)
Definition: crypt_path.c:180
void cpath_assert_ok(const crypt_path_t *cp)
Definition: crypt_path.c:81
void cpath_sendme_record_cell_digest(crypt_path_t *cpath, bool is_foward_digest)
Definition: crypt_path.c:216
void cpath_extend_linked_list(crypt_path_t **head_ptr, crypt_path_t *new_hop)
Definition: crypt_path.c:42
uint8_t * cpath_get_sendme_digest(crypt_path_t *cpath)
Definition: crypt_path.c:208
void cpath_set_cell_forward_digest(crypt_path_t *cpath, cell_t *cell)
Definition: crypt_path.c:199
void cpath_free(crypt_path_t *victim)
Definition: crypt_path.c:160
Definition: cell_st.h:17