Home
last modified time | relevance | path

Searched refs:x2 (Results 1 – 3 of 3) sorted by relevance

/crypto/
Dseed.c333 u32 i, t0, t1, x1, x2, x3, x4; in seed_set_key() local
336 x2 = be32_to_cpu(key[1]); in seed_set_key()
342 t1 = x2 + KC[i] - x4; in seed_set_key()
350 x1 = (x1 >> 8) ^ (x2 << 24); in seed_set_key()
351 x2 = (x2 >> 8) ^ (t0 << 24); in seed_set_key()
369 u32 x1, x2, x3, x4, t0, t1; in seed_encrypt() local
373 x2 = be32_to_cpu(src[1]); in seed_encrypt()
377 OP(x1, x2, x3, x4, 0); in seed_encrypt()
378 OP(x3, x4, x1, x2, 2); in seed_encrypt()
379 OP(x1, x2, x3, x4, 4); in seed_encrypt()
[all …]
Dserpent_generic.c32 #define loadkeys(x0, x1, x2, x3, i) \ argument
33 ({ x0 = k[i]; x1 = k[i+1]; x2 = k[i+2]; x3 = k[i+3]; })
35 #define storekeys(x0, x1, x2, x3, i) \ argument
36 ({ k[i] = x0; k[i+1] = x1; k[i+2] = x2; k[i+3] = x3; })
38 #define store_and_load_keys(x0, x1, x2, x3, s, l) \ argument
39 ({ storekeys(x0, x1, x2, x3, s); loadkeys(x0, x1, x2, x3, l); })
41 #define K(x0, x1, x2, x3, i) ({ \ argument
42 x3 ^= k[4*(i)+3]; x2 ^= k[4*(i)+2]; \
46 #define LK(x0, x1, x2, x3, x4, i) ({ \ argument
48 x2 = rol32(x2, 3); x1 ^= x0; x4 = x0 << 3; \
[all …]
Decc.c1022 static void xycz_initial_double(u64 *x1, u64 *y1, u64 *x2, u64 *y2, in xycz_initial_double() argument
1028 vli_set(x2, x1, ndigits); in xycz_initial_double()
1041 apply_z(x2, y2, z, curve_prime, ndigits); in xycz_initial_double()
1048 static void xycz_add(u64 *x1, u64 *y1, u64 *x2, u64 *y2, u64 *curve_prime, in xycz_add() argument
1055 vli_mod_sub(t5, x2, x1, curve_prime, ndigits); in xycz_add()
1061 vli_mod_mult_fast(x2, x2, t5, curve_prime, ndigits); in xycz_add()
1070 vli_mod_sub(t5, t5, x2, curve_prime, ndigits); in xycz_add()
1072 vli_mod_sub(x2, x2, x1, curve_prime, ndigits); in xycz_add()
1074 vli_mod_mult_fast(y1, y1, x2, curve_prime, ndigits); in xycz_add()
1076 vli_mod_sub(x2, x1, t5, curve_prime, ndigits); in xycz_add()
[all …]