Home
last modified time | relevance | path

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

12

/linux/lib/crypto/
H A 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 …]
H A 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/tools/testing/selftests/bpf/progs/
H A 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 …]
H A 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 …]
H A 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 …]
H A Dtest_l4lb_noinline_dynptr.c22 static __always_inline __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 …]
H A Dtest_xdp_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 …]
/linux/crypto/
H A 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()
H A 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()
H A 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) \
H A 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 …]
H A 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)
H A Dmichael_mic.c36 r ^= rol32(l, 17); \
40 r ^= rol32(l, 3); \
H A Dtwofish_generic.c58 (d) = rol32((d), 1) ^ y
65 (c) = rol32((c), 1); \
H A 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/tools/include/linux/
H A 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/include/linux/
H A 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 …]
H A 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/tools/testing/selftests/vDSO/
H A Dvdso_test_chacha.c32 static uint32_t rol32(uint32_t word, unsigned int shift) in rol32() function
51 x[d] = rol32(x[d] ^ x[a], 16), \ in reference_chacha20_blocks()
53 x[b] = rol32(x[b] ^ x[c], 12), \ in reference_chacha20_blocks()
55 x[d] = rol32(x[d] ^ x[a], 8), \ in reference_chacha20_blocks()
57 x[b] = rol32(x[b] ^ x[c], 7)) in reference_chacha20_blocks()
/linux/fs/netfs/
H A Dfscache_main.c34 y ^= x, x = rol32(x, 7),\
35 x += y, y = rol32(y,20),\
/linux/net/mac80211/
H A Dmichael.c16 mctx->r ^= rol32(mctx->l, 17); in michael_block()
21 mctx->r ^= rol32(mctx->l, 3); in michael_block()
/linux/arch/powerpc/include/asm/
H A 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/arch/loongarch/include/asm/
H A Dchecksum.h31 return (__force __sum16)(~(tmp + rol32(tmp, 16)) >> 16); in csum_fold()
/linux/drivers/platform/mellanox/
H A Dmlxreg-io.c87 in_val = rol32(in_val, data->bit - 1) & data->mask; in mlxreg_io_get_reg()
102 *regval |= rol32(val, regsize * i * 8); in mlxreg_io_get_reg()
/linux/arch/powerpc/mm/book3s32/
H A Dmmu_context.c129 mtspr(SPRN_SDR1, rol32(__pa(next->pgd), 4) & 0xffff01ff); in switch_mmu_context()

12