linux/arch/s390/crypto
Harald Freudenberger d34b1acb78 s390/prng: Adjust generation of entropy to produce real 256 bits.
The generate_entropy function used a sha256 for compacting
together 256 bits of entropy into 32 bytes hash. However, it
is questionable if a sha256 can really be used here, as
potential collisions may reduce the max entropy fitting into
a 32 byte hash value. So this batch introduces the use of
sha512 instead and the required buffer adjustments for the
calling functions.

Further more the working buffer for the generate_entropy
function has been widened from one page to two pages. So now
1024 stckf invocations are used to gather 256 bits of
entropy. This has been done to be on the save side if the
jitters of stckf values isn't as good as supposed.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2017-01-31 10:46:10 +01:00
..
aes_s390.c s390/crypto: Extend key length check for AES-XTS in fips mode. 2017-01-31 10:46:06 +01: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/crc32-vx: add crypto API module for optimized CRC-32 algorithms 2016-06-15 16:36:34 +02:00
prng.c s390/prng: Adjust generation of entropy to produce real 256 bits. 2017-01-31 10:46:10 +01: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