Bad packet length in 2.5.1 with rijndael

Ishikawa ishikawa at yk.rim.or.jp
Wed Feb 28 08:15:36 EST 2001


Gregory Steuck wrote:

> I was still sleepping while typing previous e-mail. Forgot to mention it
> was on Solaris 7. And yes, unconditionally defining BYTE_SWAP on solaris
> fixes the problem.
>
> >>>>> "Markus" == Markus Friedl <markus.friedl at informatik.uni-erlangen.de> writes:
>
>     Markus> it seems that this check does not work on solaris
>
>     Markus> #if BYTE_ORDER != LITTLE_ENDIAN #define BYTE_SWAP #endif
>
>     Markus> could you please check that BYTE_SWAP is defined in
>     Markus> rijndael.c

I am not entirely sure how the value of  BYTE_SWAP ought to be defined, but
given that solaris is available for big-endian sparc/ultra and
for little-endian x86 CPUs,
we probably need to check the
endian-ness of the CPU by running a small
program and use the result to set the
value for BYTE_ORDER, etc..

(Now I recall I had an issue with a very old libc on linux (circa 1996)
in that it defined LITTLE_ENDIAN and BIG_ENDIAN macro in
ctype.h of all the header files(!) and this uncalled-for
name space pollution collided with a user program, namely crack 4-1. :-)
Anyway, setting the value using a small program seems to me
a non-protruding solution and is a very reliable one IMHO.)








More information about the openssh-unix-dev mailing list