Lines Matching refs:x

200 #define V(a,b,c,d) 0x##a##b##c##d
204 #define V(a,b,c,d) 0x##b##c##d##a
208 #define V(a,b,c,d) 0x##c##d##a##b
212 #define V(a,b,c,d) 0x##d##a##b##c
327 #define V(a,b,c,d) 0x##a##b##c##d
331 #define V(a,b,c,d) 0x##b##c##d##a
335 #define V(a,b,c,d) 0x##c##d##a##b
339 #define V(a,b,c,d) 0x##d##a##b##c
383 #define ROTL8(x) ( ( x << 8 ) & 0xFFFFFFFF ) | ( x >> 24 ) argument
384 #define XTIME(x) ( ( x << 1 ) ^ ( ( x & 0x80 ) ? 0x1B : 0x00 ) ) argument
385 #define MUL(x,y) ( ( x && y ) ? pow[(log[x]+log[y]) % 255] : 0 ) argument
391 int i, x, y, z; in aes_gen_tables() local
398 for( i = 0, x = 1; i < 256; i++ ) in aes_gen_tables()
400 pow[i] = x; in aes_gen_tables()
401 log[x] = i; in aes_gen_tables()
402 x = ( x ^ XTIME( x ) ) & 0xFF; in aes_gen_tables()
408 for( i = 0, x = 1; i < 10; i++ ) in aes_gen_tables()
410 RCON[i] = (uint32_t) x; in aes_gen_tables()
411 x = XTIME( x ) & 0xFF; in aes_gen_tables()
422 x = pow[255 - log[i]]; in aes_gen_tables()
424 y = x; y = ( ( y << 1 ) | ( y >> 7 ) ) & 0xFF; in aes_gen_tables()
425 x ^= y; y = ( ( y << 1 ) | ( y >> 7 ) ) & 0xFF; in aes_gen_tables()
426 x ^= y; y = ( ( y << 1 ) | ( y >> 7 ) ) & 0xFF; in aes_gen_tables()
427 x ^= y; y = ( ( y << 1 ) | ( y >> 7 ) ) & 0xFF; in aes_gen_tables()
428 x ^= y ^ 0x63; in aes_gen_tables()
430 FSb[i] = (unsigned char) x; in aes_gen_tables()
431 RSb[x] = (unsigned char) i; in aes_gen_tables()
439 x = FSb[i]; in aes_gen_tables()
440 y = XTIME( x ) & 0xFF; in aes_gen_tables()
441 z = ( y ^ x ) & 0xFF; in aes_gen_tables()
444 ( (uint32_t) x << 8 ) ^ in aes_gen_tables()
445 ( (uint32_t) x << 16 ) ^ in aes_gen_tables()
452 x = RSb[i]; in aes_gen_tables()
454 RT0[i] = ( (uint32_t) MUL( 0x0E, x ) ) ^ in aes_gen_tables()
455 ( (uint32_t) MUL( 0x09, x ) << 8 ) ^ in aes_gen_tables()
456 ( (uint32_t) MUL( 0x0D, x ) << 16 ) ^ in aes_gen_tables()
457 ( (uint32_t) MUL( 0x0B, x ) << 24 ); in aes_gen_tables()