Thread (70 messages) flat view 70 messages, 11 authors, 2016-12-18

Re: [PATCH v3 3/3] random: use siphash24 instead of md5 for get_random_int/long

From: "Jason A. Donenfeld" <Jason@zx2c4.com>
Date: 2016-12-15 18:52:46
Also in: linux-crypto, lkml

Hi David,

On Thu, Dec 15, 2016 at 11:14 AM, David Laight [off-list ref] wrote:
From: Behalf Of Jason A. Donenfeld
quoted
Sent: 14 December 2016 18:46
...
quoted
+     ret = *chaining = siphash24((u8 *)&combined, offsetof(typeof(combined), end),
If you make the first argument 'const void *' you won't need the cast
on every call.

I'd also suggest making the key u64[2].
I'll do both. Thanks for the suggestion.

Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help