Contiki-NG
|
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... | |
Structure of CCM* drivers.
Definition at line 56 of file ccm-star.h.
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.
nonce | The nonce to use. CCM_STAR_NONCE_LENGTH bytes long. |
m | message to encrypt or decrypt. Up to 0xffff |
a | Additional authenticated data. Up to 0xfeff |
result | The generated MIC will be put here |
mic_len | The size of the MIC to be generated. <= 16. |
forward | != 0 if used in forward direction. |
Definition at line 73 of file ccm-star.h.
void(* ccm_star_driver::set_key) (const uint8_t *key) |
Sets the key in use.
Default implementation calls AES_128.set_key().
key | The key to use. |
Definition at line 62 of file ccm-star.h.