From: Stephan Mueller Date: Fri, 6 Mar 2015 07:26:31 +0000 (+0100) Subject: crypto: rng - RNGs must return 0 in success case X-Git-Tag: omap-for-v4.1/fixes-rc1~140^2~117 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cde001e4c3c3625c60b68a83eb1f1c2572dee07a;p=pandora-kernel.git crypto: rng - RNGs must return 0 in success case Change the RNGs to always return 0 in success case. This patch ensures that seqiv.c works with RNGs other than krng. seqiv expects that any return code other than 0 is an error. Without the patch, rfc4106(gcm(aes)) will not work when using a DRBG or an ANSI X9.31 RNG. Signed-off-by: Stephan Mueller Signed-off-by: Herbert Xu --- Reading git-diff-tree failed