diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-04-27 19:14:55 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-04-27 19:14:55 +0000 |
commit | 631731a9fd4372553be5b32a67855d17ea57fbae (patch) | |
tree | 518d20457c3828a0dafa096ee516bc2ee129272e /src/cadet/cadet_protocol.h | |
parent | a4a55d676df04d3359cb5407afe157dce7f839ef (diff) | |
download | gnunet-631731a9fd4372553be5b32a67855d17ea57fbae.tar.gz gnunet-631731a9fd4372553be5b32a67855d17ea57fbae.zip |
- due to incompatibilities in the representation of the ECC public key for ECDH and EdDSA, peers must provide en explicit ECDH key and sign it with theis EdDSA ID.
Diffstat (limited to 'src/cadet/cadet_protocol.h')
-rw-r--r-- | src/cadet/cadet_protocol.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/cadet/cadet_protocol.h b/src/cadet/cadet_protocol.h index d866e20d3..ecc31a01d 100644 --- a/src/cadet/cadet_protocol.h +++ b/src/cadet/cadet_protocol.h | |||
@@ -122,14 +122,31 @@ struct GNUNET_CADET_AX_KX | |||
122 | struct GNUNET_MessageHeader header; | 122 | struct GNUNET_MessageHeader header; |
123 | 123 | ||
124 | /** | 124 | /** |
125 | * Sender's ephemeral public ECC key (always for NIST P-521) encoded in a | 125 | * An EdDSA signature of the permanent ECDH key with the Peer's ID key. |
126 | */ | ||
127 | struct GNUNET_CRYPTO_EddsaSignature signature; | ||
128 | |||
129 | /** | ||
130 | * Information about what is being signed (@a permanent_key). | ||
131 | */ | ||
132 | struct GNUNET_CRYPTO_EccSignaturePurpose purpose; | ||
133 | |||
134 | /** | ||
135 | * Sender's permanent_key public ECC key encoded in a | ||
136 | * format suitable for network transmission, as created | ||
137 | * using 'gcry_sexp_sprint'. | ||
138 | */ | ||
139 | struct GNUNET_CRYPTO_EcdhePublicKey permanent_key; | ||
140 | |||
141 | /** | ||
142 | * Sender's ephemeral public ECC key encoded in a | ||
126 | * format suitable for network transmission, as created | 143 | * format suitable for network transmission, as created |
127 | * using 'gcry_sexp_sprint'. | 144 | * using 'gcry_sexp_sprint'. |
128 | */ | 145 | */ |
129 | struct GNUNET_CRYPTO_EcdhePublicKey ephemeral_key; | 146 | struct GNUNET_CRYPTO_EcdhePublicKey ephemeral_key; |
130 | 147 | ||
131 | /** | 148 | /** |
132 | * Sender's next ephemeral public ECC key (always for NIST P-521) encoded in a | 149 | * Sender's next ephemeral public ECC key encoded in a |
133 | * format suitable for network transmission, as created | 150 | * format suitable for network transmission, as created |
134 | * using 'gcry_sexp_sprint'. | 151 | * using 'gcry_sexp_sprint'. |
135 | */ | 152 | */ |