aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/crypto
diff options
context:
space:
mode:
authorHarald Freudenberger <freude@linux.vnet.ibm.com>2016-12-20 11:32:47 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2017-01-31 10:46:10 +0100
commitd34b1acb78af41b8b8d5c60972b6555ea19f7564 (patch)
tree34bdf857eb6d03c5eb0a3d1c4a72090f7f66417b /drivers/s390/crypto
parents390/crypto: Extend key length check for AES-XTS in fips mode. (diff)
downloadlinux-dev-d34b1acb78af41b8b8d5c60972b6555ea19f7564.tar.xz
linux-dev-d34b1acb78af41b8b8d5c60972b6555ea19f7564.zip
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>
Diffstat (limited to 'drivers/s390/crypto')
0 files changed, 0 insertions, 0 deletions