mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
hs_circuit: use struct declaration.
This frees us from a dependency on include order.
This commit is contained in:
@@ -19,7 +19,7 @@ struct curve25519_keypair_t;
|
||||
(DIGEST256_LEN*2 + CIPHER256_KEY_LEN*2)
|
||||
|
||||
/* Key material needed to encode/decode INTRODUCE1 cells */
|
||||
typedef struct {
|
||||
typedef struct hs_ntor_intro_cell_keys_t {
|
||||
/* Key used for encryption of encrypted INTRODUCE1 blob */
|
||||
uint8_t enc_key[CIPHER256_KEY_LEN];
|
||||
/* MAC key used to protect encrypted INTRODUCE1 blob */
|
||||
@@ -27,7 +27,7 @@ typedef struct {
|
||||
} hs_ntor_intro_cell_keys_t;
|
||||
|
||||
/* Key material needed to encode/decode RENDEZVOUS1 cells */
|
||||
typedef struct {
|
||||
typedef struct hs_ntor_rend_cell_keys_t {
|
||||
/* This is the MAC of the HANDSHAKE_INFO field */
|
||||
uint8_t rend_cell_auth_mac[DIGEST256_LEN];
|
||||
/* This is the key seed used to derive further rendezvous crypto keys as
|
||||
|
||||
@@ -70,13 +70,14 @@ bool hs_circ_is_rend_sent_in_intro1(const origin_circuit_t *circ);
|
||||
|
||||
#ifdef HS_CIRCUIT_PRIVATE
|
||||
|
||||
struct hs_ntor_rend_cell_keys_t;
|
||||
|
||||
STATIC hs_ident_circuit_t *
|
||||
create_rp_circuit_identifier(const hs_service_t *service,
|
||||
const uint8_t *rendezvous_cookie,
|
||||
const curve25519_public_key_t *server_pk,
|
||||
const hs_ntor_rend_cell_keys_t *keys);
|
||||
const struct hs_ntor_rend_cell_keys_t *keys);
|
||||
|
||||
#endif /* defined(HS_CIRCUIT_PRIVATE) */
|
||||
|
||||
#endif /* !defined(TOR_HS_CIRCUIT_H) */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user