Lines Matching refs:t2

343 static inline void aria_sbox_layer1_with_pre_diff(u32 *t0, u32 *t1, u32 *t2,  in aria_sbox_layer1_with_pre_diff()  argument
354 *t2 = s1[get_u8(*t2, 0)] ^ in aria_sbox_layer1_with_pre_diff()
355 s2[get_u8(*t2, 1)] ^ in aria_sbox_layer1_with_pre_diff()
356 x1[get_u8(*t2, 2)] ^ in aria_sbox_layer1_with_pre_diff()
357 x2[get_u8(*t2, 3)]; in aria_sbox_layer1_with_pre_diff()
365 static inline void aria_sbox_layer2_with_pre_diff(u32 *t0, u32 *t1, u32 *t2, in aria_sbox_layer2_with_pre_diff() argument
376 *t2 = x1[get_u8(*t2, 0)] ^ in aria_sbox_layer2_with_pre_diff()
377 x2[get_u8(*t2, 1)] ^ in aria_sbox_layer2_with_pre_diff()
378 s1[get_u8(*t2, 2)] ^ in aria_sbox_layer2_with_pre_diff()
379 s2[get_u8(*t2, 3)]; in aria_sbox_layer2_with_pre_diff()
387 static inline void aria_diff_word(u32 *t0, u32 *t1, u32 *t2, u32 *t3) in aria_diff_word() argument
389 *t1 ^= *t2; in aria_diff_word()
390 *t2 ^= *t3; in aria_diff_word()
394 *t2 ^= *t0; in aria_diff_word()
395 *t1 ^= *t2; in aria_diff_word()
399 static inline void aria_diff_byte(u32 *t1, u32 *t2, u32 *t3) in aria_diff_byte() argument
402 *t2 = rotr32(*t2, 16); in aria_diff_byte()
407 static inline void aria_add_round_key(u32 *rk, u32 *t0, u32 *t1, u32 *t2, in aria_add_round_key() argument
412 *t2 ^= rk[2]; in aria_add_round_key()
416 static inline void aria_subst_diff_odd(u32 *t0, u32 *t1, u32 *t2, u32 *t3) in aria_subst_diff_odd() argument
418 aria_sbox_layer1_with_pre_diff(t0, t1, t2, t3); in aria_subst_diff_odd()
419 aria_diff_word(t0, t1, t2, t3); in aria_subst_diff_odd()
420 aria_diff_byte(t1, t2, t3); in aria_subst_diff_odd()
421 aria_diff_word(t0, t1, t2, t3); in aria_subst_diff_odd()
425 static inline void aria_subst_diff_even(u32 *t0, u32 *t1, u32 *t2, u32 *t3) in aria_subst_diff_even() argument
427 aria_sbox_layer2_with_pre_diff(t0, t1, t2, t3); in aria_subst_diff_even()
428 aria_diff_word(t0, t1, t2, t3); in aria_subst_diff_even()
430 aria_diff_word(t0, t1, t2, t3); in aria_subst_diff_even()