TinyAES++  v0.0.1-2438
C++ API for TinyAES
TinyAES.h File Reference
#include <stdint.h>
Include dependency graph for TinyAES.h:
This graph shows which files directly or indirectly include this file:

Macros

#define CBC   1
 
#define ECB   1
 
#define CTR   1
 
#define AES256   1
 

Functions

void AES_ECB_encrypt (const uint8_t *input, const uint8_t *key, uint8_t *output, const uint32_t length)
 
void AES_ECB_decrypt (const uint8_t *input, const uint8_t *key, uint8_t *output, const uint32_t length)
 
void AES_CBC_encrypt_buffer (uint8_t *output, uint8_t *input, uint32_t length, const uint8_t *key, const uint8_t *iv)
 
void AES_CBC_decrypt_buffer (uint8_t *output, uint8_t *input, uint32_t length, const uint8_t *key, const uint8_t *iv)
 
void AES_CTR_xcrypt_buffer (uint8_t *output, uint8_t *input, uint32_t length, const uint8_t *key, const uint8_t *nonce)
 

Macro Definition Documentation

◆ CBC

#define CBC   1

◆ ECB

#define ECB   1

◆ CTR

#define CTR   1

◆ AES256

#define AES256   1

Function Documentation

◆ AES_ECB_encrypt()

void AES_ECB_encrypt ( const uint8_t *  input,
const uint8_t *  key,
uint8_t *  output,
const uint32_t  length 
)

References Cipher(), Key, KeyExpansion(), and state.

Here is the call graph for this function:

◆ AES_ECB_decrypt()

void AES_ECB_decrypt ( const uint8_t *  input,
const uint8_t *  key,
uint8_t *  output,
const uint32_t  length 
)

References InvCipher(), Key, KeyExpansion(), and state.

Here is the call graph for this function:

◆ AES_CBC_encrypt_buffer()

void AES_CBC_encrypt_buffer ( uint8_t *  output,
uint8_t *  input,
uint32_t  length,
const uint8_t *  key,
const uint8_t *  iv 
)

References BLOCKLEN, Cipher(), Iv, Key, KeyExpansion(), state, and XorWithIv().

Referenced by TinyAES::cbc_encrypt().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AES_CBC_decrypt_buffer()

void AES_CBC_decrypt_buffer ( uint8_t *  output,
uint8_t *  input,
uint32_t  length,
const uint8_t *  key,
const uint8_t *  iv 
)

References BLOCKLEN, InvCipher(), Iv, Key, KeyExpansion(), state, and XorWithIv().

Referenced by TinyAES::cbc_decrypt().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ AES_CTR_xcrypt_buffer()

void AES_CTR_xcrypt_buffer ( uint8_t *  output,
uint8_t *  input,
uint32_t  length,
const uint8_t *  key,
const uint8_t *  nonce 
)

References BLOCKLEN, Cipher(), Key, KeyExpansion(), and state.

Here is the call graph for this function: