Bad packet length in 2.5.1 with rijndael (fwd)

Tim Rice tim at multitalents.net
Wed Feb 28 12:09:25 EST 2001


On Wed, 28 Feb 2001, Damien Miller wrote:

> On Tue, 27 Feb 2001, Tim Rice wrote:
> 
> > Would the AC_C_BIGENDIAN macro at configure time help?
> 
> That is exactly the test that I am looking for :)
> 
> Can affected people try this patch (you will need to autoreconf):

Solves the problem here.

> 
> Index: configure.in
> ===================================================================
> RCS file: /var/cvs/openssh/configure.in,v
> retrieving revision 1.256
> diff -u -r1.256 configure.in
> --- configure.in	2001/02/27 03:42:48	1.256
> +++ configure.in	2001/02/27 21:11:00
> @@ -5,6 +5,7 @@
>  AC_CONFIG_HEADER(config.h)
>  AC_PROG_CC
>  AC_CANONICAL_HOST
> +AC_C_BIGENDIAN
> 
>  # Checks for programs.
>  AC_PROG_CPP
> Index: rijndael.c
> ===================================================================
> RCS file: /var/cvs/openssh/rijndael.c,v
> retrieving revision 1.8
> diff -u -r1.8 rijndael.c
> --- rijndael.c	2001/02/05 18:16:28	1.8
> +++ rijndael.c	2001/02/27 21:11:00
> @@ -58,7 +58,7 @@
> 
>  #define byte(x,n)   ((u1byte)((x) >> (8 * n)))
> 
> -#if BYTE_ORDER != LITTLE_ENDIAN
> +#ifdef WORDS_BIGENDIAN
>  #define BYTE_SWAP
>  #endif
> 
> 
> 
> 

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net







More information about the openssh-unix-dev mailing list