libgpac
Documentation of the core library of GPAC
g_crypt_tinyaes.c File Reference
#include <gpac/internal/crypt_dev.h>
#include "tiny_aes.h"
#include <math.h>
+ Include dependency graph for g_crypt_tinyaes.c:

Functions

GF_Err gf_crypt_init_tinyaes_cbc (GF_Crypt *td, void *key, const void *iv)
 
void gf_crypt_deinit_tinyaes_cbc (GF_Crypt *td)
 
void gf_set_key_tinyaes_cbc (GF_Crypt *td, void *key)
 
GF_Err gf_crypt_set_IV_tinyaes_cbc (GF_Crypt *td, const u8 *iv, u32 iv_size)
 
GF_Err gf_crypt_get_IV_tinyaes_cbc (GF_Crypt *td, u8 *iv, u32 *iv_size)
 
GF_Err gf_crypt_encrypt_tinyaes_cbc (GF_Crypt *td, u8 *plaintext, u32 len)
 
GF_Err gf_crypt_decrypt_tinyaes_cbc (GF_Crypt *td, u8 *ciphertext, u32 len)
 
void gf_set_key_tinyaes_ctr (GF_Crypt *td, void *key)
 
GF_Err gf_crypt_set_IV_tinyaes_ctr (GF_Crypt *td, const u8 *iv, u32 iv_size)
 
GF_Err gf_crypt_get_IV_tinyaes_ctr (GF_Crypt *td, u8 *iv, u32 *iv_size)
 
GF_Err gf_crypt_init_tinyaes_ctr (GF_Crypt *td, void *key, const void *iv)
 
void gf_crypt_deinit_tinyaes_ctr (GF_Crypt *td)
 
GF_Err gf_crypt_encrypt_tinyaes_ctr (GF_Crypt *td, u8 *plaintext, u32 len)
 
GF_Err gf_crypt_decrypt_tinyaes_ctr (GF_Crypt *td, u8 *ciphertext, u32 len)
 
GF_Err gf_crypt_init_tinyaes_ecb (GF_Crypt *td, void *key, const void *iv)
 
void gf_crypt_deinit_tinyaes_ecb (GF_Crypt *td)
 
void gf_set_key_tinyaes_ecb (GF_Crypt *td, void *key)
 
GF_Err gf_crypt_set_IV_tinyaes_ecb (GF_Crypt *td, const u8 *iv, u32 iv_size)
 
GF_Err gf_crypt_get_IV_tinyaes_ecb (GF_Crypt *td, u8 *iv, u32 *iv_size)
 
GF_Err gf_crypt_encrypt_tinyaes_ecb (GF_Crypt *td, u8 *plaintext, u32 len)
 
GF_Err gf_crypt_decrypt_tinyaes_ecb (GF_Crypt *td, u8 *ciphertext, u32 len)
 
GF_Err gf_crypt_open_open_tinyaes (GF_Crypt *td, GF_CRYPTO_MODE mode)
 

Function Documentation

◆ gf_crypt_init_tinyaes_cbc()

GF_Err gf_crypt_init_tinyaes_cbc ( GF_Crypt *  td,
void *  key,
const void *  iv 
)

CBC mode

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

◆ gf_crypt_deinit_tinyaes_cbc()

void gf_crypt_deinit_tinyaes_cbc ( GF_Crypt *  td)
+ Here is the caller graph for this function:

◆ gf_set_key_tinyaes_cbc()

void gf_set_key_tinyaes_cbc ( GF_Crypt *  td,
void *  key 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_crypt_set_IV_tinyaes_cbc()

GF_Err gf_crypt_set_IV_tinyaes_cbc ( GF_Crypt *  td,
const u8 iv,
u32  iv_size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_crypt_get_IV_tinyaes_cbc()

GF_Err gf_crypt_get_IV_tinyaes_cbc ( GF_Crypt *  td,
u8 iv,
u32 iv_size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_crypt_encrypt_tinyaes_cbc()

GF_Err gf_crypt_encrypt_tinyaes_cbc ( GF_Crypt *  td,
u8 plaintext,
u32  len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_crypt_decrypt_tinyaes_cbc()

GF_Err gf_crypt_decrypt_tinyaes_cbc ( GF_Crypt *  td,
u8 ciphertext,
u32  len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_set_key_tinyaes_ctr()

void gf_set_key_tinyaes_ctr ( GF_Crypt *  td,
void *  key 
)

CTR mode

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

◆ gf_crypt_set_IV_tinyaes_ctr()

GF_Err gf_crypt_set_IV_tinyaes_ctr ( GF_Crypt *  td,
const u8 iv,
u32  iv_size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_crypt_get_IV_tinyaes_ctr()

GF_Err gf_crypt_get_IV_tinyaes_ctr ( GF_Crypt *  td,
u8 iv,
u32 iv_size 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_crypt_init_tinyaes_ctr()

GF_Err gf_crypt_init_tinyaes_ctr ( GF_Crypt *  td,
void *  key,
const void *  iv 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_crypt_deinit_tinyaes_ctr()

void gf_crypt_deinit_tinyaes_ctr ( GF_Crypt *  td)
+ Here is the caller graph for this function:

◆ gf_crypt_encrypt_tinyaes_ctr()

GF_Err gf_crypt_encrypt_tinyaes_ctr ( GF_Crypt *  td,
u8 plaintext,
u32  len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_crypt_decrypt_tinyaes_ctr()

GF_Err gf_crypt_decrypt_tinyaes_ctr ( GF_Crypt *  td,
u8 ciphertext,
u32  len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_crypt_init_tinyaes_ecb()

GF_Err gf_crypt_init_tinyaes_ecb ( GF_Crypt *  td,
void *  key,
const void *  iv 
)

ECB mode

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

◆ gf_crypt_deinit_tinyaes_ecb()

void gf_crypt_deinit_tinyaes_ecb ( GF_Crypt *  td)
+ Here is the caller graph for this function:

◆ gf_set_key_tinyaes_ecb()

void gf_set_key_tinyaes_ecb ( GF_Crypt *  td,
void *  key 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_crypt_set_IV_tinyaes_ecb()

GF_Err gf_crypt_set_IV_tinyaes_ecb ( GF_Crypt *  td,
const u8 iv,
u32  iv_size 
)
+ Here is the caller graph for this function:

◆ gf_crypt_get_IV_tinyaes_ecb()

GF_Err gf_crypt_get_IV_tinyaes_ecb ( GF_Crypt *  td,
u8 iv,
u32 iv_size 
)
+ Here is the caller graph for this function:

◆ gf_crypt_encrypt_tinyaes_ecb()

GF_Err gf_crypt_encrypt_tinyaes_ecb ( GF_Crypt *  td,
u8 plaintext,
u32  len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_crypt_decrypt_tinyaes_ecb()

GF_Err gf_crypt_decrypt_tinyaes_ecb ( GF_Crypt *  td,
u8 ciphertext,
u32  len 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_crypt_open_open_tinyaes()

GF_Err gf_crypt_open_open_tinyaes ( GF_Crypt *  td,
GF_CRYPTO_MODE  mode 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function: