From: Stephan Mueller Date: Sun, 17 Aug 2014 15:39:31 +0000 (+0200) Subject: crypto: drbg - use kmalloc instead of kzalloc for V and C X-Git-Tag: fixes-for-v3.18-merge-window~17^2~26 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6c0244ad38a358598392638688b1dcac7878f66;p=pandora-kernel.git crypto: drbg - use kmalloc instead of kzalloc for V and C 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 Signed-off-by: Herbert Xu --- Reading git-diff-tree failed