diff options
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 |