Loading...
Searching...
No Matches
ieee802154_radio_cipher_ops Struct Reference

Struct of security operations. More...

Detailed Description

Struct of security operations.

Note
A device can indicate that the fallback implementations should be used by setting the corresponding member to 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.
 

Field Documentation

◆ cbc

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.

Parameters
[in]devWill be ieee802154_sec_context_t::ieee802154_sec_dev_t
[in]cipherOutput cipher blocks
[in,out]ivin: IV; out: computed MIC
[in]plainInput plain blocks
[in]nblocksNumber of blocks

Definition at line 76 of file ieee802154_security.h.

◆ ecb

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.

Parameters
[in]devWill be ieee802154_sec_context_t::ieee802154_sec_dev_t
[out]cipherOutput cipher blocks
[in]plainInput plain blocks
[in]nblocksNumber of blocks

Definition at line 89 of file ieee802154_security.h.

◆ set_key

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.

Parameters
[in]devWill be ieee802154_sec_context_t::ieee802154_sec_dev_t
[in]keyKey to be used for the next cipher operation
[in]key_sizekey size in bytes

Definition at line 64 of file ieee802154_security.h.


The documentation for this struct was generated from the following file: