Home
last modified time | relevance | path

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

/crypto/
A Dtea.c74 y += ((z << 4) + k0) ^ (z + sum) ^ ((z >> 5) + k1); in tea_encrypt()
84 u32 y, z, n, sum; in tea_decrypt() local
102 y -= ((z << 4) + k0) ^ (z + sum) ^ ((z >> 5) + k1); in tea_decrypt()
126 u32 y, z, sum = 0; in xtea_encrypt() local
134 y += ((z << 4 ^ z >> 5) + z) ^ (sum + ctx->KEY[sum&3]); in xtea_encrypt()
145 u32 y, z, sum; in xtea_decrypt() local
156 y -= ((z << 4 ^ z >> 5) + z) ^ (sum + ctx->KEY[sum & 3]); in xtea_decrypt()
166 u32 y, z, sum = 0; in xeta_encrypt() local
174 y += (z << 4 ^ z >> 5) + (z ^ sum) + ctx->KEY[sum&3]; in xeta_encrypt()
185 u32 y, z, sum; in xeta_decrypt() local
[all …]
A Dcast5_generic.c400 static void key_schedule(u32 *x, u32 *z, u32 *k) in key_schedule() argument
404 #define zi(i) ((z[(i)/4] >> (8*(3-((i)%4)))) & 0xff) in key_schedule()
408 z[1] = x[2] ^ s5[zi(0)] ^ s6[zi(2)] ^ s7[zi(1)] ^ sb8[zi(3)] ^ in key_schedule()
410 z[2] = x[3] ^ s5[zi(7)] ^ s6[zi(6)] ^ s7[zi(5)] ^ sb8[zi(4)] ^ in key_schedule()
422 x[0] = z[2] ^ s5[zi(5)] ^ s6[zi(7)] ^ s7[zi(4)] ^ sb8[zi(6)] ^ in key_schedule()
424 x[1] = z[0] ^ s5[xi(0)] ^ s6[xi(2)] ^ s7[xi(1)] ^ sb8[xi(3)] ^ in key_schedule()
426 x[2] = z[1] ^ s5[xi(7)] ^ s6[xi(6)] ^ s7[xi(5)] ^ sb8[xi(4)] ^ in key_schedule()
440 z[1] = x[2] ^ s5[zi(0)] ^ s6[zi(2)] ^ s7[zi(1)] ^ sb8[zi(3)] ^ in key_schedule()
480 u32 z[4]; in cast5_setkey() local
495 key_schedule(x, z, k); in cast5_setkey()
[all …]
A Dmd5.c30 #define F1(x, y, z) (z ^ (x & (y ^ z))) argument
31 #define F2(x, y, z) F1(z, x, y) argument
32 #define F3(x, y, z) (x ^ y ^ z) argument
33 #define F4(x, y, z) (y ^ (x | ~z)) argument
35 #define MD5STEP(f, w, x, y, z, in, s) \ argument
36 (w += f(x, y, z) + in, w = (w<<s | w>>(32-s)) + x)
A Decc.c1208 u64 z[ECC_MAX_DIGITS]; in xycz_initial_double() local
1215 z[0] = 1; in xycz_initial_double()
1370 vli_mod_mult_fast(z, z, ry[1 - nb], curve); in ecc_point_mult()
1372 vli_mod_mult_fast(z, z, point->x, curve); in ecc_point_mult()
1375 vli_mod_inv(z, z, curve_prime, point->ndigits); in ecc_point_mult()
1378 vli_mod_mult_fast(z, z, point->y, curve); in ecc_point_mult()
1380 vli_mod_mult_fast(z, z, rx[1 - nb], curve); in ecc_point_mult()
1407 vli_mod_inv(z, z, curve->p, ndigits); in ecc_point_add()
1446 z[0] = 1; in ecc_point_mult_shamir()
1463 vli_mod_mult_fast(z, z, tz, curve); in ecc_point_mult_shamir()
[all …]
A Dstreebog_generic.c854 struct streebog_uint512 *z) in streebog_xor() argument
856 z->qword[0] = x->qword[0] ^ y->qword[0]; in streebog_xor()
857 z->qword[1] = x->qword[1] ^ y->qword[1]; in streebog_xor()
858 z->qword[2] = x->qword[2] ^ y->qword[2]; in streebog_xor()
859 z->qword[3] = x->qword[3] ^ y->qword[3]; in streebog_xor()
860 z->qword[4] = x->qword[4] ^ y->qword[4]; in streebog_xor()
861 z->qword[5] = x->qword[5] ^ y->qword[5]; in streebog_xor()
862 z->qword[6] = x->qword[6] ^ y->qword[6]; in streebog_xor()
863 z->qword[7] = x->qword[7] ^ y->qword[7]; in streebog_xor()
A 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()
A Drmd160.c33 #define F1(x, y, z) (x ^ y ^ z) /* XOR */ argument
34 #define F2(x, y, z) (z ^ (x & (y ^ z))) /* x ? y : z */ argument
35 #define F3(x, y, z) ((x | ~y) ^ z) argument
36 #define F4(x, y, z) (y ^ (z & (x ^ y))) /* z ? x : y */ argument
37 #define F5(x, y, z) (x ^ (y | ~z)) argument
A Daegis128-neon-inner.c54 uint8x16_t z = {}; in aegis_aes_round() local
102 asm(AES_ROUND : "+w"(w) : "w"(z)); in aegis_aes_round()
A Dtwofish_common.c468 #define CALC_S(a, b, c, d, i, w, x, y, z) \ argument
474 (d) ^= exp_to_poly[tmp + (z)]; \

Completed in 22 milliseconds