Wirepas SDK
aes.h File Reference

Go to the source code of this file.

Functions

void AES_init_ctx (struct AES_ctx *ctx, const uint8_t *key)
 
void AES_init_ctx_iv (struct AES_ctx *ctx, const uint8_t *key, const uint8_t *iv)
 
void AES_ctx_set_iv (struct AES_ctx *ctx, const uint8_t *iv)
 
void AES_ECB_encrypt (struct AES_ctx *ctx, uint8_t *buf)
 
void AES_ECB_decrypt (struct AES_ctx *ctx, uint8_t *buf)
 
void AES_CBC_encrypt_buffer (struct AES_ctx *ctx, uint8_t *buf, uint32_t length)
 
void AES_CBC_decrypt_buffer (struct AES_ctx *ctx, uint8_t *buf, uint32_t length)
 
void AES_CTR_xcrypt_buffer (struct AES_ctx *ctx, uint8_t *buf, uint32_t length)
 

Data Structures

struct  AES_ctx
 

Macros

#define CBC   1
 
#define ECB   1
 
#define CTR   1
 
#define AES128   1
 
#define AES_BLOCKLEN   16
 
#define AES_KEYLEN   16
 
#define AES_keyExpSize   176
 

Function Documentation

◆ AES_CBC_decrypt_buffer()

void AES_CBC_decrypt_buffer ( struct AES_ctx ctx,
uint8_t *  buf,
uint32_t  length 
)

◆ AES_CBC_encrypt_buffer()

void AES_CBC_encrypt_buffer ( struct AES_ctx ctx,
uint8_t *  buf,
uint32_t  length 
)

◆ AES_CTR_xcrypt_buffer()

void AES_CTR_xcrypt_buffer ( struct AES_ctx ctx,
uint8_t *  buf,
uint32_t  length 
)

◆ AES_ctx_set_iv()

void AES_ctx_set_iv ( struct AES_ctx ctx,
const uint8_t *  iv 
)

◆ AES_ECB_decrypt()

void AES_ECB_decrypt ( struct AES_ctx ctx,
uint8_t *  buf 
)

◆ AES_ECB_encrypt()

void AES_ECB_encrypt ( struct AES_ctx ctx,
uint8_t *  buf 
)

◆ AES_init_ctx()

void AES_init_ctx ( struct AES_ctx ctx,
const uint8_t *  key 
)

◆ AES_init_ctx_iv()

void AES_init_ctx_iv ( struct AES_ctx ctx,
const uint8_t *  key,
const uint8_t *  iv 
)

Data Structure Documentation

◆ AES_ctx

struct AES_ctx

Definition at line 43 of file aes.h.

Data Fields
uint8_t Iv[16]
uint8_t RoundKey[176]

Macro Definition Documentation

◆ AES128

#define AES128   1

Definition at line 26 of file aes.h.

◆ AES_BLOCKLEN

#define AES_BLOCKLEN   16

Definition at line 30 of file aes.h.

◆ AES_keyExpSize

#define AES_keyExpSize   176

Definition at line 40 of file aes.h.

◆ AES_KEYLEN

#define AES_KEYLEN   16

Definition at line 39 of file aes.h.

◆ CBC

#define CBC   1

Definition at line 14 of file aes.h.

◆ CTR

#define CTR   1

Definition at line 22 of file aes.h.

◆ ECB

#define ECB   1

Definition at line 18 of file aes.h.