Contiki-NG
tsch-security.c File Reference

TSCH security. More...

#include "contiki.h"
#include "net/mac/tsch/tsch.h"
#include "net/mac/framer/frame802154.h"
#include "net/mac/framer/framer-802154.h"
#include "net/netstack.h"
#include "net/packetbuf.h"
#include "lib/ccm-star.h"
#include "lib/aes-128.h"
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Functions

unsigned int tsch_security_mic_len (const frame802154_t *frame)
 Return MIC length. More...
 
unsigned int tsch_security_secure_frame (uint8_t *hdr, uint8_t *outbuf, int hdrlen, int datalen, struct tsch_asn_t *asn)
 Protect a frame with encryption and/or MIC. More...
 
unsigned int tsch_security_parse_frame (const uint8_t *hdr, int hdrlen, int datalen, const frame802154_t *frame, const linkaddr_t *sender, struct tsch_asn_t *asn)
 Parse and check a frame protected with encryption and/or MIC. More...
 
void tsch_security_set_packetbuf_attr (uint8_t frame_type)
 Set packetbuf (or eackbuf) attributes depending on a given frame type. More...
 

Detailed Description

TSCH security.

Author
Simon Duquennoy simon.nosp@m.duq@.nosp@m.sics..nosp@m.se

Definition in file tsch-security.c.