]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3948b53989efb57f4caccd8a82c4220025d1b667
tree68a2ec28c6f2ebca89767609bb70af7612c7f430
parent682091b21f0729fcd3b2476dca0232cad57c4113
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