Network layer security interface.
Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | NWK_SECURITY_BLOCK_SIZE 16 |
#define | NWK_SECURITY_KEY_SIZE 16 |
#define | NWK_SECURITY_MIC_SIZE 4 |
Functions | |
void | NWK_SetSecurityKey (uint8_t *key) |
void | nwkSecurityInit (void) |
Initializes the Security module. More... | |
void | nwkSecurityProcess (NwkFrame_t *frame, bool encrypt) |
void | nwkSecurityTaskHandler (void) |
Security Module task handler. More... | |
#define NWK_SECURITY_BLOCK_SIZE 16 |
Referenced by SYS_EncryptConf().
#define NWK_SECURITY_KEY_SIZE 16 |
Referenced by NWK_SetSecurityKey().
#define NWK_SECURITY_MIC_SIZE 4 |
Referenced by nwkSecurityProcessMic(), and nwkSecurityStart().
void NWK_SetSecurityKey | ( | uint8_t * | key | ) |
References NwkIb_t::key, NWK_SECURITY_KEY_SIZE, and nwkIb.
void nwkSecurityInit | ( | void | ) |
void nwkSecurityProcess | ( | NwkFrame_t * | frame, |
bool | encrypt | ||
) |
References NWK_SECURITY_STATE_DECRYPT_PENDING, NWK_SECURITY_STATE_ENCRYPT_PENDING, nwkSecurityActiveFrames, and NwkFrame_t::state.
Referenced by nwkRxTaskHandler(), and nwkTxTaskHandler().
void nwkSecurityTaskHandler | ( | void | ) |
Security Module task handler.
References NwkIb_t::key, NWK_SECURITY_STATE_CONFIRM, NWK_SECURITY_STATE_DECRYPT_PENDING, NWK_SECURITY_STATE_ENCRYPT_PENDING, NWK_SECURITY_STATE_PROCESS, NWK_SECURITY_STATE_WAIT, nwkFrameNext(), nwkIb, nwkRxDecryptConf(), nwkSecurityActiveFrames, nwkSecurityEncrypt, nwkSecurityProcessMic(), nwkSecurityStart(), nwkSecurityVector, nwkTxEncryptConf(), NwkFrame_t::state, and SYS_EncryptReq().
Referenced by NWK_TaskHandler().