Home
last modified time | relevance | path

Searched refs:rol32 (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v4.19/lib/
Dchacha20.c28 x[0] += x[4]; x[12] = rol32(x[12] ^ x[0], 16); in chacha20_block()
29 x[1] += x[5]; x[13] = rol32(x[13] ^ x[1], 16); in chacha20_block()
30 x[2] += x[6]; x[14] = rol32(x[14] ^ x[2], 16); in chacha20_block()
31 x[3] += x[7]; x[15] = rol32(x[15] ^ x[3], 16); in chacha20_block()
33 x[8] += x[12]; x[4] = rol32(x[4] ^ x[8], 12); in chacha20_block()
34 x[9] += x[13]; x[5] = rol32(x[5] ^ x[9], 12); in chacha20_block()
35 x[10] += x[14]; x[6] = rol32(x[6] ^ x[10], 12); in chacha20_block()
36 x[11] += x[15]; x[7] = rol32(x[7] ^ x[11], 12); in chacha20_block()
38 x[0] += x[4]; x[12] = rol32(x[12] ^ x[0], 8); in chacha20_block()
39 x[1] += x[5]; x[13] = rol32(x[13] ^ x[1], 8); in chacha20_block()
[all …]
Dsiphash.c394 v0 += v1; v1 = rol32(v1, 5); v1 ^= v0; v0 = rol32(v0, 16); \
395 v2 += v3; v3 = rol32(v3, 8); v3 ^= v2; \
396 v0 += v3; v3 = rol32(v3, 7); v3 ^= v0; \
397 v2 += v1; v1 = rol32(v1, 13); v1 ^= v2; v2 = rol32(v2, 16); \
Dsha1.c53 #define SHA_MIX(t) rol32(W(t+13) ^ W(t+8) ^ W(t+2) ^ W(t), 1)
57 E += TEMP + rol32(A,5) + (fn) + (constant); \
/Linux-v4.19/crypto/
Dsalsa20_generic.c43 x[ 4] ^= rol32((x[ 0] + x[12]), 7); in salsa20_block()
44 x[ 8] ^= rol32((x[ 4] + x[ 0]), 9); in salsa20_block()
45 x[12] ^= rol32((x[ 8] + x[ 4]), 13); in salsa20_block()
46 x[ 0] ^= rol32((x[12] + x[ 8]), 18); in salsa20_block()
47 x[ 9] ^= rol32((x[ 5] + x[ 1]), 7); in salsa20_block()
48 x[13] ^= rol32((x[ 9] + x[ 5]), 9); in salsa20_block()
49 x[ 1] ^= rol32((x[13] + x[ 9]), 13); in salsa20_block()
50 x[ 5] ^= rol32((x[ 1] + x[13]), 18); in salsa20_block()
51 x[14] ^= rol32((x[10] + x[ 6]), 7); in salsa20_block()
52 x[ 2] ^= rol32((x[14] + x[10]), 9); in salsa20_block()
[all …]
Dsm3_generic.c42 return x ^ rol32(x, 9) ^ rol32(x, 17); in p0()
47 return x ^ rol32(x, 15) ^ rol32(x, 23); in p1()
75 tmp = w[i - 16] ^ w[i - 9] ^ rol32(w[i - 3], 15); in sm3_expand()
76 w[i] = p1(tmp) ^ (rol32(w[i - 13], 7)) ^ w[i - 6]; in sm3_expand()
103 ss1 = rol32((rol32(a, 12) + e + rol32(t(i), i)), 7); in sm3_compress()
105 ss2 = ss1 ^ rol32(a, 12); in sm3_compress()
114 c = rol32(b, 9); in sm3_compress()
118 g = rol32(f, 19); in sm3_compress()
Dsm4_generic.c82 return x ^ rol32(x, 13) ^ rol32(x, 23); in sm4_key_lin_sub()
88 return x ^ rol32(x, 2) ^ rol32(x, 10) ^ rol32(x, 18) ^ rol32(x, 24); in sm4_enc_lin_sub()
Dcamellia_generic.c391 subR[1] ^= rol32(dw, 1); /* modified for FLinv(kl2) */ in camellia_setup_tail()
400 subR[1] ^= rol32(dw, 1); /* modified for FLinv(kl4) */ in camellia_setup_tail()
416 subR[1] ^= rol32(dw, 1); /* modified for FLinv(kl6) */ in camellia_setup_tail()
436 kw4r ^= rol32(dw, 1); /* modified for FL(kl5) */ in camellia_setup_tail()
446 kw4r ^= rol32(dw, 1); /* modified for FL(kl3) */ in camellia_setup_tail()
455 kw4r ^= rol32(dw, 1); /* modified for FL(kl1) */ in camellia_setup_tail()
480 tr = subR[10] ^ rol32(dw, 1); in camellia_setup_tail()
489 tr = subR[7] ^ rol32(dw, 1); in camellia_setup_tail()
502 tr = subR[18] ^ rol32(dw, 1); in camellia_setup_tail()
511 tr = subR[15] ^ rol32(dw, 1); in camellia_setup_tail()
[all …]
Dtwofish_common.c551 y = rol32(y, 8); \
553 ctx->a[(j) + 1] = rol32(y, 9)
564 y = rol32(y, 8); \
566 ctx->a[(j) + 1] = rol32(y, 9)
577 y = rol32(y, 8); \
579 ctx->a[(j) + 1] = rol32(y, 9)
Dmichael_mic.c39 r ^= rol32(l, 17); \
43 r ^= rol32(l, 3); \
Dtwofish_generic.c71 (d) = rol32((d), 1) ^ y
78 (c) = rol32((c), 1); \
Dcast6_generic.c34 #define F1(D, r, m) ((I = ((m) + (D))), (I = rol32(I, (r))), \
36 #define F2(D, r, m) ((I = ((m) ^ (D))), (I = rol32(I, (r))), \
38 #define F3(D, r, m) ((I = ((m) - (D))), (I = rol32(I, (r))), \
Dspeck.c152 *y = rol32(*y, 3); in speck64_round()
162 *x = rol32(*x, 8); in speck64_unround()
Dcast5_generic.c302 #define F1(D, m, r) ((I = ((m) + (D))), (I = rol32(I, (r))), \
304 #define F2(D, m, r) ((I = ((m) ^ (D))), (I = rol32(I, (r))), \
306 #define F3(D, m, r) ((I = ((m) - (D))), (I = rol32(I, (r))), \
Dserpent_generic.c34 ({ b ^= d; b ^= c; b ^= a; b ^= PHI ^ i; b = rol32(b, 11); k[j] = b; })
51 x0 = rol32(x0, 13);\
52 x2 = rol32(x2, 3); x1 ^= x0; x4 = x0 << 3; \
54 x1 = rol32(x1, 1); x3 ^= x4; \
55 x3 = rol32(x3, 7); x4 = x1; \
58 x1 ^= k[4*i+1]; x0 = rol32(x0, 5); x2 = rol32(x2, 22);\
/Linux-v4.19/tools/include/linux/
Djhash.h37 a -= c; a ^= rol32(c, 4); c += b; \
38 b -= a; b ^= rol32(a, 6); a += c; \
39 c -= b; c ^= rol32(b, 8); b += a; \
40 a -= c; a ^= rol32(c, 16); c += b; \
41 b -= a; b ^= rol32(a, 19); a += c; \
42 c -= b; c ^= rol32(b, 4); b += a; \
48 c ^= b; c -= rol32(b, 14); \
49 a ^= c; a -= rol32(c, 11); \
50 b ^= a; b -= rol32(a, 25); \
51 c ^= b; c -= rol32(b, 16); \
[all …]
Dbitops.h70 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() function
/Linux-v4.19/include/linux/
Djhash.h37 a -= c; a ^= rol32(c, 4); c += b; \
38 b -= a; b ^= rol32(a, 6); a += c; \
39 c -= b; c ^= rol32(b, 8); b += a; \
40 a -= c; a ^= rol32(c, 16); c += b; \
41 b -= a; b ^= rol32(a, 19); a += c; \
42 c -= b; c ^= rol32(b, 4); b += a; \
48 c ^= b; c -= rol32(b, 14); \
49 a ^= c; a -= rol32(c, 11); \
50 b ^= a; b -= rol32(a, 25); \
51 c ^= b; c -= rol32(b, 16); \
[all …]
/Linux-v4.19/tools/testing/selftests/bpf/
Dtest_l4lb_noinline.c22 static __u32 rol32(__u32 word, unsigned int shift) in rol32() function
32 a -= c; a ^= rol32(c, 4); c += b; \
33 b -= a; b ^= rol32(a, 6); a += c; \
34 c -= b; c ^= rol32(b, 8); b += a; \
35 a -= c; a ^= rol32(c, 16); c += b; \
36 b -= a; b ^= rol32(a, 19); a += c; \
37 c -= b; c ^= rol32(b, 4); b += a; \
42 c ^= b; c -= rol32(b, 14); \
43 a ^= c; a -= rol32(c, 11); \
44 b ^= a; b -= rol32(a, 25); \
[all …]
Dtest_l4lb.c26 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() function
36 a -= c; a ^= rol32(c, 4); c += b; \
37 b -= a; b ^= rol32(a, 6); a += c; \
38 c -= b; c ^= rol32(b, 8); b += a; \
39 a -= c; a ^= rol32(c, 16); c += b; \
40 b -= a; b ^= rol32(a, 19); a += c; \
41 c -= b; c ^= rol32(b, 4); b += a; \
46 c ^= b; c -= rol32(b, 14); \
47 a ^= c; a -= rol32(c, 11); \
48 b ^= a; b -= rol32(a, 25); \
[all …]
Dtest_xdp_noinline.c25 static __u32 rol32(__u32 word, unsigned int shift) in rol32() function
35 a -= c; a ^= rol32(c, 4); c += b; \
36 b -= a; b ^= rol32(a, 6); a += c; \
37 c -= b; c ^= rol32(b, 8); b += a; \
38 a -= c; a ^= rol32(c, 16); c += b; \
39 b -= a; b ^= rol32(a, 19); a += c; \
40 c -= b; c ^= rol32(b, 4); b += a; \
45 c ^= b; c -= rol32(b, 14); \
46 a ^= c; a -= rol32(c, 11); \
47 b ^= a; b -= rol32(a, 25); \
[all …]
/Linux-v4.19/arch/x86/crypto/
Dcamellia_glue.c829 subRL[1] ^= rol32(dw, 1); in camellia_setup_tail()
841 subRL[1] ^= rol32(dw, 1); in camellia_setup_tail()
860 subRL[1] ^= rol32(dw, 1); in camellia_setup_tail()
883 kw4 ^= rol32(dw, 1); in camellia_setup_tail()
896 kw4 ^= rol32(dw, 1); in camellia_setup_tail()
908 kw4 ^= rol32(dw, 1); in camellia_setup_tail()
929 tr = subRL[10] ^ rol32(dw, 1); in camellia_setup_tail()
938 tr = subRL[7] ^ rol32(dw, 1); in camellia_setup_tail()
949 tr = subRL[18] ^ rol32(dw, 1); in camellia_setup_tail()
958 tr = subRL[15] ^ rol32(dw, 1); in camellia_setup_tail()
[all …]
/Linux-v4.19/net/mac80211/
Dmichael.c19 mctx->r ^= rol32(mctx->l, 17); in michael_block()
24 mctx->r ^= rol32(mctx->l, 3); in michael_block()
/Linux-v4.19/drivers/staging/ks7010/
Dmichael_mic.c35 mic->r ^= rol32(mic->l, 17); in michael_block()
40 mic->r ^= rol32(mic->l, 3); in michael_block()
/Linux-v4.19/drivers/char/
Drandom.c541 w = rol32(*bytes++, input_rotate); in _mix_pool_bytes()
604 b = rol32(b, 6); d = rol32(d, 27); in fast_mix()
608 b = rol32(b, 16); d = rol32(d, 14); in fast_mix()
612 b = rol32(b, 6); d = rol32(d, 27); in fast_mix()
616 b = rol32(b, 16); d = rol32(d, 14); in fast_mix()
1471 hash.w[2] ^= rol32(hash.w[2], 16); in extract_buf()
/Linux-v4.19/drivers/leds/
Dleds-mlxreg.c84 nib = (ror32(data->mask, data->bit) == 0xf0) ? rol32(vset, data->bit) : in mlxreg_led_store_hw()
85 rol32(vset, data->bit + 4); in mlxreg_led_store_hw()

12