SX126x-Arduino  2.0.1
Data Structures | Macros | Typedefs | Functions
aes.h File Reference

Go to the source code of this file.

Data Structures

struct  lora_aes_context
 

Macros

#define AES_ENC_PREKEYED   /* AES encryption with a precomputed key schedule */
 
#define N_ROW   4
 
#define N_COL   4
 
#define N_BLOCK   (N_ROW * N_COL)
 
#define N_MAX_ROUNDS   14
 

Typedefs

typedef uint8_t return_type
 
typedef uint8_t length_type
 

Functions

return_type lora_aes_set_key (const uint8_t key[], length_type keylen, lora_aes_context ctx[1])
 
return_type lora_aes_encrypt (const uint8_t in[N_BLOCK], uint8_t out[N_BLOCK], const lora_aes_context ctx[1])
 
return_type lora_aes_cbc_encrypt (const uint8_t *in, uint8_t *out, int32_t n_block, uint8_t iv[N_BLOCK], const lora_aes_context ctx[1])
 

Macro Definition Documentation

◆ AES_ENC_PREKEYED

#define AES_ENC_PREKEYED   /* AES encryption with a precomputed key schedule */

◆ N_ROW

#define N_ROW   4

◆ N_COL

#define N_COL   4

◆ N_BLOCK

#define N_BLOCK   (N_ROW * N_COL)

◆ N_MAX_ROUNDS

#define N_MAX_ROUNDS   14

Typedef Documentation

◆ return_type

typedef uint8_t return_type

◆ length_type

typedef uint8_t length_type

Function Documentation

◆ lora_aes_set_key()

return_type lora_aes_set_key ( const uint8_t  key[],
length_type  keylen,
lora_aes_context  ctx[1] 
)

◆ lora_aes_encrypt()

return_type lora_aes_encrypt ( const uint8_t  in[N_BLOCK],
uint8_t  out[N_BLOCK],
const lora_aes_context  ctx[1] 
)

◆ lora_aes_cbc_encrypt()

return_type lora_aes_cbc_encrypt ( const uint8_t *  in,
uint8_t *  out,
int32_t  n_block,
uint8_t  iv[N_BLOCK],
const lora_aes_context  ctx[1] 
)