linux/arch/s390/crypto
Harald Freudenberger 4c637cd8de s390/crypto: Provide s390 specific arch random functionality.
This patch introduces s390 specific arch random functionality.
There exists a generic kernel API for arch specific random
number implementation (see include/linux/random.h). Here
comes the header file and a very small static code part
implementing the arch_random_* API based on the TRNG
subfunction coming with the reworked PRNG instruction.

The arch random implementation hooks into the kernel
initialization and checks for availability of the TRNG
function. In accordance to the arch random API all functions
return false if the TRNG is not available. Otherwise the new
high quality entropy source provides fresh random on each
invocation.

The s390 arch random feature build is controlled via
CONFIG_ARCH_RANDOM. This config option located in
arch/s390/Kconfig is enabled by default and appears
as entry "s390 architectural random number generation API"
in the submenu "Processor type and features" for s390 builds.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2017-04-26 13:41:35 +02:00
..
aes_s390.c s390/crypto: Extend key length check for AES-XTS in fips mode. 2017-01-31 10:46:06 +01:00
arch_random.c s390/crypto: Provide s390 specific arch random functionality. 2017-04-26 13:41:35 +02:00
crc32-vx.c s390/fpu: improve kernel_fpu_[begin|end] 2016-08-29 11:05:01 +02:00
crc32be-vx.S s390/crc32-vx: use vector instructions to optimize CRC-32 computation 2016-06-14 16:54:16 +02:00
crc32le-vx.S s390/crc32-vx: use vector instructions to optimize CRC-32 computation 2016-06-14 16:54:16 +02:00
des_s390.c s390/crypto: Check des3_ede keys for uniqueness in fips mode 2017-01-31 10:46:02 +01:00
ghash_s390.c s390/crypto: cpacf function detection 2016-08-29 11:05:09 +02:00
Makefile s390/crypto: Provide s390 specific arch random functionality. 2017-04-26 13:41:35 +02:00
paes_s390.c s390/crypt: fix missing unlock in ctr_paes_crypt on error path 2017-03-01 09:59:27 +01:00
prng.c s390/crypto: Renaming PPNO to PRNO. 2017-04-26 13:41:32 +02:00
sha1_s390.c s390/crypto: cpacf function detection 2016-08-29 11:05:09 +02:00
sha256_s390.c s390/crypto: cpacf function detection 2016-08-29 11:05:09 +02:00
sha512_s390.c s390/crypto: cpacf function detection 2016-08-29 11:05:09 +02:00
sha_common.c s390/crypto: simplify return code handling 2016-08-29 11:05:07 +02:00
sha.h crypto: s390/sha - replace raw value by their coresponding define 2015-10-15 21:05:11 +08:00