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
crypt_dev.h File Reference
#include <gpac/crypt.h>
+ Include dependency graph for crypt_dev.h:
+ This graph shows which files directly or indirectly include this file:

Data Structures

struct  GF_CryptStream
 

Macros

#define GPAC_CRYPT_ISMA_ONLY
 
#define rotl32(x, n)   (((x) << ((u32)(n))) | ((x) >> (32 - (u32)(n))))
 
#define rotr32(x, n)   (((x) >> ((u32)(n))) | ((x) << (32 - (u32)(n))))
 
#define rotl16(x, n)   (((x) << ((u16)(n))) | ((x) >> (16 - (u16)(n))))
 
#define rotr16(x, n)   (((x) >> ((u16)(n))) | ((x) << (16 - (u16)(n))))
 
#define byteswap32(x)   ((rotl32(x, 8) & 0x00ff00ff) | (rotr32(x, 8) & 0xff00ff00))
 
#define byteswap16(x)   ((rotl16(x, 8) & 0x00ff) | (rotr16(x, 8) & 0xff00))
 
#define Bzero(x, y)   memset(x, 0, y)
 

Typedefs

typedef void(* mcryptfunc )(void *, void *)
 
typedef GF_Err(* mcrypt_setkeystream )(void *, const void *, int, const void *, int)
 
typedef GF_Err(* mcrypt_setkeyblock )(void *, const void *, int)
 
typedef GF_Err(* mcrypt_docrypt )(void *, const void *, int)
 

Functions

void gf_crypt_register_cbc (GF_Crypt *td)
 
void gf_crypt_register_cfb (GF_Crypt *td)
 
void gf_crypt_register_ctr (GF_Crypt *td)
 
void gf_crypt_register_ecb (GF_Crypt *td)
 
void gf_crypt_register_ncfb (GF_Crypt *td)
 
void gf_crypt_register_nofb (GF_Crypt *td)
 
void gf_crypt_register_ofb (GF_Crypt *td)
 
void gf_crypt_register_stream (GF_Crypt *td)
 
void gf_crypt_register_des (GF_Crypt *td)
 
void gf_crypt_register_3des (GF_Crypt *td)
 
void gf_crypt_register_rijndael_128 (GF_Crypt *td)
 
void gf_crypt_register_rijndael_192 (GF_Crypt *td)
 
void gf_crypt_register_rijndael_256 (GF_Crypt *td)
 
static void memxor (unsigned char *o1, unsigned char *o2, int length)
 

Macro Definition Documentation

#define GPAC_CRYPT_ISMA_ONLY
#define rotl32 (   x,
 
)    (((x) << ((u32)(n))) | ((x) >> (32 - (u32)(n))))
#define rotr32 (   x,
 
)    (((x) >> ((u32)(n))) | ((x) << (32 - (u32)(n))))
#define rotl16 (   x,
 
)    (((x) << ((u16)(n))) | ((x) >> (16 - (u16)(n))))
#define rotr16 (   x,
 
)    (((x) >> ((u16)(n))) | ((x) << (16 - (u16)(n))))
#define byteswap32 (   x)    ((rotl32(x, 8) & 0x00ff00ff) | (rotr32(x, 8) & 0xff00ff00))
#define byteswap16 (   x)    ((rotl16(x, 8) & 0x00ff) | (rotr16(x, 8) & 0xff00))
#define Bzero (   x,
 
)    memset(x, 0, y)

Typedef Documentation

typedef void(* mcryptfunc)(void *, void *)
typedef GF_Err(* mcrypt_setkeystream)(void *, const void *, int, const void *, int)
typedef GF_Err(* mcrypt_setkeyblock)(void *, const void *, int)
typedef GF_Err(* mcrypt_docrypt)(void *, const void *, int)

Function Documentation

void gf_crypt_register_cbc ( GF_Crypt td)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_crypt_register_cfb ( GF_Crypt td)

+ 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:

void gf_crypt_register_ecb ( GF_Crypt td)

+ Here is the caller graph for this function:

void gf_crypt_register_ncfb ( GF_Crypt td)

+ Here is the caller graph for this function:

void gf_crypt_register_nofb ( GF_Crypt td)

+ Here is the caller graph for this function:

void gf_crypt_register_ofb ( GF_Crypt td)

+ Here is the caller graph for this function:

void gf_crypt_register_stream ( GF_Crypt td)

+ Here is the caller graph for this function:

void gf_crypt_register_des ( GF_Crypt td)

+ Here is the caller graph for this function:

void gf_crypt_register_3des ( GF_Crypt td)

+ Here is the caller graph for this function:

void gf_crypt_register_rijndael_128 ( GF_Crypt td)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_crypt_register_rijndael_192 ( GF_Crypt td)

+ Here is the caller graph for this function:

void gf_crypt_register_rijndael_256 ( GF_Crypt td)

+ Here is the caller graph for this function:

static void memxor ( unsigned char *  o1,
unsigned char *  o2,
int  length 
)
static

+ Here is the caller graph for this function: