aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorGeorge Spelvin <[email protected]>2019-03-21 10:42:22 +0000
committerMichael Ellerman <[email protected]>2019-04-20 12:03:11 +0000
commit80d04b7fabe161a23d143b3bfcfca1b002c23da1 (patch)
treec6e44382032d68519aa3975307fb0ece3c23d4b0 /arch/powerpc/lib/code-patching.c
parentpowerpc: Remove duplicate headers (diff)
downloadkernel-80d04b7fabe161a23d143b3bfcfca1b002c23da1.tar.gz
kernel-80d04b7fabe161a23d143b3bfcfca1b002c23da1.zip
powerpc/crypto: Use cheaper random numbers for crc-vpmsum self-test
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 <[email protected]> Acked-by: Daniel Axtens <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions