GPAC
Open Source Multimedia Framework. For more information, check out http://gpac.wp.mines-telecom.fr
|
#include <gpac/internal/crypt_dev.h>
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 |
struct RI |
#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)) |
|
static |
void gf_crypt_register_rijndael_128 | ( | GF_Crypt * | td | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |