Macros | |
#define | NETSTACK_AES_MICLEN 4 |
#define | NETSTACK_DECRYPT netstack_aes_decrypt |
#define | NETSTACK_ENCRYPT netstack_aes_encrypt |
#define | NETSTACK_ENCRYPTION_INIT netstack_aes_init |
#define | NETSTACK_VERIFY netstack_aes_verify |
Functions | |
int | netstack_aes_decrypt (void) |
int | netstack_aes_encrypt (void) |
void | netstack_aes_init (void) |
void | netstack_aes_set_active (int active) |
void | netstack_aes_set_key (const unsigned char *aes_key) |
void | netstack_aes_set_master_key (const unsigned char *aes_key) |
int | netstack_aes_verify (void) |
#define NETSTACK_AES_MICLEN 4 |
#define NETSTACK_DECRYPT netstack_aes_decrypt |
Referenced by input_packet(), and packet_input().
#define NETSTACK_ENCRYPT netstack_aes_encrypt |
Referenced by send_one_packet(), and send_packet().
#define NETSTACK_ENCRYPTION_INIT netstack_aes_init |
Referenced by netstack_init().
#define NETSTACK_VERIFY netstack_aes_verify |
int netstack_aes_decrypt | ( | void | ) |
References active, aes_ccm_decrypt(), AES_MICLEN, c, copy_packet(), HEADER_LENGTH, i, key, key_set, NONCE_LEN, packetbuf_clear(), packetbuf_dataptr(), packetbuf_totlen(), payload_tmp, printf, ret, and RIMESTATS_ADD.
int netstack_aes_encrypt | ( | void | ) |
References active, aes_ccm_encrypt(), AES_MICLEN, c, copy_packet(), HEADER_LENGTH, i, key, key_set, NONCE_LEN, packetbuf_clear(), packetbuf_compact(), packetbuf_hdrptr(), packetbuf_totlen(), payload_tmp, printf, and ret.
void netstack_aes_set_active | ( | int | active | ) |
References active.
Referenced by PROCESS_THREAD().
void netstack_aes_set_key | ( | const unsigned char * | aes_key | ) |
void netstack_aes_set_master_key | ( | const unsigned char * | aes_key | ) |
int netstack_aes_verify | ( | void | ) |
References aes_ccm_verify(), AES_MICLEN, c, HEADER_LENGTH, i, key, key_set, NONCE_LEN, packetbuf_dataptr(), packetbuf_totlen(), printf, and ret.