Contiki-NG
ccm_star_driver Struct Reference

Structure of CCM* drivers. More...

#include <os/lib/ccm-star.h>

Data Fields

void(* set_key )(const uint8_t *key)
 Sets the key in use. More...
 
void(* aead )(const uint8_t *nonce, uint8_t *m, uint16_t m_len, const uint8_t *a, uint16_t a_len, uint8_t *result, uint8_t mic_len, int forward)
 Combines authentication and encryption. More...
 

Detailed Description

Structure of CCM* drivers.

Definition at line 56 of file ccm-star.h.

Field Documentation

◆ aead

void(* ccm_star_driver::aead) (const uint8_t *nonce, uint8_t *m, uint16_t m_len, const uint8_t *a, uint16_t a_len, uint8_t *result, uint8_t mic_len, int forward)

Combines authentication and encryption.

Parameters
nonceThe nonce to use. CCM_STAR_NONCE_LENGTH bytes long.
mmessage to encrypt or decrypt. Up to 0xffff
aAdditional authenticated data. Up to 0xfeff
resultThe generated MIC will be put here
mic_lenThe size of the MIC to be generated. <= 16.
forward!= 0 if used in forward direction.

Definition at line 73 of file ccm-star.h.

◆ set_key

void(* ccm_star_driver::set_key) (const uint8_t *key)

Sets the key in use.

Default implementation calls AES_128.set_key().

Parameters
keyThe key to use.

Definition at line 62 of file ccm-star.h.