libgpac
Documentation of the core library of GPAC
tiny_aes.h File Reference
#include <gpac/setup.h>
+ Include dependency graph for tiny_aes.h:
+ This graph shows which files directly or indirectly include this file:

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
 

Functions

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

Data Structure Documentation

◆ AES_ctx

struct AES_ctx
Data Fields
u8 RoundKey[AES_keyExpSize]
u8 Iv[AES_BLOCKLEN]
u8 counter_pos
u8 buffer[AES_BLOCKLEN]

Macro Definition Documentation

◆ CBC

#define CBC   1

◆ ECB

#define ECB   1

◆ CTR

#define CTR   1

◆ AES128

#define AES128   1

◆ AES_BLOCKLEN

#define AES_BLOCKLEN   16

◆ AES_KEYLEN

#define AES_KEYLEN   16

◆ AES_keyExpSize

#define AES_keyExpSize   176

Function Documentation

◆ AES_init_ctx()

void AES_init_ctx ( struct AES_ctx ctx,
const u8 key 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AES_init_ctx_iv()

void AES_init_ctx_iv ( struct AES_ctx ctx,
const u8 key,
const u8 iv 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AES_ctx_set_iv()

void AES_ctx_set_iv ( struct AES_ctx ctx,
const u8 iv 
)
+ Here is the caller graph for this function:

◆ AES_ctx_get_iv()

void AES_ctx_get_iv ( struct AES_ctx ctx,
u8 iv 
)
+ Here is the caller graph for this function:

◆ AES_ECB_encrypt()

void AES_ECB_encrypt ( struct AES_ctx ctx,
const u8 buf 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AES_ECB_decrypt()

void AES_ECB_decrypt ( struct AES_ctx ctx,
const u8 buf 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AES_CBC_encrypt_buffer()

void AES_CBC_encrypt_buffer ( struct AES_ctx ctx,
u8 buf,
u32  length 
)
+ 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 ( struct AES_ctx ctx,
u8 buf,
u32  length 
)
+ 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 ( struct AES_ctx ctx,
u8 buf,
u32  length 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: