crypto: drbg - use kmalloc instead of kzalloc for V and C
authorStephan Mueller <smueller@chronox.de>
Sun, 17 Aug 2014 15:39:31 +0000 (17:39 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 25 Aug 2014 12:34:11 +0000 (20:34 +0800)
When allocating V, C, the zeroization is only needed when
allocating a new instance of the DRBG, i.e. when performing an
initial seeding. For all other allocations, the memcpy implemented in
drbg_copy_drbg ensures that the memory is filled with the correct
information.

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

No differences found