aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/cadet_protocol.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2015-04-27 19:14:00 +0000
committerBart Polot <bart@net.in.tum.de>2015-04-27 19:14:00 +0000
commitd00ca8d9b73b5c74b7659a2d254012c7e526280a (patch)
tree6320d589c5d3a15a64a584a96229608b049a8801 /src/cadet/cadet_protocol.h
parent728f4f354734161d5b90704c8468258100f46917 (diff)
downloadgnunet-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.h42
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 */
243struct 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 */
243struct GNUNET_CADET_ChannelCreate 285struct GNUNET_CADET_ChannelCreate