arch/powerpc/crypto/crc-vpmsum_test: Use cheaper random numbers for self-test
Michael Ellerman
patch-notifications at ellerman.id.au
Mon Apr 22 00:18:49 AEST 2019
On Thu, 2019-03-21 at 10:42:22 UTC, George Spelvin wrote:
> This code was filling a 64K buffer from /dev/urandom in order to
> compute a CRC over (on average half of) it by two different methods,
> comparing the CRCs, and repeating.
>
> This is not a remotely security-critical application, so use the far
> faster and cheaper prandom_u32() generator.
>
> And, while we're at it, only fill as much of the buffer as we plan to use.
>
> Signed-off-by: George Spelvin <lkml at sdf.org>
> Cc: Daniel Axtens <dja at axtens.net>
> Cc: Herbert Xu <herbert at gondor.apana.org.au>
> Cc: linuxppc-dev at lists.ozlabs.org
> Cc: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> Cc: Paul Mackerras <paulus at samba.org>
> Cc: Michael Ellerman <mpe at ellerman.id.au>
> Acked-by: Daniel Axtens <dja at axtens.net>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/80d04b7fabe161a23d143b3bfcfca1b0
cheers
More information about the Linuxppc-dev
mailing list