libgpac
Documentation of the core library of GPAC
|
Utility tools for encryption and decryption. More...
#include <gpac/tools.h>
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) |
>