Home
last modified time | relevance | path

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

12

/linux-6.1.9/lib/crypto/
Dchacha.c24 x[0] += x[4]; x[12] = rol32(x[12] ^ x[0], 16); in chacha_permute()
25 x[1] += x[5]; x[13] = rol32(x[13] ^ x[1], 16); in chacha_permute()
26 x[2] += x[6]; x[14] = rol32(x[14] ^ x[2], 16); in chacha_permute()
27 x[3] += x[7]; x[15] = rol32(x[15] ^ x[3], 16); in chacha_permute()
29 x[8] += x[12]; x[4] = rol32(x[4] ^ x[8], 12); in chacha_permute()
30 x[9] += x[13]; x[5] = rol32(x[5] ^ x[9], 12); in chacha_permute()
31 x[10] += x[14]; x[6] = rol32(x[6] ^ x[10], 12); in chacha_permute()
32 x[11] += x[15]; x[7] = rol32(x[7] ^ x[11], 12); in chacha_permute()
34 x[0] += x[4]; x[12] = rol32(x[12] ^ x[0], 8); in chacha_permute()
35 x[1] += x[5]; x[13] = rol32(x[13] ^ x[1], 8); in chacha_permute()
[all …]
Dsha1.c55 #define SHA_MIX(t) rol32(W(t+13) ^ W(t+8) ^ W(t+2) ^ W(t), 1)
59 E += TEMP + rol32(A,5) + (fn) + (constant); \
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dtest_jhash.h7 static __always_inline u32 rol32(u32 word, unsigned int shift) in rol32() function
14 a -= c; a ^= rol32(c, 4); c += b; \
15 b -= a; b ^= rol32(a, 6); a += c; \
16 c -= b; c ^= rol32(b, 8); b += a; \
17 a -= c; a ^= rol32(c, 16); c += b; \
18 b -= a; b ^= rol32(a, 19); a += c; \
19 c -= b; c ^= rol32(b, 4); b += a; \
24 c ^= b; c -= rol32(b, 14); \
25 a ^= c; a -= rol32(c, 11); \
26 b ^= a; b -= rol32(a, 25); \
[all …]
Dtest_l4lb_noinline.c20 static __always_inline __u32 rol32(__u32 word, unsigned int shift) in rol32() function
30 a -= c; a ^= rol32(c, 4); c += b; \
31 b -= a; b ^= rol32(a, 6); a += c; \
32 c -= b; c ^= rol32(b, 8); b += a; \
33 a -= c; a ^= rol32(c, 16); c += b; \
34 b -= a; b ^= rol32(a, 19); a += c; \
35 c -= b; c ^= rol32(b, 4); b += a; \
40 c ^= b; c -= rol32(b, 14); \
41 a ^= c; a -= rol32(c, 11); \
42 b ^= a; b -= rol32(a, 25); \
[all …]
Dtest_l4lb.c24 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() function
34 a -= c; a ^= rol32(c, 4); c += b; \
35 b -= a; b ^= rol32(a, 6); a += c; \
36 c -= b; c ^= rol32(b, 8); b += a; \
37 a -= c; a ^= rol32(c, 16); c += b; \
38 b -= a; b ^= rol32(a, 19); a += c; \
39 c -= b; c ^= rol32(b, 4); b += a; \
44 c ^= b; c -= rol32(b, 14); \
45 a ^= c; a -= rol32(c, 11); \
46 b ^= a; b -= rol32(a, 25); \
[all …]
Dtest_xdp_noinline.c19 static __always_inline __u32 rol32(__u32 word, unsigned int shift) in rol32() function
29 a -= c; a ^= rol32(c, 4); c += b; \
30 b -= a; b ^= rol32(a, 6); a += c; \
31 c -= b; c ^= rol32(b, 8); b += a; \
32 a -= c; a ^= rol32(c, 16); c += b; \
33 b -= a; b ^= rol32(a, 19); a += c; \
34 c -= b; c ^= rol32(b, 4); b += a; \
39 c ^= b; c -= rol32(b, 14); \
40 a ^= c; a -= rol32(c, 11); \
41 b ^= a; b -= rol32(a, 25); \
[all …]
/linux-6.1.9/crypto/
Daegis.h68 d0 = t[s[ 0]] ^ rol32(t[s[ 5]], 8) ^ rol32(t[s[10]], 16) ^ rol32(t[s[15]], 24); in crypto_aegis_aesenc()
69 d1 = t[s[ 4]] ^ rol32(t[s[ 9]], 8) ^ rol32(t[s[14]], 16) ^ rol32(t[s[ 3]], 24); in crypto_aegis_aesenc()
70 d2 = t[s[ 8]] ^ rol32(t[s[13]], 8) ^ rol32(t[s[ 2]], 16) ^ rol32(t[s[ 7]], 24); in crypto_aegis_aesenc()
71 d3 = t[s[12]] ^ rol32(t[s[ 1]], 8) ^ rol32(t[s[ 6]], 16) ^ rol32(t[s[11]], 24); in crypto_aegis_aesenc()
Dsm4.c86 return x ^ rol32(x, 13) ^ rol32(x, 23); in sm4_key_lin_sub()
91 return x ^ rol32(x, 2) ^ rol32(x, 10) ^ rol32(x, 18) ^ rol32(x, 24); in sm4_enc_lin_sub()
Dsm3.c40 ss1 = rol32((rol32((a), 12) + (e) + (t)), 7); \
41 ss2 = ss1 ^ rol32((a), 12); \
44 b = rol32((b), 9); \
45 f = rol32((f), 19); \
61 #define P0(x) ((x) ^ rol32((x), 9) ^ rol32((x), 17))
62 #define P1(x) ((x) ^ rol32((x), 15) ^ rol32((x), 23))
68 ^ rol32(W[(i-3) & 0x0f], 15)) \
69 ^ rol32(W[(i-13) & 0x0f], 7) \
Dcamellia_generic.c371 subR[1] ^= rol32(dw, 1); /* modified for FLinv(kl2) */ in camellia_setup_tail()
380 subR[1] ^= rol32(dw, 1); /* modified for FLinv(kl4) */ in camellia_setup_tail()
396 subR[1] ^= rol32(dw, 1); /* modified for FLinv(kl6) */ in camellia_setup_tail()
416 kw4r ^= rol32(dw, 1); /* modified for FL(kl5) */ in camellia_setup_tail()
426 kw4r ^= rol32(dw, 1); /* modified for FL(kl3) */ in camellia_setup_tail()
435 kw4r ^= rol32(dw, 1); /* modified for FL(kl1) */ in camellia_setup_tail()
460 tr = subR[10] ^ rol32(dw, 1); in camellia_setup_tail()
469 tr = subR[7] ^ rol32(dw, 1); in camellia_setup_tail()
482 tr = subR[18] ^ rol32(dw, 1); in camellia_setup_tail()
491 tr = subR[15] ^ rol32(dw, 1); in camellia_setup_tail()
[all …]
Dtwofish_common.c538 y = rol32(y, 8); \
540 ctx->a[(j) + 1] = rol32(y, 9)
551 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)
Dmichael_mic.c36 r ^= rol32(l, 17); \
40 r ^= rol32(l, 3); \
Dtwofish_generic.c58 (d) = rol32((d), 1) ^ y
65 (c) = rol32((c), 1); \
Dcast6_generic.c27 #define F1(D, r, m) ((I = ((m) + (D))), (I = rol32(I, (r))), \
29 #define F2(D, r, m) ((I = ((m) ^ (D))), (I = rol32(I, (r))), \
31 #define F3(D, r, m) ((I = ((m) - (D))), (I = rol32(I, (r))), \
/linux-6.1.9/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.h85 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() function
/linux-6.1.9/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 …]
Dsiphash.h158 (a) += (b), (b) = rol32((b), 5), (b) ^= (a), (a) = rol32((a), 16), \
159 (c) += (d), (d) = rol32((d), 8), (d) ^= (c), \
160 (a) += (d), (d) = rol32((d), 7), (d) ^= (a), \
161 (c) += (b), (b) = rol32((b), 13), (b) ^= (c), (c) = rol32((c), 16))
/linux-6.1.9/arch/x86/crypto/
Dcamellia_glue.c813 subRL[1] ^= rol32(dw, 1); in camellia_setup_tail()
825 subRL[1] ^= rol32(dw, 1); in camellia_setup_tail()
844 subRL[1] ^= rol32(dw, 1); in camellia_setup_tail()
867 kw4 ^= rol32(dw, 1); in camellia_setup_tail()
880 kw4 ^= rol32(dw, 1); in camellia_setup_tail()
892 kw4 ^= rol32(dw, 1); in camellia_setup_tail()
913 tr = subRL[10] ^ rol32(dw, 1); in camellia_setup_tail()
922 tr = subRL[7] ^ rol32(dw, 1); in camellia_setup_tail()
933 tr = subRL[18] ^ rol32(dw, 1); in camellia_setup_tail()
942 tr = subRL[15] ^ rol32(dw, 1); in camellia_setup_tail()
[all …]
/linux-6.1.9/fs/fscache/
Dmain.c43 y ^= x, x = rol32(x, 7),\
44 x += y, y = rol32(y,20),\
/linux-6.1.9/net/mac80211/
Dmichael.c16 mctx->r ^= rol32(mctx->l, 17); in michael_block()
21 mctx->r ^= rol32(mctx->l, 3); in michael_block()
/linux-6.1.9/arch/powerpc/include/asm/
Dchecksum.h49 return (__force __sum16)(~(tmp + rol32(tmp, 16)) >> 16); in csum_fold()
119 return (__force __wsum)rol32((__force u32)sum, (offset & 1) << 3); in csum_shift()
/linux-6.1.9/drivers/platform/mellanox/
Dmlxreg-io.c88 in_val = rol32(in_val, data->bit - 1) & data->mask; in mlxreg_io_get_reg()
103 *regval |= rol32(val, regsize * i * 8); in mlxreg_io_get_reg()
/linux-6.1.9/drivers/leds/
Dleds-mlxreg.c86 nib = (ror32(data->mask, data->bit) == 0xf0) ? rol32(vset, data->bit) : in mlxreg_led_store_hw()
87 rol32(vset, data->bit + 4); in mlxreg_led_store_hw()
/linux-6.1.9/arch/powerpc/mm/book3s32/
Dmmu_context.c129 mtspr(SPRN_SDR1, rol32(__pa(next->pgd), 4) & 0xffff01ff); in switch_mmu_context()

12