crypto: drbg - use memzero_explicit() for clearing sensitive data
authorNickolaus Woodruff <nickolauswoodruff@gmail.com>
Wed, 26 Nov 2014 18:40:57 +0000 (13:40 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 27 Nov 2014 14:26:18 +0000 (22:26 +0800)
commit421d82f5b3e75f94e31875e37d45cdf6a557c120
treedaf8400560e56d726b40b103b4d67d16a6e15c32
parent0653a7cf6fa49bc769628b6078c3ea9e1489cb7b
crypto: drbg - use memzero_explicit() for clearing sensitive data

Compiler dead store optimization can sometimes remove final calls
to memset() used to clear sensitive data at the end of a function.
Replace trailing memset() calls with memzero_explicit() to
preclude unwanted removal.

Signed-off-by: Nickolaus Woodruff <nickolauswoodruff@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c