kernel_optimize_test/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
aes-spe-glue.c
aes-spe-keys.S
aes-spe-modes.S
aes-spe-regs.h
aes-tab-4k.S
crc-vpmsum_test.c powerpc/crypto: Use cheaper random numbers for crc-vpmsum self-test 2019-04-20 22:03:11 +10:00
crc32-vpmsum_core.S
crc32c-vpmsum_asm.S
crc32c-vpmsum_glue.c
crct10dif-vpmsum_asm.S
crct10dif-vpmsum_glue.c
Makefile
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
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
sha256-spe-glue.c crypto: shash - remove useless setting of type flags 2018-07-09 00:30:24 +08:00