Re: 242-ac3 loop bug

Mario Hermann
2001-02-26T01:18:17Z

Hi!

Jonathan Oppenheim wrote:

> i have also been having trouble with many cyphers including
> blowfish (although twofish and idea worked). the error seems to be the
> same in all 2.4.x kernels (i have all the relevant options compiled
> as modules eg. loopback and ciphers))

I had the same problem today with blowfish. Following mini-diff works for
blowfish(apply after patch-int-2.4.0.3):

--- crypto/cipher-blowfish.c~ Sun Feb 25 13:33:42 2001
+++ crypto/cipher-blowfish.c Sun Feb 25 13:48:23 2001
@@ -404,6 +404,8 @@
u32 *P = key2->P;
u32 *S = key2->S;

+ if (keybytes<=0 || keybytes>32) return(-1);
+
/* Copy the initialization s-boxes */

for (i = 0, count = 0; i < 256; i++)