Re: [PATCH v2] random: handle archrandom in plural words

2022-08-03 Thread Holger Dengler
Hi Jason, On 22/07/2022 13:22, Jason A. Donenfeld wrote: > On Fri, Jul 22, 2022 at 10:08:05AM +0200, Holger Dengler wrote: >> Why not changing the API to take bytes instead of words? Sure, at the >> moment it looks like all platforms with TRNG support are able to >> deliver at least one word, but

Re: [PATCH v2] random: handle archrandom in plural words

2022-07-22 Thread Holger Dengler
Hi Jason, On 17/07/2022 22:03, Jason A. Donenfeld wrote: > The archrandom interface was originally designed for x86, which supplies > RDRAND/RDSEED for receiving random words into registers, resulting in > one function to generate an int and another to generate a long. However, > other architectur

Re: [PATCH v2] random: handle archrandom in plural words

2022-07-17 Thread Gabriel Paubert
On Mon, Jul 18, 2022 at 04:31:11PM +1000, Michael Ellerman wrote: > "Jason A. Donenfeld" writes: > > The archrandom interface was originally designed for x86, which supplies > > RDRAND/RDSEED for receiving random words into registers, resulting in > > one function to generate an int and another to

Re: [PATCH v2] random: handle archrandom in plural words

2022-07-17 Thread Michael Ellerman
"Jason A. Donenfeld" writes: > The archrandom interface was originally designed for x86, which supplies > RDRAND/RDSEED for receiving random words into registers, resulting in > one function to generate an int and another to generate a long. However, > other architectures don't follow this. > > On