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
rijndael-128.c File Reference
+ Include dependency graph for rijndael-128.c:

Data Structures

struct  RI
 

Macros

#define ROTL(x)   (((x)>>7)|((x)<<1))
 
#define ROTL8(x)   (((x)<<8)|((x)>>24))
 
#define ROTL16(x)   (((x)<<16)|((x)>>16))
 
#define ROTL24(x)   (((x)<<24)|((x)>>8))
 

Functions

static u32 pack (u8 *b)
 
static void unpack (u32 a, u8 *b)
 
static u8 xtime (u8 a)
 
static u8 bmul (u8 x, u8 y)
 
static u32 SubByte (u32 a)
 
static u8 product (u32 x, u32 y)
 
static u32 InvMixCol (u32 x)
 
static u8 ByteSub (u8 x)
 
static void _mcrypt_rijndael_gentables (void)
 
static int _mcrypt_set_key (RI *rinst, u8 *key, int nk)
 
static void _mcrypt_encrypt (RI *rinst, u8 *buff)
 
static void _mcrypt_decrypt (RI *rinst, u8 *buff)
 
void gf_crypt_register_rijndael_128 (GF_Crypt *td)
 

Variables

static u8 InCo [4] = { 0xB, 0xD, 0x9, 0xE }
 
static u8 fbsub [256]
 
static u8 rbsub [256]
 
static u8 ptab [256]
 
static u8 ltab [256]
 
static u32 ftable [256]
 
static u32 rtable [256]
 
static u32 rco [30]
 
static int tables_ok = 0
 

Data Structure Documentation

struct RI
+ Collaboration diagram for RI:
Data Fields
int Nk
int Nb
int Nr
u8 fi[24]
u8 ri[24]
u32 fkey[120]
u32 rkey[120]

Macro Definition Documentation

#define ROTL (   x)    (((x)>>7)|((x)<<1))
#define ROTL8 (   x)    (((x)<<8)|((x)>>24))
#define ROTL16 (   x)    (((x)<<16)|((x)>>16))
#define ROTL24 (   x)    (((x)<<24)|((x)>>8))

Function Documentation

static u32 pack ( u8 b)
static

+ Here is the caller graph for this function:

static void unpack ( u32  a,
u8 b 
)
static

+ Here is the caller graph for this function:

static u8 xtime ( u8  a)
static

+ Here is the caller graph for this function:

static u8 bmul ( u8  x,
u8  y 
)
static

+ Here is the caller graph for this function:

static u32 SubByte ( u32  a)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8 product ( u32  x,
u32  y 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u32 InvMixCol ( u32  x)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static u8 ByteSub ( u8  x)
static

+ Here is the caller graph for this function:

static void _mcrypt_rijndael_gentables ( void  )
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int _mcrypt_set_key ( RI rinst,
u8 key,
int  nk 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void _mcrypt_encrypt ( RI rinst,
u8 buff 
)
static

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static void _mcrypt_decrypt ( RI rinst,
u8 buff 
)
static

+ Here is the call graph for this function:

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

Variable Documentation

u8 InCo[4] = { 0xB, 0xD, 0x9, 0xE }
static
u8 fbsub[256]
static
u8 rbsub[256]
static
u8 ptab[256]
static
u8 ltab[256]
static
u32 ftable[256]
static
u32 rtable[256]
static
u32 rco[30]
static
int tables_ok = 0
static