Home
last modified time | relevance | path

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

123

/openbmc/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); \
/openbmc/qemu/include/qemu/
H A Djhash.h36 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; \
47 c ^= b; c -= rol32(b, 14); \
48 a ^= c; a -= rol32(c, 11); \
49 b ^= a; b -= rol32(a, 25); \
50 c ^= b; c -= rol32(b, 16); \
51 a ^= c; a -= rol32(c, 4); \
52 b ^= a; b -= rol32(a, 14); \
[all …]
H A Dxxhash.h67 v1 = rol32(v1, 13); in qemu_xxhash8()
71 v2 = rol32(v2, 13); in qemu_xxhash8()
75 v3 = rol32(v3, 13); in qemu_xxhash8()
79 v4 = rol32(v4, 13); in qemu_xxhash8()
82 h32 = rol32(v1, 1) + rol32(v2, 7) + rol32(v3, 12) + rol32(v4, 18); in qemu_xxhash8()
86 h32 = rol32(h32, 17) * PRIME32_4; in qemu_xxhash8()
89 h32 = rol32(h32, 17) * PRIME32_4; in qemu_xxhash8()
92 h32 = rol32(h32, 17) * PRIME32_4; in qemu_xxhash8()
95 h32 = rol32(h32, 17) * PRIME32_4; in qemu_xxhash8()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_jhash.h14 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; \
24 c ^= b; c -= rol32(b, 14); \
25 a ^= c; a -= rol32(c, 11); \
26 b ^= a; b -= rol32(a, 25); \
27 c ^= b; c -= rol32(b, 16); \
28 a ^= c; a -= rol32(c, 4); \
29 b ^= a; b -= rol32(a, 14); \
[all …]
H A Dtest_l4lb_noinline.c30 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; \
40 c ^= b; c -= rol32(b, 14); \
41 a ^= c; a -= rol32(c, 11); \
42 b ^= a; b -= rol32(a, 25); \
43 c ^= b; c -= rol32(b, 16); \
44 a ^= c; a -= rol32(c, 4); \
45 b ^= a; b -= rol32(a, 14); \
[all …]
H A Dtest_l4lb.c34 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; \
44 c ^= b; c -= rol32(b, 14); \
45 a ^= c; a -= rol32(c, 11); \
46 b ^= a; b -= rol32(a, 25); \
47 c ^= b; c -= rol32(b, 16); \
48 a ^= c; a -= rol32(c, 4); \
49 b ^= a; b -= rol32(a, 14); \
[all …]
H A Dtest_l4lb_noinline_dynptr.c32 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; \
42 c ^= b; c -= rol32(b, 14); \
43 a ^= c; a -= rol32(c, 11); \
44 b ^= a; b -= rol32(a, 25); \
45 c ^= b; c -= rol32(b, 16); \
46 a ^= c; a -= rol32(c, 4); \
47 b ^= a; b -= rol32(a, 14); \
[all …]
H A Dtest_xdp_noinline.c29 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; \
39 c ^= b; c -= rol32(b, 14); \
40 a ^= c; a -= rol32(c, 11); \
41 b ^= a; b -= rol32(a, 25); \
42 c ^= b; c -= rol32(b, 16); \
43 a ^= c; a -= rol32(c, 4); \
44 b ^= a; b -= rol32(a, 14); \
[all …]
/openbmc/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 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 Dcamellia_generic.c416 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()
510 tr = subR[26] ^ rol32(dw, 1); in camellia_setup_tail()
519 tr = subR[23] ^ rol32(dw, 1); in camellia_setup_tail()
817 lr ^= rol32(t0, 1); \
[all …]
H A Dmichael_mic.c36 r ^= rol32(l, 17); \
40 r ^= rol32(l, 3); \
/openbmc/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; \
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); \
52 a ^= c; a -= rol32(c, 4); \
53 b ^= a; b -= rol32(a, 14); \
[all …]
/openbmc/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; \
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); \
52 a ^= c; a -= rol32(c, 4); \
53 b ^= a; b -= rol32(a, 14); \
[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))
/openbmc/linux/arch/x86/crypto/
H A 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 …]
/openbmc/qemu/target/riscv/
H A Dvcrypto_helper.c660 return x ^ rol32(x, 15) ^ rol32(x, 23); in p1()
666 return p1(m16 ^ m9 ^ rol32(m3, 15)) ^ rol32(m13, 7) ^ m6; in zvksh_w()
736 return x ^ rol32(x, 9) ^ rol32(x, 17); in p_0()
747 ss1 = rol32(rol32(vs1[0], 12) + vs1[4] + rol32(t_j(j), j % 32), 7); in sm3c()
752 vd[3] = rol32(vs1[1], 9); in sm3c()
756 vd[7] = rol32(vs1[5], 19); in sm3c()
760 ss1 = rol32(rol32(vd[1], 12) + vd[5] + rol32(t_j(j), j % 32), 7); in sm3c()
764 vd[2] = rol32(vs1[1], 9); in sm3c()
766 vd[6] = rol32(vs1[5], 19); in sm3c()
904 tmp[j + 4] = tmp[j] ^ (s ^ rol32(s, 13) ^ rol32(s, 23)); in HELPER()
[all …]
H A Dcrypto_helper.c51 mixed = rol32(mixed, shamt); in aes32_operation()
183 uint32_t rotl = rol32(x, shamt); in HELPER()
197 uint32_t rotl = rol32(x, shamt); in HELPER()
/openbmc/qemu/crypto/
H A Daes.c965 rol32(AES_mc_rot[st->b[swap_b ^ 0x1]], 8) ^ in aesenc_MC_swap()
966 rol32(AES_mc_rot[st->b[swap_b ^ 0x2]], 16) ^ in aesenc_MC_swap()
967 rol32(AES_mc_rot[st->b[swap_b ^ 0x3]], 24)); in aesenc_MC_swap()
974 rol32(AES_mc_rot[st->b[swap_b ^ 0x5]], 8) ^ in aesenc_MC_swap()
975 rol32(AES_mc_rot[st->b[swap_b ^ 0x6]], 16) ^ in aesenc_MC_swap()
976 rol32(AES_mc_rot[st->b[swap_b ^ 0x7]], 24)); in aesenc_MC_swap()
983 rol32(AES_mc_rot[st->b[swap_b ^ 0x9]], 8) ^ in aesenc_MC_swap()
984 rol32(AES_mc_rot[st->b[swap_b ^ 0xA]], 16) ^ in aesenc_MC_swap()
985 rol32(AES_mc_rot[st->b[swap_b ^ 0xB]], 24)); in aesenc_MC_swap()
992 rol32(AES_mc_rot[st->b[swap_b ^ 0xD]], 8) ^ in aesenc_MC_swap()
[all …]
/openbmc/qemu/target/arm/tcg/
H A Dcrypto_helper.c194 t += rol32(CR_ST_WORD(d, 0), 5) + CR_ST_WORD(n, 0) in crypto_sha1_3reg()
261 CR_ST_WORD(d, 0) = rol32(CR_ST_WORD(d, 0) ^ CR_ST_WORD(m, 1), 1); in HELPER()
262 CR_ST_WORD(d, 1) = rol32(CR_ST_WORD(d, 1) ^ CR_ST_WORD(m, 2), 1); in HELPER()
263 CR_ST_WORD(d, 2) = rol32(CR_ST_WORD(d, 2) ^ CR_ST_WORD(m, 3), 1); in HELPER()
264 CR_ST_WORD(d, 3) = rol32(CR_ST_WORD(d, 3) ^ CR_ST_WORD(d, 0), 1); in HELPER()
580 t ^= rol32(t, 9) ^ rol32(t, 17); in crypto_sm3tt()
619 CR_ST_WORD(d, i) ^= t ^ rol32(t, 2) ^ rol32(t, 10) ^ rol32(t, 18) ^ in do_crypto_sm4e()
620 rol32(t, 24); in do_crypto_sm4e()
653 CR_ST_WORD(d, i) ^= t ^ rol32(t, 13) ^ rol32(t, 23); in do_crypto_sm4ekey()
/openbmc/linux/fs/fscache/
H A Dmain.c43 y ^= x, x = rol32(x, 7),\
44 x += y, y = rol32(y,20),\
/openbmc/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()

123