I imagine you intended to mail the nettle-bugs list, rather than
nettle-bugs-owner administrative address? Feel free to reply on list.
Ugh, sorry, cut and paste...
That's unexpected. Hmm. The NEWS file for 2.7.1 claims that this problem
was fixed in that release, but appearantly it wasn't. You can check if
the error disappears if you replace the definition of ROT32 in macros.h
by
#define ROTL32(n,x) (((x)<<(n)) | ((x)>>((-(n)&31))))
I'll check this tonight.
blowfish.c:353:19: runtime error: left shift of 244 by 24 places
cannot be represented in type 'int'
twofish.c:196:54: runtime error: left shift of 184 by 24 places cannot
be represented in type 'int'
These should have some casts to uint32_t, I think. Unlikely to cause
real problems.
Right, I don't know of any compiler that exploits these, and in fact in
C++ (but not C) this particular case is covered by a defect report that
makes it defined.
Thanks,
John
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs