libgpac
Documentation of the core library of GPAC
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules
crypt.h File Reference

Utility tools for encryption and decryption. More...

#include <gpac/tools.h>
+ Include dependency graph for crypt.h:
+ This graph shows which files directly or indirectly include this file:

Macros

#define GF_AES_128_KEYSIZE   16
 

Enumerations

enum  GF_CRYPTO_MODE { GF_CBC = 0 , GF_CTR = 1 , GF_ECB = 2 }
 
enum  GF_CRYPTO_ALGO { GF_AES_128 = 0 }
 

Functions

GF_Crypt * gf_crypt_open (GF_CRYPTO_ALGO algorithm, GF_CRYPTO_MODE mode)
 
void gf_crypt_close (GF_Crypt *gfc)
 
GF_Err gf_crypt_init (GF_Crypt *gfc, void *key, const void *iv)
 
GF_Err gf_crypt_set_key (GF_Crypt *gfc, void *key)
 
GF_Err gf_crypt_set_IV (GF_Crypt *gfc, const void *iv, u32 size)
 
GF_Err gf_crypt_get_IV (GF_Crypt *gfc, void *iv, u32 *size)
 
GF_Err gf_crypt_encrypt (GF_Crypt *gfc, void *plaintext, u32 size)
 
GF_Err gf_crypt_decrypt (GF_Crypt *gfc, void *ciphertext, u32 size)
 

Detailed Description

>