libgpac
Documentation of the core library of GPAC
crypt_tools.h File Reference

Utility tools for ISMA and Common Encryption. More...

#include <gpac/list.h>
#include <gpac/isomedia.h>
+ Include dependency graph for crypt_tools.h:

Data Structures

struct  GF_CryptKeyInfo
 
struct  GF_TrackCryptInfo
 
struct  GF_CryptInfo
 

Enumerations

enum  {
  GF_CRYPT_TYPE_ISMA = GF_4CC( 'i', 'A', 'E', 'C' ) , GF_CRYPT_TYPE_OMA = GF_4CC( 'o', 'd', 'k', 'm' ) , GF_CRYPT_TYPE_CENC = GF_4CC('c','e','n','c') , GF_CRYPT_TYPE_CBC1 = GF_4CC('c','b','c','1') ,
  GF_CRYPT_TYPE_CENS = GF_4CC('c','e','n','s') , GF_CRYPT_TYPE_CBCS = GF_4CC('c','b','c','s') , GF_CRYPT_TYPE_ADOBE = GF_4CC('a','d','k','m') , GF_CRYPT_TYPE_PIFF = GF_4CC('p','i','f','f') ,
  GF_CRYPT_TYPE_SAES = GF_4CC('s','a','e','s')
}
 
enum  {
  GF_CRYPT_SELENC_NONE = 0 , GF_CRYPT_SELENC_RAP , GF_CRYPT_SELENC_NON_RAP , GF_CRYPT_SELENC_RAND ,
  GF_CRYPT_SELENC_RAND_RANGE , GF_CRYPT_SELENC_RANGE , GF_CRYPT_SELENC_PREVIEW , GF_CRYPT_SELENC_CLEAR ,
  GF_CRYPT_SELENC_CLEAR_FORCED
}
 
enum  GF_KeyRollType {
  GF_KEYROLL_NONE = 0 , GF_KEYROLL_SAMPLES , GF_KEYROLL_SAPS , GF_KEYROLL_SEGMENTS ,
  GF_KEYROLL_PERIODS
}
 

Functions

GF_CryptInfogf_crypt_info_load (const char *file, GF_Err *out_err)
 
void gf_crypt_info_del (GF_CryptInfo *info)
 
GF_Err gf_decrypt_file (GF_ISOFile *infile, const char *drm_file, const char *outname, Double interleave_time, u32 fs_dump_flags)
 
GF_Err gf_decrypt_fragment (GF_ISOFile *infile, const char *drm_file, const char *dst_file, const char *frag_name, u32 fs_dump_flags)
 
GF_Err gf_crypt_file (GF_ISOFile *infile, const char *drm_file, const char *outname, Double interleave_time, u32 fs_dump_flags)
 
GF_Err gf_crypt_fragment (GF_ISOFile *infile, const char *drm_file, const char *dst_file, const char *frag_name, u32 fs_dump_flags)
 

Detailed Description

>