GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
|
#include <gpac/internal/crypt_dev.h>
Data Structures | |
struct | CTR_BUFFER |
Functions | |
static void | increase_counter (u8 *x, int x_size) |
GF_Err | _init_mcrypt (void *buf, void *key, int lenofkey, void *IV, int size) |
GF_Err | _mcrypt_set_state (void *_buf, void *IV, int size) |
GF_Err | _mcrypt_get_state (void *buf, void *IV, int *size) |
void | _end_mcrypt (void *buf) |
static void | xor_stuff (CTR_BUFFER *buf, void *akey, void(*func)(void *, void *), u8 *plain, int blocksize, int xor_size) |
GF_Err | _mcrypt (void *buf, void *plaintext, int len, int blocksize, void *akey, void(*func)(void *, void *), void(*func2)(void *, void *)) |
GF_Err | _mdecrypt (void *buf, void *plaintext, int len, int blocksize, void *akey, void(*func)(void *, void *), void(*func2)(void *, void *)) |
void | gf_crypt_register_ctr (GF_Crypt *td) |
struct CTR_BUFFER |
|
static |
GF_Err _init_mcrypt | ( | void * | buf, |
void * | key, | ||
int | lenofkey, | ||
void * | IV, | ||
int | size | ||
) |
GF_Err _mcrypt_set_state | ( | void * | _buf, |
void * | IV, | ||
int | size | ||
) |
GF_Err _mcrypt_get_state | ( | void * | buf, |
void * | IV, | ||
int * | size | ||
) |
void _end_mcrypt | ( | void * | buf | ) |
|
static |
GF_Err _mcrypt | ( | void * | buf, |
void * | plaintext, | ||
int | len, | ||
int | blocksize, | ||
void * | akey, | ||
void(*)(void *, void *) | func, | ||
void(*)(void *, void *) | func2 | ||
) |
GF_Err _mdecrypt | ( | void * | buf, |
void * | plaintext, | ||
int | len, | ||
int | blocksize, | ||
void * | akey, | ||
void(*)(void *, void *) | func, | ||
void(*)(void *, void *) | func2 | ||
) |
void gf_crypt_register_ctr | ( | GF_Crypt * | td | ) |