s390/crypto: fix stckf loop
authorHarald Freudenberger <freude@linux.vnet.ibm.com>
Mon, 4 May 2015 11:27:49 +0000 (13:27 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 13 May 2015 07:57:38 +0000 (09:57 +0200)
commitc431761dddff87039edb3300b9b29d1f9e0af2c9
tree5e295f98543fc9b954971d48940bb6fd7dcda99d
parentf60b8d449d850ae4aa3ee4fdaefec6b7882c92f7
s390/crypto: fix stckf loop

The store-clock-fast loop in generate_entropy() mixes (exors)
only the first 64 bytes of the initial page before doing the
first SHA256. Fix the loop to mix the store-clock-fast values
all over the page.

Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/crypto/prng.c