Re: [PATCH] crypto: RNGs must return 0 in success case

2015-03-09 Thread Herbert Xu
On Fri, Mar 06, 2015 at 08:26:31AM +0100, Stephan Mueller wrote: > 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

Re: [PATCH] crypto: RNGs must return 0 in success case

2015-03-06 Thread Neil Horman
>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. For the X9.31 bits: Ac