Thread (18 messages) flat view 18 messages, 5 authors, 2017-01-12

Re: [PATCH net-next 1/4] siphash: add cryptographically secure PRF

From: "Jason A. Donenfeld" <Jason@zx2c4.com>
Date: 2017-01-12 18:30:22
Also in: lkml

On Thu, Jan 12, 2017 at 4:04 PM, Herbert Xu [off-list ref] wrote:
quoted
typedef struct {
       u64 v[2];
} siphash_key_t;
If it's just an 128-bit value then we have u128 in crypto/b128ops.h
that could be generalised for this.
Nope, it's actually two 64-bit values. Yes, the user fills it in as
one blob to get_random_bytes, but it's used internally by the
algorithm as two distinct variables (which conveniently fit into
64-bit registers).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help