summaryrefslogtreecommitdiffstats
path: root/fs/qnx6
diff options
context:
space:
mode:
authorŁukasz Stelmach <l.stelmach@samsung.com>2017-12-12 17:36:06 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2017-12-22 19:52:43 +1100
commit99c9acfe594e07085b11cc9c317c9c9961155ee4 (patch)
tree7a1451f3e84508e7a3bc22c8d3ff24ec3d70037f /fs/qnx6
parent3a5a5e5c07e35366f313a5301fe3568349ab8655 (diff)
downloadlinux-99c9acfe594e07085b11cc9c317c9c9961155ee4.tar.bz2
crypto: exynos - Reseed PRNG after generating 2^16 random bytes
Reseed PRNG after reading 65 kB of randomness. Although this may reduce performance, in most cases the loss is not noticeable. Also the time based threshold for reseeding is changed to one second. Reseeding is performed whenever either limit is exceeded. Reseeding of a PRNG does not increase entropy, but it helps preventing backtracking the internal state of the device from its output sequence, and hence, prevents potential attacker from predicting numbers to be generated. Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com> Reviewed-by: Stephan Mueller <smueller@chronox.de> Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'fs/qnx6')
0 files changed, 0 insertions, 0 deletions