Home
last modified time | relevance | path

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

12

/linux/lib/crypto/
H A Dchacha-block-generic.c25 x[0] += x[4]; x[12] = rol32(x[12] ^ x[0], 16); in chacha_permute()
26 x[1] += x[5]; x[13] = rol32(x[13] ^ x[1], 16); in chacha_permute()
27 x[2] += x[6]; x[14] = rol32(x[14] ^ x[2], 16); in chacha_permute()
28 x[3] += x[7]; x[15] = rol32(x[15] ^ x[3], 16); in chacha_permute()
30 x[8] += x[12]; x[4] = rol32(x[4] ^ x[8], 12); in chacha_permute()
31 x[9] += x[13]; x[5] = rol32(x[5] ^ x[9], 12); in chacha_permute()
32 x[10] += x[14]; x[6] = rol32(x[6] ^ x[10], 12); in chacha_permute()
33 x[11] += x[15]; x[7] = rol32(x[7] ^ x[11], 12); in chacha_permute()
35 x[0] += x[4]; x[12] = rol32(x[12] ^ x[0], 8); in chacha_permute()
36 x[1] += x[5]; x[13] = rol32(x[13] ^ x[1], 8); in chacha_permute()
[all …]
H A Dsm3.c43 ss1 = rol32((rol32((a), 12) + (e) + (t)), 7); \
44 ss2 = ss1 ^ rol32((a), 12); \
47 b = rol32((b), 9); \
48 f = rol32((f), 19); \
64 #define P0(x) ((x) ^ rol32((x), 9) ^ rol32((x), 17))
65 #define P1(x) ((x) ^ rol32((x), 15) ^ rol32((x), 23))
71 ^ rol32(W[(i-3) & 0x0f], 15)) \
72 ^ rol32(W[(i-13) & 0x0f], 7) \
H A Daes.c331 rol32(aes_enc_tab[(u8)(w[(i + 1) % 4] >> 8)], 8) ^ in enc_quarterround()
332 rol32(aes_enc_tab[(u8)(w[(i + 2) % 4] >> 16)], 16) ^ in enc_quarterround()
333 rol32(aes_enc_tab[(u8)(w[(i + 3) % 4] >> 24)], 24); in enc_quarterround()
388 rol32(aes_dec_tab[(u8)(w[(i + 3) % 4] >> 8)], 8) ^ in dec_quarterround()
389 rol32(aes_dec_tab[(u8)(w[(i + 2) % 4] >> 16)], 16) ^ in dec_quarterround()
390 rol32(aes_dec_tab[(u8)(w[(i + 1) % 4] >> 24)], 24); in dec_quarterround()
H A Dsha1.c59 #define SHA_MIX(t) rol32(W(t+13) ^ W(t+8) ^ W(t+2) ^ W(t), 1)
63 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/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 …]
H A Dbitops.h83 * rol32 - rotate a 32-bit value left
87 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() function
/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))
H A Dbitops.h124 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() function
/linux/crypto/
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 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)
/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/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/loongarch/include/asm/
H A Dchecksum.h33 return (__force __sum16)(~(tmp + rol32(tmp, 16)) >> 16); in csum_fold()
/linux/arch/powerpc/mm/book3s32/
H A Dmmu_context.c129 mtspr(SPRN_SDR1, rol32(__pa(next->pgd), 4) & 0xffff01ff); in switch_mmu_context()
/linux/arch/x86/include/asm/
H A Defi.h348 return ror64(rol32(status, 1), 1); in __efi64_widen_efi_status()
/linux/drivers/hwmon/
H A Dmlxreg-fan.c150 if (BIT(rol32(channel, tacho->shift) / fan->tachos_per_drwr) & in mlxreg_fan_read()

12