Home
last modified time | relevance | path

Searched refs:z (Results 1 – 15 of 15) sorted by relevance

/crypto/
Dtea.c59 u32 y, z, n, sum = 0; in tea_encrypt() local
66 z = le32_to_cpu(in[1]); in tea_encrypt()
77 y += ((z << 4) + k0) ^ (z + sum) ^ ((z >> 5) + k1); in tea_encrypt()
78 z += ((y << 4) + k2) ^ (y + sum) ^ ((y >> 5) + k3); in tea_encrypt()
82 out[1] = cpu_to_le32(z); in tea_encrypt()
87 u32 y, z, n, sum; in tea_decrypt() local
94 z = le32_to_cpu(in[1]); in tea_decrypt()
106 z -= ((y << 4) + k2) ^ (y + sum) ^ ((y >> 5) + k3); in tea_decrypt()
107 y -= ((z << 4) + k0) ^ (z + sum) ^ ((z >> 5) + k1); in tea_decrypt()
112 out[1] = cpu_to_le32(z); in tea_decrypt()
[all …]
Dcast5_generic.c404 static void key_schedule(u32 *x, u32 *z, u32 *k) in key_schedule() argument
408 #define zi(i) ((z[(i)/4] >> (8*(3-((i)%4)))) & 0xff) in key_schedule()
410 z[0] = x[0] ^ s5[xi(13)] ^ s6[xi(15)] ^ s7[xi(12)] ^ sb8[xi(14)] ^ in key_schedule()
412 z[1] = x[2] ^ s5[zi(0)] ^ s6[zi(2)] ^ s7[zi(1)] ^ sb8[zi(3)] ^ in key_schedule()
414 z[2] = x[3] ^ s5[zi(7)] ^ s6[zi(6)] ^ s7[zi(5)] ^ sb8[zi(4)] ^ in key_schedule()
416 z[3] = x[1] ^ s5[zi(10)] ^ s6[zi(9)] ^ s7[zi(11)] ^ sb8[zi(8)] ^ in key_schedule()
426 x[0] = z[2] ^ s5[zi(5)] ^ s6[zi(7)] ^ s7[zi(4)] ^ sb8[zi(6)] ^ in key_schedule()
428 x[1] = z[0] ^ s5[xi(0)] ^ s6[xi(2)] ^ s7[xi(1)] ^ sb8[xi(3)] ^ in key_schedule()
430 x[2] = z[1] ^ s5[xi(7)] ^ s6[xi(6)] ^ s7[xi(5)] ^ sb8[xi(4)] ^ in key_schedule()
432 x[3] = z[3] ^ s5[xi(10)] ^ s6[xi(9)] ^ s7[xi(11)] ^ sb8[xi(8)] ^ in key_schedule()
[all …]
Decc.c1010 static void apply_z(u64 *x1, u64 *y1, u64 *z, u64 *curve_prime, in apply_z() argument
1015 vli_mod_square_fast(t1, z, curve_prime, ndigits); /* z^2 */ in apply_z()
1017 vli_mod_mult_fast(t1, t1, z, curve_prime, ndigits); /* z^3 */ in apply_z()
1026 u64 z[ECC_MAX_DIGITS]; in xycz_initial_double() local
1031 vli_clear(z, ndigits); in xycz_initial_double()
1032 z[0] = 1; in xycz_initial_double()
1035 vli_set(z, p_initial_z, ndigits); in xycz_initial_double()
1037 apply_z(x1, y1, z, curve_prime, ndigits); in xycz_initial_double()
1039 ecc_point_double_jacobian(x1, y1, z, curve_prime, ndigits); in xycz_initial_double()
1041 apply_z(x2, y2, z, curve_prime, ndigits); in xycz_initial_double()
[all …]
Dmd5.c32 #define F1(x, y, z) (z ^ (x & (y ^ z))) argument
33 #define F2(x, y, z) F1(z, x, y) argument
34 #define F3(x, y, z) (x ^ y ^ z) argument
35 #define F4(x, y, z) (y ^ (x | ~z)) argument
37 #define MD5STEP(f, w, x, y, z, in, s) \ argument
38 (w += f(x, y, z) + in, w = (w<<s | w>>(32-s)) + x)
Dstreebog_generic.c853 struct streebog_uint512 *z) in streebog_xor() argument
855 z->qword[0] = x->qword[0] ^ y->qword[0]; in streebog_xor()
856 z->qword[1] = x->qword[1] ^ y->qword[1]; in streebog_xor()
857 z->qword[2] = x->qword[2] ^ y->qword[2]; in streebog_xor()
858 z->qword[3] = x->qword[3] ^ y->qword[3]; in streebog_xor()
859 z->qword[4] = x->qword[4] ^ y->qword[4]; in streebog_xor()
860 z->qword[5] = x->qword[5] ^ y->qword[5]; in streebog_xor()
861 z->qword[6] = x->qword[6] ^ y->qword[6]; in streebog_xor()
862 z->qword[7] = x->qword[7] ^ y->qword[7]; in streebog_xor()
Dmd4.c48 static inline u32 F(u32 x, u32 y, u32 z) in F() argument
50 return (x & y) | ((~x) & z); in F()
53 static inline u32 G(u32 x, u32 y, u32 z) in G() argument
55 return (x & y) | (x & z) | (y & z); in G()
58 static inline u32 H(u32 x, u32 y, u32 z) in H() argument
60 return x ^ y ^ z; in H()
Dsha512_generic.c43 static inline u64 Ch(u64 x, u64 y, u64 z) in Ch() argument
45 return z ^ (x & (y ^ z)); in Ch()
48 static inline u64 Maj(u64 x, u64 y, u64 z) in Maj() argument
50 return (x & y) | (z & (x | y)); in Maj()
Drmd256.c35 #define F1(x, y, z) (x ^ y ^ z) /* XOR */ argument
36 #define F2(x, y, z) (z ^ (x & (y ^ z))) /* x ? y : z */ argument
37 #define F3(x, y, z) ((x | ~y) ^ z) argument
38 #define F4(x, y, z) (y ^ (z & (x ^ y))) /* z ? x : y */ argument
Drmd128.c35 #define F1(x, y, z) (x ^ y ^ z) /* XOR */ argument
36 #define F2(x, y, z) (z ^ (x & (y ^ z))) /* x ? y : z */ argument
37 #define F3(x, y, z) ((x | ~y) ^ z) argument
38 #define F4(x, y, z) (y ^ (z & (x ^ y))) /* z ? x : y */ argument
Drmd160.c37 #define F1(x, y, z) (x ^ y ^ z) /* XOR */ argument
38 #define F2(x, y, z) (z ^ (x & (y ^ z))) /* x ? y : z */ argument
39 #define F3(x, y, z) ((x | ~y) ^ z) argument
40 #define F4(x, y, z) (y ^ (z & (x ^ y))) /* z ? x : y */ argument
41 #define F5(x, y, z) (x ^ (y | ~z)) argument
Drmd320.c37 #define F1(x, y, z) (x ^ y ^ z) /* XOR */ argument
38 #define F2(x, y, z) (z ^ (x & (y ^ z))) /* x ? y : z */ argument
39 #define F3(x, y, z) ((x | ~y) ^ z) argument
40 #define F4(x, y, z) (y ^ (z & (x ^ y))) /* z ? x : y */ argument
41 #define F5(x, y, z) (x ^ (y | ~z)) argument
Dvmac.c230 u64 t1h, t1l, t2h, t2l, t3h, t3l, z = 0; \
242 ADD128(t2h, ah, z, t2l); \
248 ADD128(ah, al, z, t2h); \
361 u64 rh, rl, t, z = 0; in l3hash() local
369 ADD128(p1, p2, z, t); in l3hash()
388 ADD128(t, rl, z, rh); in l3hash()
390 ADD128(t, rl, z, rh); in l3hash()
Daegis128-neon-inner.c54 uint8x16_t z = {}; in aegis_aes_round() local
102 asm(AES_ROUND : "+w"(w) : "w"(z)); in aegis_aes_round()
Dtwofish_common.c468 #define CALC_S(a, b, c, d, i, w, x, y, z) \ argument
474 (d) ^= exp_to_poly[tmp + (z)]; \
Dsm2.c96 mpi_set_ui(ec->G->z, 1); in sm2_ec_ctx_init()
169 mpi_set_ui(result->z, 1); in sm2_ecc_os2ec()