-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaes_inter.c
More file actions
38 lines (29 loc) · 1.25 KB
/
aes_inter.c
File metadata and controls
38 lines (29 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* AES-CCM Secure Multicast Intermediate Node
* Forwards encrypted multicast packets without decryption
* Maintains network routing while preserving end-to-end encryption
*/
#include "contiki.h"
#include "contiki-net.h"
#include "net/ipv6/multicast/uip-mcast6.h"
#include <stdio.h>
#define DEBUG DEBUG_PRINT
#include "net/ipv6/uip-debug.h"
#if !NETSTACK_CONF_WITH_IPV6 || !UIP_CONF_ROUTER || !UIP_IPV6_MULTICAST || !UIP_CONF_IPV6_RPL
#error "This example can not work with the current contiki configuration"
#endif
PROCESS(mcast_intermediate_process, "AES-CCM Secure Intermediate");
AUTOSTART_PROCESSES(&mcast_intermediate_process);
/*---------------------------------------------------------------------------*/
PROCESS_THREAD(mcast_intermediate_process, ev, data)
{
PROCESS_BEGIN();
PRINTF("=== AES-CCM Secure Multicast Intermediate ===\n");
PRINTF("Mode: Transparent encrypted packet forwarding\n");
PRINTF("Multicast Engine: '%s'\n", UIP_MCAST6.name);
PRINTF("Note: Packets forwarded without decryption (end-to-end security)\n");
/* Intermediate node just forwards encrypted packets
* No decryption needed - maintains end-to-end security */
PROCESS_END();
}
/*---------------------------------------------------------------------------*/