![]() |
SX126x-Arduino
2.0.1
|
#include <stdlib.h>#include <stdint.h>#include "system/utilities.h"#include "system/crypto/aes.h"#include "system/crypto/cmac.h"#include "LoRaMacCrypto.h"Macros | |
| #define | LORAMAC_MIC_BLOCK_B0_SIZE 16 |
Functions | |
| void | LoRaMacComputeMic (const uint8_t *buffer, uint16_t size, const uint8_t *key, uint32_t address, uint8_t dir, uint32_t sequenceCounter, uint32_t *mic) |
| void | LoRaMacPayloadEncrypt (const uint8_t *buffer, uint16_t size, const uint8_t *key, uint32_t address, uint8_t dir, uint32_t sequenceCounter, uint8_t *encBuffer) |
| void | LoRaMacPayloadDecrypt (const uint8_t *buffer, uint16_t size, const uint8_t *key, uint32_t address, uint8_t dir, uint32_t sequenceCounter, uint8_t *decBuffer) |
| void | LoRaMacJoinComputeMic (const uint8_t *buffer, uint16_t size, const uint8_t *key, uint32_t *mic) |
| void | LoRaMacJoinDecrypt (const uint8_t *buffer, uint16_t size, const uint8_t *key, uint8_t *decBuffer) |
| void | LoRaMacJoinComputeSKeys (const uint8_t *key, const uint8_t *appNonce, uint16_t devNonce, uint8_t *nwkSKey, uint8_t *appSKey) |
Variables | |
| static uint8_t | MicBlockB0 [] |
| static uint8_t | Mic [16] |
| static uint8_t | aBlock [] |
| static uint8_t | sBlock [] |
| static lora_aes_context | AesContext |
| static AES_CMAC_CTX | AesCmacCtx [1] |
| #define LORAMAC_MIC_BLOCK_B0_SIZE 16 |
CMAC/AES Message Integrity Code (MIC) Block B0 size
|
static |
MIC field computation initial data
|
static |
Contains the computed MIC field.
|
static |
Encryption aBlock and sBlock
|
static |
|
static |
AES computation context variable
|
static |
CMAC computation context variable
1.8.18