GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
ctr.c File Reference
+ Include dependency graph for ctr.c:

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)
 

Data Structure Documentation

struct CTR_BUFFER
+ Collaboration diagram for CTR_BUFFER:
Data Fields
u8 * enc_counter
u8 * c_counter
int c_counter_pos
int blocksize

Function Documentation

static void increase_counter ( u8 x,
int  x_size 
)
static

+ Here is the caller graph for this function:

GF_Err _init_mcrypt ( void *  buf,
void *  key,
int  lenofkey,
void *  IV,
int  size 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err _mcrypt_set_state ( void *  _buf,
void *  IV,
int  size 
)

+ Here is the caller graph for this function:

GF_Err _mcrypt_get_state ( void *  buf,
void *  IV,
int *  size 
)

+ Here is the caller graph for this function:

void _end_mcrypt ( void *  buf)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void xor_stuff ( CTR_BUFFER buf,
void *  akey,
void(*)(void *, void *)  func,
u8 plain,
int  blocksize,
int  xor_size 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err _mcrypt ( void *  buf,
void *  plaintext,
int  len,
int  blocksize,
void *  akey,
void(*)(void *, void *)  func,
void(*)(void *, void *)  func2 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err _mdecrypt ( void *  buf,
void *  plaintext,
int  len,
int  blocksize,
void *  akey,
void(*)(void *, void *)  func,
void(*)(void *, void *)  func2 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_crypt_register_ctr ( GF_Crypt td)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: