aboutsummaryrefslogtreecommitdiff
path: root/src/core/crypto
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-12-16 13:05:01 -0500
committerNick Mathewson <nickm@torproject.org>2020-01-09 07:30:35 -0500
commit6a6486a7bf327753b5bd84f4f2c113e331e41c1f (patch)
treed3ffad1db4cd98377248ac02445a843fea1d2866 /src/core/crypto
parentd7b8377c28bf90dcaddfc273a59f95e9690cacda (diff)
downloadtor-6a6486a7bf327753b5bd84f4f2c113e331e41c1f.tar.gz
tor-6a6486a7bf327753b5bd84f4f2c113e331e41c1f.zip
hs_circuit: use struct declaration.
This frees us from a dependency on include order.
Diffstat (limited to 'src/core/crypto')
-rw-r--r--src/core/crypto/hs_ntor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/crypto/hs_ntor.h b/src/core/crypto/hs_ntor.h
index 5a70974a0c..e3bf006a4d 100644
--- a/src/core/crypto/hs_ntor.h
+++ b/src/core/crypto/hs_ntor.h
@@ -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