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

Macros

#define MAX_KEY_SIZES   4
 

Typedefs

typedef struct _tag_crypt_stream GF_Crypt
 

Functions

GF_Cryptgf_crypt_open (const char *algorithm, const char *mode)
 
void gf_crypt_close (GF_Crypt *gfc)
 
GF_Err gf_crypt_set_state (GF_Crypt *gfc, const void *iv, int size)
 
GF_Err gf_crypt_get_state (GF_Crypt *gfc, void *iv, int *size)
 
Bool gf_crypt_is_block_algorithm (GF_Crypt *gfc)
 
Bool gf_crypt_is_block_algorithm_mode (GF_Crypt *gfc)
 
Bool gf_crypt_is_block_mode (GF_Crypt *gfc)
 
u32 gf_crypt_get_block_size (GF_Crypt *gfc)
 
u32 gf_crypt_get_key_size (GF_Crypt *gfc)
 
u32 gf_crypt_get_supported_key_sizes (GF_Crypt *gfc, u32 *key_sizes)
 
u32 gf_crypt_get_iv_size (GF_Crypt *gfc)
 
Bool gf_crypt_mode_has_iv (GF_Crypt *gfc)
 
const char * gf_crypt_get_algorithm_name (GF_Crypt *gfc)
 
u32 gf_crypt_get_algorithm_version (GF_Crypt *gfc)
 
const char * gf_crypt_get_mode_name (GF_Crypt *gfc)
 
u32 gf_crypt_get_mode_version (GF_Crypt *gfc)
 
GF_Err gf_crypt_init (GF_Crypt *gfc, void *key, u32 lenofkey, const void *IV)
 
void gf_crypt_deinit (GF_Crypt *gfc)
 
GF_Err gf_crypt_set_key (GF_Crypt *gfc, void *key, u32 keysize, const void *iv)
 
GF_Err gf_crypt_encrypt (GF_Crypt *gfc, void *plaintext, int len)
 
GF_Err gf_crypt_decrypt (GF_Crypt *gfc, void *ciphertext, int len)
 
u32 gf_crypt_str_get_algorithm_version (const char *algorithm)
 
u32 gf_crypt_str_get_mode_version (const char *mode)
 
Bool gf_crypt_str_is_block_algorithm (const char *algorithm)
 
Bool gf_crypt_str_is_block_algorithm_mode (const char *algorithm)
 
Bool gf_crypt_str_is_block_mode (const char *mode)
 
u32 gf_crypt_str_module_get_algo_block_size (const char *algorithm)
 
u32 gf_crypt_str_module_get_algo_key_size (const char *algorithm)
 
u32 gf_crypt_str_get_algo_supported_key_sizes (const char *algorithm, int *keys)
 

Macro Definition Documentation

#define MAX_KEY_SIZES   4

Typedef Documentation

typedef struct _tag_crypt_stream GF_Crypt

Function Documentation

GF_Crypt* gf_crypt_open ( const char *  algorithm,
const char *  mode 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_crypt_close ( GF_Crypt gfc)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_crypt_set_state ( GF_Crypt gfc,
const void *  iv,
int  size 
)

+ Here is the caller graph for this function:

GF_Err gf_crypt_get_state ( GF_Crypt gfc,
void *  iv,
int *  size 
)
Bool gf_crypt_is_block_algorithm ( GF_Crypt gfc)
Bool gf_crypt_is_block_algorithm_mode ( GF_Crypt gfc)
Bool gf_crypt_is_block_mode ( GF_Crypt gfc)
u32 gf_crypt_get_block_size ( GF_Crypt gfc)

+ Here is the caller graph for this function:

u32 gf_crypt_get_key_size ( GF_Crypt gfc)

+ Here is the caller graph for this function:

u32 gf_crypt_get_supported_key_sizes ( GF_Crypt gfc,
u32 key_sizes 
)

+ Here is the caller graph for this function:

u32 gf_crypt_get_iv_size ( GF_Crypt gfc)

+ Here is the caller graph for this function:

Bool gf_crypt_mode_has_iv ( GF_Crypt gfc)
const char* gf_crypt_get_algorithm_name ( GF_Crypt gfc)
u32 gf_crypt_get_algorithm_version ( GF_Crypt gfc)
const char* gf_crypt_get_mode_name ( GF_Crypt gfc)
u32 gf_crypt_get_mode_version ( GF_Crypt gfc)
GF_Err gf_crypt_init ( GF_Crypt gfc,
void *  key,
u32  lenofkey,
const void *  IV 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void gf_crypt_deinit ( GF_Crypt gfc)

+ Here is the call graph for this function:

GF_Err gf_crypt_set_key ( GF_Crypt gfc,
void *  key,
u32  keysize,
const void *  iv 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_crypt_encrypt ( GF_Crypt gfc,
void *  plaintext,
int  len 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

GF_Err gf_crypt_decrypt ( GF_Crypt gfc,
void *  ciphertext,
int  len 
)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

u32 gf_crypt_str_get_algorithm_version ( const char *  algorithm)

+ Here is the call graph for this function:

u32 gf_crypt_str_get_mode_version ( const char *  mode)

+ Here is the call graph for this function:

Bool gf_crypt_str_is_block_algorithm ( const char *  algorithm)

+ Here is the call graph for this function:

Bool gf_crypt_str_is_block_algorithm_mode ( const char *  algorithm)

+ Here is the call graph for this function:

Bool gf_crypt_str_is_block_mode ( const char *  mode)

+ Here is the call graph for this function:

u32 gf_crypt_str_module_get_algo_block_size ( const char *  algorithm)

+ Here is the call graph for this function:

u32 gf_crypt_str_module_get_algo_key_size ( const char *  algorithm)

+ Here is the call graph for this function:

u32 gf_crypt_str_get_algo_supported_key_sizes ( const char *  algorithm,
int *  keys 
)

+ Here is the call graph for this function: