Files
linux/drivers
Jason A. Donenfeld f4cb809a90 siphash: use one source of truth for siphash permutations
commit e73aaae2fa upstream.

The SipHash family of permutations is currently used in three places:

- siphash.c itself, used in the ordinary way it was intended.
- random32.c, in a construction from an anonymous contributor.
- random.c, as part of its fast_mix function.

Each one of these places reinvents the wheel with the same C code, same
rotation constants, and same symmetry-breaking constants.

This commit tidies things up a bit by placing macros for the
permutations and constants into siphash.h, where each of the three .c
users can access them. It also leaves a note dissuading more users of
them from emerging.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-05-30 09:29:15 +02:00
..
2022-05-25 09:57:36 +02:00
2022-05-09 09:14:44 +02:00
2022-03-08 19:12:41 +01:00
2022-04-13 20:59:11 +02:00
2022-04-13 20:59:01 +02:00
2021-12-22 09:32:39 +01:00