crypto: rng - Zero seed in crypto_rng_reset
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 21 Apr 2015 02:46:49 +0000 (10:46 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 22 Apr 2015 01:30:21 +0000 (09:30 +0800)
commitb617b702da4e922277806f81c411d3051107d462
tree580d9202c8b14f0798c16e14be7beeb5cd08f440
parent654ae152b3d1f3d5d473d845a403e4b5c1a39389
crypto: rng - Zero seed in crypto_rng_reset

If we allocate a seed on behalf ot the user in crypto_rng_reset,
we must ensure that it is zeroed afterwards or the RNG may be
compromised.

Reported-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/rng.c