Files
kernel_arpi/include/linux
Jason A. Donenfeld f4cb809a90 siphash: use one source of truth for siphash permutations
commit e73aaae2fa9024832e1f42e30c787c7baf61d014 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
..
2021-01-24 14:27:17 +01:00
2021-12-14 10:57:11 +01:00
2021-11-25 09:48:41 +01:00
2019-12-03 11:20:37 +01:00
2020-12-10 12:42:59 -06:00
2021-09-06 07:20:56 -04:00
2021-11-25 09:49:08 +01:00
2021-04-30 11:20:40 -07:00
2022-04-13 20:59:03 +02:00
2021-11-18 19:15:51 +01:00
2021-07-01 11:06:05 -07:00
2021-11-21 13:44:12 +01:00
2020-09-10 14:03:31 -07:00
2021-12-14 10:57:15 +01:00