Skip to content

The SipHash Patchset

Jason A. Donenfeld kernel-hardening linux-crypto lkml netdev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest6 patches 28 repliesIn review
  2. v65 patches 1 replySuperseded
  3. v54 patches 41 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6siphash: add cryptographically secure PRFDocumentation/siphash.txt MAINTAINERS include/linux/siphash.h +4 more+522 -51 reply
2/6secure_seq: use SipHash in place of MD5net/core/secure_seq.c+54 -810 replies
3/6random: use SipHash in place of MD5drivers/char/random.c include/linux/random.h init/main.c+49 -3726 replies
4/6md5: remove from lib and only live in cryptocrypto/md5.c lib/Makefile lib/md5.c+95 -970 replies
5/6syncookies: use SipHash in place of SHA1net/ipv4/syncookies.c net/ipv6/syncookies.c+20 -370 replies
6/6siphash: implement HalfSipHash1-3 for hash tablesDocumentation/siphash.txt include/linux/siphash.h lib/siphash.c +1 more+561 -271 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v7 yet.

Read the v7 thread

Cover letter [PATCH v7 0/6] The SipHash Patchset

Hey folks,

Again we've made huge progress, with this latest version now shipping Jean-Phillipe Aumasson's HalfSipHash, which should be much more competitive with jhash (in addition to being more secure, of course).

There are dozens of little cleanups and improvements right and left throughout this series, so I urge you to take a look at the whole thing. I've tried to take into consideration lots of concerns and suggestions from many of you over the last week.

There is also now documentation! And the test suite now has full coverage of all functions.

Finally, there's been some significant benchmarking, and now a few commit messages have some performance numbers.

Please send your Reviewed-by lines as you see fit.

Regards,
Jason

Jason A. Donenfeld (6):
siphash: add cryptographically secure PRF
secure_seq: use SipHash in place of MD5
random: use SipHash in place of MD5
md5: remove from lib and only live in crypto
syncookies: use SipHash in place of SHA1
siphash: implement HalfSipHash1-3 for hash tables

 Documentation/siphash.txt | 154 +++++++++++++
 MAINTAINERS               |   7 +
 crypto/md5.c              |  95 +++++++-
 drivers/char/random.c     |  84 ++++---
 include/linux/random.h    |   1 -
 include/linux/siphash.h   | 133 +++++++++++
 init/main.c               |   1 -
 lib/Kconfig.debug         |   6 +-
 lib/Makefile              |   7 +-
 lib/md5.c                 |  95 --------
 lib/siphash.c             | 548 ++++++++++++++++++++++++++++++++++++++++++++++
 lib/test_siphash.c        | 208 ++++++++++++++++++
 net/core/secure_seq.c     | 135 +++++-------
 net/ipv4/syncookies.c     |  20 +-
 net/ipv6/syncookies.c     |  37 ++--
 15 files changed, 1274 insertions(+), 257 deletions(-)
 create mode 100644 Documentation/siphash.txt
 create mode 100644 include/linux/siphash.h
 delete mode 100644 lib/md5.c
 create mode 100644 lib/siphash.c
 create mode 100644 lib/test_siphash.c
Signature · 1 line
2.11.0