linux_dsm_epyc7002/arch/powerpc/crypto
George Spelvin 80d04b7fab 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 <lkml@sdf.org>
Acked-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2019-04-20 22:03:11 +10:00
..
aes-spe-core.S powerpc: Fix misspellings in comments. 2016-03-01 19:27:20 +11:00
aes-spe-glue.c powerpc updates for 4.6 2016-03-19 15:38:41 -07:00
aes-spe-keys.S crypto: powerpc/aes - key handling 2015-03-01 23:02:28 +13:00
aes-spe-modes.S crypto: powerpc/aes - ECB/CBC/CTR/XTS modes 2015-03-01 23:02:28 +13:00
aes-spe-regs.h crypto: powerpc - Fix typo 2016-05-31 16:41:55 +08:00
aes-tab-4k.S crypto: powerpc/aes - aes tables 2015-03-01 23:02:27 +13:00
crc32-vpmsum_core.S crypto: powerpc - Re-enable non-REFLECTed CRCs 2017-03-24 22:02:53 +08:00
crc32c-vpmsum_asm.S crypto: powerpc - Re-enable non-REFLECTed CRCs 2017-03-24 22:02:53 +08:00
crc32c-vpmsum_glue.c crypto: hash - annotate algorithms taking optional key 2018-01-12 23:03:35 +11:00
crc-vpmsum_test.c powerpc/crypto: Use cheaper random numbers for crc-vpmsum self-test 2019-04-20 22:03:11 +10:00
crct10dif-vpmsum_asm.S crypto: powerpc - Add CRC-T10DIF acceleration 2017-03-24 22:02:53 +08:00
crct10dif-vpmsum_glue.c crypto: crct10dif-vpmsum - Fix missing preempt_disable() 2017-04-21 20:30:51 +08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
md5-asm.S powerpc: move ASM_CONST and stringify_in_c() into asm-const.h 2018-07-30 22:48:16 +10:00
md5-glue.c crypto: shash - remove useless setting of type flags 2018-07-09 00:30:24 +08:00
sha1-powerpc-asm.S powerpc: move ASM_CONST and stringify_in_c() into asm-const.h 2018-07-30 22:48:16 +10:00
sha1-spe-asm.S crypto: powerpc - move files to fix build error 2015-03-09 21:06:19 +11:00
sha1-spe-glue.c crypto: shash - remove useless setting of type flags 2018-07-09 00:30:24 +08:00
sha1.c crypto: shash - remove useless setting of type flags 2018-07-09 00:30:24 +08:00
sha256-spe-asm.S crypto: ppc/sha256 - assembler 2015-02-27 22:48:45 +13:00
sha256-spe-glue.c crypto: shash - remove useless setting of type flags 2018-07-09 00:30:24 +08:00