Tor  0.4.3.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 
9 void cpath_assert_layer_ok(const crypt_path_t *cp);
10 
11 void cpath_assert_ok(const crypt_path_t *cp);
12 
13 int 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 
19 void
20 cpath_free(crypt_path_t *victim);
21 
22 void cpath_extend_linked_list(crypt_path_t **head_ptr, crypt_path_t *new_hop);
23 
24 void
25 cpath_crypt_cell(const crypt_path_t *cpath, uint8_t *payload, bool is_decrypt);
26 
27 struct crypto_digest_t *
29 
31  bool is_foward_digest);
32 
33 void
35 
37 
38 void cpath_sendme_circuit_record_inbound_cell(crypt_path_t *cpath);
39 
40 uint8_t *cpath_get_sendme_digest(crypt_path_t *cpath);
41 
42 #if defined(TOR_UNIT_TESTS)
43 unsigned int cpath_get_n_hops(crypt_path_t **head_ptr);
44 #endif /* defined(TOR_UNIT_TESTS) */
45 
46 #endif /* !defined(CRYPT_PATH_H) */
void cpath_crypt_cell(const crypt_path_t *cpath, uint8_t *payload, bool is_decrypt)
Definition: crypt_path.c:181
Definition: cell_st.h:17
void cpath_set_cell_forward_digest(crypt_path_t *cpath, cell_t *cell)
Definition: crypt_path.c:200
void cpath_assert_ok(const crypt_path_t *cp)
Definition: crypt_path.c:83
void cpath_free(crypt_path_t *victim)
Definition: crypt_path.c:162
crypt_path_t * cpath_get_next_non_open_hop(crypt_path_t *cpath)
Definition: crypt_path.c:228
struct crypto_digest_t * cpath_get_incoming_digest(const crypt_path_t *cpath)
Definition: crypt_path.c:192
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:150
uint8_t * cpath_get_sendme_digest(crypt_path_t *cpath)
Definition: crypt_path.c:209
void cpath_extend_linked_list(crypt_path_t **head_ptr, crypt_path_t *new_hop)
Definition: crypt_path.c:44
void cpath_assert_layer_ok(const crypt_path_t *cp)
Definition: crypt_path.c:106
int cpath_append_hop(crypt_path_t **head_ptr, extend_info_t *choice)
Definition: crypt_path.c:61
void cpath_sendme_record_cell_digest(crypt_path_t *cpath, bool is_foward_digest)
Definition: crypt_path.c:217