cryoto: drbg - clear all temporary memory
authorStephan Mueller <smueller@chronox.de>
Fri, 17 Apr 2015 12:54:08 +0000 (14:54 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 21 Apr 2015 01:14:38 +0000 (09:14 +0800)
commit8e0498d99f182dd06c012dfc62768e8ca0450adf
treef0fcc1eab2958f309989812113c56cf8c74728e4
parent1a92b2ba339221a4afee43adf125fcc9a41353f7
cryoto: drbg - clear all temporary memory

The buffer uses for temporary data must be cleared entirely. In AES192
the used buffer is drbg_statelen(drbg) + drbg_blocklen(drbg) as
documented in the comment above drbg_ctr_df.

This patch ensures that the temp buffer is completely wiped.

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