Home
last modified time | relevance | path

Searched refs:ror32 (Results 1 – 25 of 36) sorted by relevance

12

/openbmc/qemu/target/arm/tcg/
H A Dcrypto_helper.c199 CR_ST_WORD(d, 2) = ror32(CR_ST_WORD(d, 1), 2); in crypto_sha1_3reg()
245 CR_ST_WORD(m, 0) = ror32(CR_ST_WORD(m, 0), 2); in HELPER()
279 return ror32(x, 2) ^ ror32(x, 13) ^ ror32(x, 22); in S0()
284 return ror32(x, 6) ^ ror32(x, 11) ^ ror32(x, 25); in S1()
289 return ror32(x, 7) ^ ror32(x, 18) ^ (x >> 3); in s0()
294 return ror32(x, 17) ^ ror32(x, 19) ^ (x >> 10); in s1()
503 t = CR_ST_WORD(d, 0) ^ CR_ST_WORD(n, 0) ^ ror32(CR_ST_WORD(m, 1), 17); in HELPER()
504 CR_ST_WORD(d, 0) = t ^ ror32(t, 17) ^ ror32(t, 9); in HELPER()
506 t = CR_ST_WORD(d, 1) ^ CR_ST_WORD(n, 1) ^ ror32(CR_ST_WORD(m, 2), 17); in HELPER()
507 CR_ST_WORD(d, 1) = t ^ ror32(t, 17) ^ ror32(t, 9); in HELPER()
[all …]
/openbmc/linux/lib/crypto/
H A Dsha256.c49 #define e0(x) (ror32(x, 2) ^ ror32(x, 13) ^ ror32(x, 22))
50 #define e1(x) (ror32(x, 6) ^ ror32(x, 11) ^ ror32(x, 25))
51 #define s0(x) (ror32(x, 7) ^ ror32(x, 18) ^ (x >> 3))
52 #define s1(x) (ror32(x, 17) ^ ror32(x, 19) ^ (x >> 10))
H A Dblake2s-generic.c69 d = ror32(d ^ a, 16); \ in blake2s_compress_generic()
71 b = ror32(b ^ c, 12); \ in blake2s_compress_generic()
73 d = ror32(d ^ a, 8); \ in blake2s_compress_generic()
75 b = ror32(b ^ c, 7); \ in blake2s_compress_generic()
H A Daes.c120 u32 y = mul_by_x(x) ^ ror32(x, 16); in mix_columns()
122 return y ^ ror32(x ^ y, 8); in mix_columns()
144 return mix_columns(x ^ y ^ ror32(y, 16)); in inv_mix_columns()
205 rko[0] = ror32(subw(rki[kwords - 1]), 8) ^ rc ^ rki[0]; in aes_expandkey()
H A Dsha1.c60 B = ror32(B, 2); \
/openbmc/linux/fs/adfs/
H A Ddir_fplus.c89 dircheck = ror32(dircheck, 13) ^ le32_to_cpup(bp++); in adfs_fplus_checkbyte()
95 dircheck = ror32(dircheck, 13) ^ le32_to_cpu(t->bigdirendname); in adfs_fplus_checkbyte()
96 dircheck = ror32(dircheck, 13) ^ t->bigdirendmasseq; in adfs_fplus_checkbyte()
97 dircheck = ror32(dircheck, 13) ^ t->reserved[0]; in adfs_fplus_checkbyte()
98 dircheck = ror32(dircheck, 13) ^ t->reserved[1]; in adfs_fplus_checkbyte()
/openbmc/linux/drivers/leds/
H A Dleds-mlxreg.c85 nib = (ror32(data->mask, data->bit) == 0xf0) ? rol32(vset, data->bit) : in mlxreg_led_store_hw()
125 regval = (ror32(data->mask, data->bit) == 0xf0) ? ror32(regval, in mlxreg_led_get_hw()
126 data->bit) : ror32(regval, data->bit + 4); in mlxreg_led_get_hw()
/openbmc/qemu/target/riscv/
H A Dvcrypto_helper.c67 RVVCALL(OPIVV2, vror_vv_w, OP_UUU_W, H4, H4, H4, ror32) in RVVCALL()
76 RVVCALL(OPIVX2, vror_vx_w, OP_UUU_W, H4, H4, ror32) in RVVCALL()
330 tmp = ror32(rk[3], 8);
384 tmp = ror32(rk[7], 8); in HELPER()
412 return ror32(x, 7) ^ ror32(x, 18) ^ (x >> 3); in sig0_sha256()
417 return ror32(x, 17) ^ ror32(x, 19) ^ (x >> 10); in sig1_sha256()
493 return ror32(x, 2) ^ ror32(x, 13) ^ ror32(x, 22); in sum0_32()
503 return ror32(x, 6) ^ ror32(x, 11) ^ ror32(x, 25); in sum1_32()
H A Dcrypto_helper.c154 temp = ror32(temp, 8); /* Rotate right by 8 */ in HELPER()
/openbmc/linux/crypto/
H A Dtwofish_generic.c57 (c) = ror32((c), 1); \
64 (d) = ror32((d), 1); \
H A Dmichael_mic.c42 r ^= ror32(l, 2); \
H A Dserpent_generic.c55 x3 ^= k[4*i+3]; x0 = ror32(x0, 5); x2 = ror32(x2, 22);\
57 x4 <<= 7; x0 ^= x1; x1 = ror32(x1, 1); \
58 x2 ^= x4; x3 = ror32(x3, 7); x4 = x0 << 3; \
59 x1 ^= x0; x3 ^= x4; x0 = ror32(x0, 13);\
60 x1 ^= x2; x3 ^= x2; x2 = ror32(x2, 3); \
H A Dcamellia_generic.c350 yr = ror32(yr, 8); \
839 yr ^= ror32(il, 8) ^ ir; \
/openbmc/linux/include/linux/
H A Drandomize_kstack.h83 offset = ror32(offset, 5) ^ (rand); \
H A Dbitops.h135 static inline __u32 ror32(__u32 word, unsigned int shift) in ror32() function
/openbmc/linux/net/mac80211/
H A Dmichael.c23 mctx->r ^= ror32(mctx->l, 2); in michael_block()
/openbmc/linux/arch/arm64/crypto/
H A Daes-ce-glue.c102 rko[0] = ror32(__aes_ce_sub(rki[kwords - 1]), 8) ^ rcon[i] ^ rki[0]; in ce_aes_expandkey()
/openbmc/linux/include/net/
H A Dchecksum.h90 return (__force __wsum)ror32((__force u32)sum, 8); in csum_shift()
/openbmc/qemu/target/ppc/
H A Dint_helper.c2964 r->VsrW(i) = ror32(a->VsrW(i), 7) ^ in helper_vshasigmaw()
2965 ror32(a->VsrW(i), 18) ^ in helper_vshasigmaw()
2968 r->VsrW(i) = ror32(a->VsrW(i), 17) ^ in helper_vshasigmaw()
2969 ror32(a->VsrW(i), 19) ^ in helper_vshasigmaw()
2974 r->VsrW(i) = ror32(a->VsrW(i), 2) ^ in helper_vshasigmaw()
2975 ror32(a->VsrW(i), 13) ^ in helper_vshasigmaw()
2976 ror32(a->VsrW(i), 22); in helper_vshasigmaw()
2978 r->VsrW(i) = ror32(a->VsrW(i), 6) ^ in helper_vshasigmaw()
2979 ror32(a->VsrW(i), 11) ^ in helper_vshasigmaw()
2980 ror32(a->VsrW(i), 25); in helper_vshasigmaw()
/openbmc/linux/drivers/platform/mellanox/
H A Dmlxreg-io.c84 *regval = ror32(*regval & data->mask, (data->bit - 1)); in mlxreg_io_get_reg()
/openbmc/qemu/target/i386/
H A Dops_sse.h2605 #define SHA256_RNDS0(w) (ror32((w), 2) ^ ror32((w), 13) ^ ror32((w), 22))
2606 #define SHA256_RNDS1(w) (ror32((w), 6) ^ ror32((w), 11) ^ ror32((w), 25))
2607 #define SHA256_MSGS0(w) (ror32((w), 7) ^ ror32((w), 18) ^ ((w) >> 3))
2608 #define SHA256_MSGS1(w) (ror32((w), 17) ^ ror32((w), 19) ^ ((w) >> 10))
/openbmc/linux/arch/x86/crypto/
H A Ddes3_ede_glue.c270 tmp = ror32(ctx->enc.expkey[i + 1], 4); in des3_ede_x86_setkey()
/openbmc/linux/drivers/mmc/host/
H A Ddw_mmc-k3.c345 v = ror32(sample_flag, i); in dw_mci_get_best_clksmpl()
/openbmc/qemu/include/qemu/
H A Dbitops.h448 static inline uint32_t ror32(uint32_t word, unsigned int shift) in ror32() function
/openbmc/linux/arch/arm/kernel/
H A Dmodule.c261 offset = ror32(tmp & 0xff, (tmp & 0xf00) >> 7); in apply_relocate()

12