Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1553860
| From | "Jason A. Donenfeld" <Jason@zx2c4.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 net-next 3/4] secure_seq: use SipHash in place of MD5 |
| Date | 2017-01-08 13:30 +0100 |
| Message-ID | <sXkLL-6lr-7@gated-at.bofh.it> (permalink) |
| References | <sX0tH-1DJ-7@gated-at.bofh.it> <sX0tH-1DJ-9@gated-at.bofh.it> <sX6St-5J1-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi David, On Sat, Jan 7, 2017 at 10:37 PM, David Miller <davem@davemloft.net> wrote: > This and the next patch are a real shame, performance wise, on cpus > that have single-instruction SHA1 and MD5 implementations. Sparc64 > has both, and I believe x86_64 can do SHA1 these days. > > It took so long to get those instructions into real silicon, and then > have software implemented to make use of them as well. Actually, from a performance perspective, these patches are strictly better than what was already there, since nothing actually used the special instructions. They're also better security wise, because the prior use of these functions was quite dubious. On x86, using the FPU isn't really an option in these situations, as you well know. On Sparc64, sure, I guess it's a bummer that silicon is lagging cryptography. If after merging these improvements, you want to start thinking about a special construction just for Sparc64 that would be faster and have a matching security level, this would of course be great. But so far, nobody even bothered to do this for the old insecure slow code that this is replacing. > Who knows when we'll see SipHash widely deployed in any instruction > set, if at all, right? And by that time we'll possibly find out that > "Oh shit, this SipHash thing has flaws!" and we'll need > DIPPY_DO_DA_HASH and thus be forced back to a software implementation > again. The literature and cryptanalyses on SipHash have been quite positive. And as I mentioned earlier in patchset messages, SipHash is really _not_ some newfangled hipster thing, but rather something that's been around a while, pretty extensively studied, and considered quite venerable. I think if you're going to bet on something SipHash is one of the more safe bets to be made. > I understand the reasons why these patches are being proposed, I just > thought I'd mention the issue of cpus that implement secure hash > algorithm instructions. Yea, agreed, it's a bummer. Hopefully silicon will catch up someday, and we'll all be happy. In the meantime, at least these patches improve the situation on Linux. I interpret your letter's omission of any substantive comments on the code itself to be an indication that things are mostly sane. I'll follow up with Eric's suggestions to produce a v3, and then hopefully we can get this merged. Regards, Jason
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 net-next 0/4] Introduce The SipHash PRF "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-07 15:50 +0100
[PATCH v2 net-next 3/4] secure_seq: use SipHash in place of MD5 "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-07 15:50 +0100
Re: [PATCH v2 net-next 3/4] secure_seq: use SipHash in place of MD5 David Miller <davem@davemloft.net> - 2017-01-07 22:40 +0100
Re: [PATCH v2 net-next 3/4] secure_seq: use SipHash in place of MD5 Eric Biggers <ebiggers3@gmail.com> - 2017-01-07 23:10 +0100
Re: [PATCH v2 net-next 3/4] secure_seq: use SipHash in place of MD5 David Miller <davem@davemloft.net> - 2017-01-08 02:50 +0100
RE: [PATCH v2 net-next 3/4] secure_seq: use SipHash in place of MD5 David Laight <David.Laight@ACULAB.COM> - 2017-01-09 14:30 +0100
Re: [PATCH v2 net-next 3/4] secure_seq: use SipHash in place of MD5 "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-08 13:30 +0100
[PATCH v2 net-next 2/4] siphash: implement HalfSipHash1-3 for hash tables "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-07 15:50 +0100
[PATCH v2 net-next 1/4] siphash: add cryptographically secure PRF "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-07 15:50 +0100
Re: [PATCH v2 net-next 0/4] Introduce The SipHash PRF Eric Biggers <ebiggers3@gmail.com> - 2017-01-07 21:00 +0100
Re: [PATCH v2 net-next 0/4] Introduce The SipHash PRF "Jason A. Donenfeld" <Jason@zx2c4.com> - 2017-01-08 13:50 +0100
csiph-web