diff options
author | Bart Polot <bart@net.in.tum.de> | 2015-04-27 19:14:00 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2015-04-27 19:14:00 +0000 |
commit | d00ca8d9b73b5c74b7659a2d254012c7e526280a (patch) | |
tree | 6320d589c5d3a15a64a584a96229608b049a8801 /src/cadet/cadet_protocol.h | |
parent | 728f4f354734161d5b90704c8468258100f46917 (diff) | |
download | gnunet-d00ca8d9b73b5c74b7659a2d254012c7e526280a.tar.gz gnunet-d00ca8d9b73b5c74b7659a2d254012c7e526280a.zip |
- added basic axolotl support
Diffstat (limited to 'src/cadet/cadet_protocol.h')
-rw-r--r-- | src/cadet/cadet_protocol.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/cadet/cadet_protocol.h b/src/cadet/cadet_protocol.h index dacf3d884..dc91af304 100644 --- a/src/cadet/cadet_protocol.h +++ b/src/cadet/cadet_protocol.h | |||
@@ -238,6 +238,48 @@ struct GNUNET_CADET_Encrypted | |||
238 | 238 | ||
239 | 239 | ||
240 | /** | 240 | /** |
241 | * Axolotl tunnel message. | ||
242 | */ | ||
243 | struct GNUNET_CADET_AX | ||
244 | { | ||
245 | /** | ||
246 | * Type: GNUNET_MESSAGE_TYPE_CADET_AXOLOTL_DATA | ||
247 | */ | ||
248 | struct GNUNET_MessageHeader header; | ||
249 | |||
250 | /** | ||
251 | * ID of the connection. | ||
252 | */ | ||
253 | struct GNUNET_CADET_Hash cid; | ||
254 | |||
255 | /** | ||
256 | * ID of the packet (hop by hop). | ||
257 | */ | ||
258 | uint32_t pid GNUNET_PACKED; | ||
259 | |||
260 | /** | ||
261 | * Number of hops to live. | ||
262 | */ | ||
263 | uint32_t ttl GNUNET_PACKED; | ||
264 | |||
265 | /** | ||
266 | * Initialization Vector for payload encryption. | ||
267 | */ | ||
268 | uint32_t iv GNUNET_PACKED; | ||
269 | |||
270 | /** | ||
271 | * MAC of the encrypted message, used to verify message integrity. | ||
272 | * Everything after this value will be encrypted and authenticated. | ||
273 | */ | ||
274 | struct GNUNET_CADET_Hash hmac; | ||
275 | |||
276 | /** | ||
277 | * Encrypted content follows. | ||
278 | */ | ||
279 | }; | ||
280 | |||
281 | |||
282 | /** | ||
241 | * Message to create a Channel. | 283 | * Message to create a Channel. |
242 | */ | 284 | */ |
243 | struct GNUNET_CADET_ChannelCreate | 285 | struct GNUNET_CADET_ChannelCreate |