Re: [PATCH v2] lib/hash: add siphash

2024-02-27 Thread Stephen Hemminger
On Tue, 27 Feb 2024 22:57:06 +0100 Mattias Rönnblom wrote: > The portable and x86 version will compile to the same thing on x86. > > A simpler implementation would be > > static __rte_always_inline uint64_t > u8to64_le(const uint8_t *p) > { > uint64_t w; > memcpy(&w, p, sizeof(w));

Re: [PATCH v2] lib/hash: add siphash

2024-02-27 Thread Mattias Rönnblom
On 2024-02-27 20:14, Stephen Hemminger wrote: Add SipHash which is a fast and cryptographicly sound hash created by Jean-Philippe Aumasson and Daniel J. Bernstein. Siphash is widely used by Linux, FreeBSD, OpenBSD and other projects because it is fast and resistant to DoS attacks. This version is

[PATCH v2] lib/hash: add siphash

2024-02-27 Thread Stephen Hemminger
Add SipHash which is a fast and cryptographicly sound hash created by Jean-Philippe Aumasson and Daniel J. Bernstein. Siphash is widely used by Linux, FreeBSD, OpenBSD and other projects because it is fast and resistant to DoS attacks. This version is designed to be useful as alternative hash with