Home
last modified time | relevance | path

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

/crypto/
Dseed.c333 u32 i, t0, t1, x1, x2, x3, x4; in seed_set_key() local
335 x1 = be32_to_cpu(key[0]); in seed_set_key()
341 t0 = x1 + x3 - KC[i]; in seed_set_key()
349 t0 = x1; in seed_set_key()
350 x1 = (x1 >> 8) ^ (x2 << 24); in seed_set_key()
369 u32 x1, x2, x3, x4, t0, t1; in seed_encrypt() local
372 x1 = be32_to_cpu(src[0]); 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
43 x1 ^= k[4*(i)+1]; x0 ^= k[4*(i)+0]; \
46 #define LK(x0, x1, x2, x3, x4, i) ({ \ argument
48 x2 = rol32(x2, 3); x1 ^= x0; x4 = x0 << 3; \
[all …]
Decc.c947 static void ecc_point_double_jacobian(u64 *x1, u64 *y1, u64 *z1, in ecc_point_double_jacobian() argument
960 vli_mod_mult_fast(t5, x1, t4, curve_prime, ndigits); in ecc_point_double_jacobian()
969 vli_mod_add(x1, x1, z1, curve_prime, ndigits); in ecc_point_double_jacobian()
973 vli_mod_sub(z1, x1, z1, curve_prime, ndigits); in ecc_point_double_jacobian()
975 vli_mod_mult_fast(x1, x1, z1, curve_prime, ndigits); in ecc_point_double_jacobian()
978 vli_mod_add(z1, x1, x1, curve_prime, ndigits); in ecc_point_double_jacobian()
980 vli_mod_add(x1, x1, z1, curve_prime, ndigits); in ecc_point_double_jacobian()
981 if (vli_test_bit(x1, 0)) { in ecc_point_double_jacobian()
982 u64 carry = vli_add(x1, x1, curve_prime, ndigits); in ecc_point_double_jacobian()
984 vli_rshift1(x1, ndigits); in ecc_point_double_jacobian()
[all …]