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 AES_KEY_COUNT 10 |
Referenced by DecryptAES(), and InitAES().
| #define AES_ROR | ( | x, | |||
| n | ) | (((x) << (32-(n))) | ((x) >> (n))) |
Referenced by InitAES().
| #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 ) )
Referenced by DecryptAES().
uint32_t const p_aes_decrypt[256] [static] |
Referenced by DecryptAES().
uint32_t const p_aes_encrypt[256] [static] |
Referenced by InitAES().
uint32_t const p_aes_itable[256] [static] |
Referenced by DecryptAES().
uint32_t const p_aes_table[10] [static] |
Initial value:
{
0x00000001, 0x00000002, 0x00000004, 0x00000008, 0x00000010, 0x00000020,
0x00000040, 0x00000080, 0x0000001b, 0x00000036
}
Referenced by InitAES().
uint16_t const p_shuffle_add[256] [static] |
Referenced by DoShuffle().
uint16_t const p_shuffle_sub[256] [static] |
Referenced by DoShuffle().
uint16_t const p_shuffle_xor[256] [static] |
Referenced by DoShuffle().
1.5.6