drmstables.h File Reference

Go to the source code of this file.

Defines

#define AES_ROR(x, n)   (((x) << (32-(n))) | ((x) >> (n)))
#define AES_XOR_ROR(p_table, p_tmp)
#define AES_KEY_COUNT   10

Variables

static uint32_t const p_aes_table [10]
static uint32_t const p_aes_encrypt [256]
static uint32_t const p_aes_itable [256]
static uint32_t const p_aes_decrypt [256]
static uint16_t const p_shuffle_xor [256]
static uint16_t const p_shuffle_sub [256]
static uint16_t const p_shuffle_add [256]


Define Documentation

#define AES_KEY_COUNT   10

#define AES_ROR ( x,
 )     (((x) << (32-(n))) | ((x) >> (n)))

#define AES_XOR_ROR ( p_table,
p_tmp   ) 

Value:

( p_table[ (p_tmp[ t > 2 ? t - 3 : t + 1 ] >> 24) & 0xFF ] \
     ^ AES_ROR( p_table[ (p_tmp[ t > 1 ? t - 2 : t + 2 ] >> 16) & 0xFF ], 8 ) \
     ^ AES_ROR( p_table[ (p_tmp[ t > 0 ? t - 1 : t + 3 ] >> 8) & 0xFF ], 16 ) \
     ^ AES_ROR( p_table[ p_tmp[ t ] & 0xFF ], 24 ) )


Variable Documentation

uint32_t const p_aes_decrypt[256] [static]

uint32_t const p_aes_encrypt[256] [static]

uint32_t const p_aes_itable[256] [static]

uint32_t const p_aes_table[10] [static]

Initial value:

{
    0x00000001, 0x00000002, 0x00000004, 0x00000008, 0x00000010, 0x00000020,
    0x00000040, 0x00000080, 0x0000001b, 0x00000036
}

uint16_t const p_shuffle_add[256] [static]

uint16_t const p_shuffle_sub[256] [static]

uint16_t const p_shuffle_xor[256] [static]


Generated on Wed Aug 13 08:03:24 2008 for VLC by  doxygen 1.5.1