Lines Matching +full:3 +full:v3
1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)
8 * and HalfSipHash1-3/SipHash1-3 for an insecure PRF only suitable for
20 #define SIPROUND SIPHASH_PERMUTATION(v0, v1, v2, v3)
26 u64 v3 = SIPHASH_CONST_3; \
28 v3 ^= key->key[1]; \
34 v3 ^= b; \
43 return (v0 ^ v1) ^ (v2 ^ v3);
54 v3 ^= m; in __siphash_aligned()
69 case 3: b |= ((u64)end[2]) << 16; fallthrough; in __siphash_aligned()
87 v3 ^= m; in __siphash_unaligned()
102 case 3: b |= ((u64)end[2]) << 16; fallthrough; in __siphash_unaligned()
119 v3 ^= first; in siphash_1u64()
136 v3 ^= first; in siphash_2u64()
140 v3 ^= second; in siphash_2u64()
149 * siphash_3u64 - compute 64-bit siphash PRF value of 3 u64
159 v3 ^= first; in siphash_3u64()
163 v3 ^= second; in siphash_3u64()
167 v3 ^= third; in siphash_3u64()
187 v3 ^= first; in siphash_4u64()
191 v3 ^= second; in siphash_4u64()
195 v3 ^= third; in siphash_4u64()
199 v3 ^= forth; in siphash_4u64()
220 v3 ^= combined; in siphash_3u32()
230 /* Note that on 64-bit, we make HalfSipHash1-3 actually be SipHash1-3, for
231 * performance reasons. On 32-bit, below, we actually implement HalfSipHash1-3.
237 v3 ^= b; \
244 return (v0 ^ v1) ^ (v2 ^ v3);
255 v3 ^= m; in __hsiphash_aligned()
269 case 3: b |= ((u64)end[2]) << 16; fallthrough; in __hsiphash_aligned()
288 v3 ^= m; in __hsiphash_unaligned()
302 case 3: b |= ((u64)end[2]) << 16; fallthrough; in __hsiphash_unaligned()
334 v3 ^= combined; in hsiphash_2u32()
342 * hsiphash_3u32 - compute 32-bit hsiphash PRF value of 3 u32
353 v3 ^= combined; in hsiphash_3u32()
374 v3 ^= combined; in hsiphash_4u32()
378 v3 ^= combined; in hsiphash_4u32()
385 #define HSIPROUND HSIPHASH_PERMUTATION(v0, v1, v2, v3)
391 u32 v3 = HSIPHASH_CONST_3; \
393 v3 ^= key->key[1]; \
399 v3 ^= b; \
406 return v1 ^ v3;
417 v3 ^= m; in __hsiphash_aligned()
422 case 3: b |= ((u32)end[2]) << 16; fallthrough; in __hsiphash_aligned()
440 v3 ^= m; in __hsiphash_unaligned()
445 case 3: b |= ((u32)end[2]) << 16; fallthrough; in __hsiphash_unaligned()
461 v3 ^= first; in hsiphash_1u32()
477 v3 ^= first; in hsiphash_2u32()
480 v3 ^= second; in hsiphash_2u32()
488 * hsiphash_3u32 - compute 32-bit hsiphash PRF value of 3 u32
498 v3 ^= first; in hsiphash_3u32()
501 v3 ^= second; in hsiphash_3u32()
504 v3 ^= third; in hsiphash_3u32()
523 v3 ^= first; in hsiphash_4u32()
526 v3 ^= second; in hsiphash_4u32()
529 v3 ^= third; in hsiphash_4u32()
532 v3 ^= forth; in hsiphash_4u32()