21 #ifndef TOR_HS_IDENT_H 22 #define TOR_HS_IDENT_H 24 #include "crypto_ed25519.h" 30 #define HS_REND_COOKIE_LEN DIGEST_LEN 34 HS_IDENT_CIRCUIT_INTRO = 1,
35 HS_IDENT_CIRCUIT_RENDEZVOUS = 2,
36 } hs_ident_circuit_type_t;
52 hs_ident_circuit_type_t circuit_type;
67 uint8_t rendezvous_cookie[HS_REND_COOKIE_LEN];
74 uint8_t rendezvous_handshake_info[CURVE25519_PUBKEY_LEN +
DIGEST256_LEN];
87 uint64_t num_rdv_streams;
120 hs_ident_circuit_type_t circuit_type);
122 #define hs_ident_circuit_free(id) \ 123 FREE_AND_NULL(hs_ident_circuit_t, hs_ident_circuit_free_, (id)) 129 #define hs_ident_dir_conn_free(id) \ 130 FREE_AND_NULL(hs_ident_dir_conn_t, hs_ident_dir_conn_free_, (id)) 139 #define hs_ident_edge_conn_free(id) \ 140 FREE_AND_NULL(hs_ident_edge_conn_t, hs_ident_edge_conn_free_, (id)) Header file containing common data for the whole HS subsytem.
Definition: hs_ident.h:93
Definition: crypto_ed25519.h:23
Definition: hs_ident.h:42
Definition: crypto_curve25519.h:38
#define DIGEST256_LEN
Definition: crypto_digest.h:25
Definition: crypto_curve25519.h:24
Definition: hs_ident.h:109