Home
last modified time | relevance | path

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

12

/linux/lib/crypto/
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 …]
A Dsm4.c78 return x ^ rol32(x, 13) ^ rol32(x, 23); in sm4_key_lin_sub()
83 return x ^ rol32(x, 2) ^ rol32(x, 10) ^ rol32(x, 18) ^ rol32(x, 24); in sm4_enc_lin_sub()
/linux/tools/testing/selftests/bpf/progs/
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 …]
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 …]
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 …]
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 …]
/linux/crypto/
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()
A Dsm3_generic.c31 return x ^ rol32(x, 9) ^ rol32(x, 17); in p0()
36 return x ^ rol32(x, 15) ^ rol32(x, 23); in p1()
64 tmp = w[i - 16] ^ w[i - 9] ^ rol32(w[i - 3], 15); in sm3_expand()
65 w[i] = p1(tmp) ^ (rol32(w[i - 13], 7)) ^ w[i - 6]; in sm3_expand()
92 ss1 = rol32((rol32(a, 12) + e + rol32(t(i), i & 31)), 7); in sm3_compress()
94 ss2 = ss1 ^ rol32(a, 12); in sm3_compress()
103 c = rol32(b, 9); in sm3_compress()
107 g = rol32(f, 19); in sm3_compress()
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 …]
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)
A Dmichael_mic.c36 r ^= rol32(l, 17); \
40 r ^= rol32(l, 3); \
A Dtwofish_generic.c58 (d) = rol32((d), 1) ^ y
65 (c) = rol32((c), 1); \
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/
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 …]
/linux/include/linux/
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 …]
A Dprandom.h47 v0 += v1, v1 = rol32(v1, 5), v2 += v3, v3 = rol32(v3, 8), \
48 v1 ^= v0, v0 = rol32(v0, 16), v3 ^= v2, \
49 v0 += v3, v3 = rol32(v3, 7), v2 += v1, v1 = rol32(v1, 13), \
50 v3 ^= v0, v1 ^= v2, v2 = rol32(v2, 16) \
/linux/arch/x86/crypto/
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 …]
/linux/lib/
A 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); \
/linux/net/mac80211/
A Dmichael.c16 mctx->r ^= rol32(mctx->l, 17); in michael_block()
21 mctx->r ^= rol32(mctx->l, 3); in michael_block()
/linux/drivers/i2c/busses/
A Di2c-mlxbf.c660 command |= rol32(len, MLXBF_I2C_MASTER_READ_SHIFT); in mlxbf_i2c_smbus_enable()
663 command |= rol32(len, MLXBF_I2C_MASTER_WRITE_SHIFT); in mlxbf_i2c_smbus_enable()
665 command |= rol32(slave, MLXBF_I2C_MASTER_SLV_ADDR_SHIFT); in mlxbf_i2c_smbus_enable()
666 command |= rol32(block_en, MLXBF_I2C_MASTER_PARSE_EXP_SHIFT); in mlxbf_i2c_smbus_enable()
667 command |= rol32(pec_en, MLXBF_I2C_MASTER_SEND_PEC_SHIFT); in mlxbf_i2c_smbus_enable()
1422 core_f = rol32(corepll_val, MLXBF_I2C_COREPLL_CORE_F_TYU_SHIFT) & in mlxbf_calculate_freq_from_tyu()
1424 core_od = rol32(corepll_val, MLXBF_I2C_COREPLL_CORE_OD_TYU_SHIFT) & in mlxbf_calculate_freq_from_tyu()
1426 core_r = rol32(corepll_val, MLXBF_I2C_COREPLL_CORE_R_TYU_SHIFT) & in mlxbf_calculate_freq_from_tyu()
1458 core_f = rol32(corepll_reg1_val, MLXBF_I2C_COREPLL_CORE_F_YU_SHIFT) & in mlxbf_calculate_freq_from_yu()
1921 control32 |= rol32(write_size, MLXBF_I2C_SLAVE_WRITE_BYTES_SHIFT); in mlxbf_smbus_irq_send()
[all …]
/linux/fs/fscache/
A Dmain.c108 y ^= x, x = rol32(x, 7),\
109 x += y, y = rol32(y,20),\
/linux/drivers/char/
A Drandom.c556 w = rol32(*bytes++, input_rotate); in _mix_pool_bytes()
619 b = rol32(b, 6); d = rol32(d, 27); in fast_mix()
623 b = rol32(b, 16); d = rol32(d, 14); in fast_mix()
627 b = rol32(b, 6); d = rol32(d, 27); in fast_mix()
631 b = rol32(b, 16); d = rol32(d, 14); in fast_mix()
1417 hash.w[2] ^= rol32(hash.w[2], 16); in extract_buf()
/linux/drivers/platform/mellanox/
A Dmlxreg-io.c86 in_val = rol32(in_val, data->bit - 1) & data->mask; in mlxreg_io_get_reg()
101 *regval |= rol32(val, regsize * i * 8); in mlxreg_io_get_reg()
/linux/drivers/leds/
A 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/arch/powerpc/mm/book3s32/
A Dmmu_context.c130 mtspr(SPRN_SDR1, rol32(__pa(next->pgd), 4) & 0xffff01ff); in switch_mmu_context()

Completed in 49 milliseconds

12