[Last-Call] Re: [secdir] Re: Secdir review of draft-eastlake-fnv

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 14, 2024 at 11:42 AM David Schinazi <dschinazi.ietf@xxxxxxxxx> wrote:

The draft currently mentions this issue in its security recommendations
subsection about collisions [1], but it currently recommends still using
FNV1a with an unknown offset_basis as the solution. I think this
section should instead recommend using a cryptographic hash for such
use cases.

First, a nit: it currently has the word "unknownable", but I think it's supposed to be "unknowable".

A bigger problem is that the terminology around SipHash is really confusing. Frustrating, because even the IETF writes something clear, there will be all of this other stuff out there.

Compare:

Wikipedia: "SipHash is designed as a non-cryptographic hash function."
https://en.wikipedia.org/wiki/SipHash

The paper: "cryptographically strong"
https://eprint.iacr.org/2012/351.pdf

The author's repo: "cryptographically secure"
https://github.com/veorq/SipHash

The reports from checking all QUIC packets on the Google front-end make sense, since that seems like that's exactly what it's for.

I remember when all these DoS attacks hit. There were some implementations, at least in web things, that weren't affected. They were using various tree structures instead of hashtables. djb recommends a tree in his presentation[0], but says "hashtables are perceived to be simpler".

Here is a good explanation of a case where you can ignore these issues (non-networked uses):
https://nnethercote.github.io/2021/12/08/a-brutally-effective-hash-function-in-rust.html

The only reason I know of these references is because I'm a Rust enthusiast, and I thought "huh, what's SipHash?" one day a few years ago.

thanks,
Rob

[0] https://cr.yp.to/talks/2012.12.12/slides.pdf
"Defending against hash flooding
My favorite solution:
switch from hash tables
to crit-bit trees"
 
-- 
last-call mailing list -- last-call@xxxxxxxx
To unsubscribe send an email to last-call-leave@xxxxxxxx

[Index of Archives]     [IETF Annoucements]     [IETF]     [IP Storage]     [Yosemite News]     [Linux SCTP]     [Linux Newbies]     [Mhonarc]     [Fedora Users]

  Powered by Linux