summaryrefslogtreecommitdiff
path: root/crypto/testmgr.c
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2015-03-06 08:26:31 +0100
committerJiri Slaby <jslaby@suse.cz>2015-06-10 13:53:11 +0200
commitf60b0fa8bbddde66f1d197be07120264b555c84a (patch)
tree4938e4ad906e549fe91772bf0638876dbfd22e34 /crypto/testmgr.c
parentd7ef875d4e413eaccbd550f9b638e1b9e4201dc6 (diff)
crypto: rng - RNGs must return 0 in success case
commit cde001e4c3c3625c60b68a83eb1f1c2572dee07a upstream. 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 <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'crypto/testmgr.c')
0 files changed, 0 insertions, 0 deletions