Struct of security operations. More...
Struct of security operations.
NULL
, or pointing to ieee802154_radio_cipher_ops, which does the same. Note that ieee802154_radio_cipher_ops is the default security operations driver assigned when ieee802154_sec_init is called. Definition at line 55 of file ieee802154_security.h.
#include <ieee802154_security.h>
Data Fields | |
void(* | set_key )(ieee802154_sec_dev_t *dev, const uint8_t *key, uint8_t key_size) |
Function to set the encryption key for the next cipher operation. | |
void(* | cbc )(const ieee802154_sec_dev_t *dev, uint8_t *cipher, uint8_t *iv, const uint8_t *plain, uint8_t nblocks) |
Function type to compute CBC-MAC. | |
void(* | ecb )(const ieee802154_sec_dev_t *dev, uint8_t *cipher, const uint8_t *plain, uint8_t nblocks) |
Function type to perform ECB encryption. | |
void(* ieee802154_radio_cipher_ops::cbc) (const ieee802154_sec_dev_t *dev, uint8_t *cipher, uint8_t *iv, const uint8_t *plain, uint8_t nblocks) |
Function type to compute CBC-MAC.
[in] | dev | Will be ieee802154_sec_context_t::ieee802154_sec_dev_t |
[in] | cipher | Output cipher blocks |
[in,out] | iv | in: IV; out: computed MIC |
[in] | plain | Input plain blocks |
[in] | nblocks | Number of blocks |
Definition at line 76 of file ieee802154_security.h.
void(* ieee802154_radio_cipher_ops::ecb) (const ieee802154_sec_dev_t *dev, uint8_t *cipher, const uint8_t *plain, uint8_t nblocks) |
Function type to perform ECB encryption.
[in] | dev | Will be ieee802154_sec_context_t::ieee802154_sec_dev_t |
[out] | cipher | Output cipher blocks |
[in] | plain | Input plain blocks |
[in] | nblocks | Number of blocks |
Definition at line 89 of file ieee802154_security.h.
void(* ieee802154_radio_cipher_ops::set_key) (ieee802154_sec_dev_t *dev, const uint8_t *key, uint8_t key_size) |
Function to set the encryption key for the next cipher operation.
[in] | dev | Will be ieee802154_sec_context_t::ieee802154_sec_dev_t |
[in] | key | Key to be used for the next cipher operation |
[in] | key_size | key size in bytes |
Definition at line 64 of file ieee802154_security.h.