crypto: drbg - remove superflowous memsets
authorStephan Mueller <smueller@chronox.de>
Sun, 1 Mar 2015 19:40:17 +0000 (20:40 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 4 Mar 2015 09:13:29 +0000 (22:13 +1300)
commit37821da088d090d8e152f3f8cc072948fa544e5a
tree68a2ec28c6f2ebca89767609bb70af7612c7f430
parent04bcbfcf7e28ba502383a8e19d99960ab8e347c8
crypto: drbg - remove superflowous memsets

The DRBG code contains memset(0) calls to initialize a varaible
that are not necessary as the variable is always overwritten by
the processing.

This patch increases the CTR and Hash DRBGs by about 5%.

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