Bad packet length in 2.5.1 with rijndael (fwd)
Damien Miller
djm at mindrot.org
Wed Feb 28 08:12:34 EST 2001
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):
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
--
| Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's
| http://www.mindrot.org / distributed filesystem'' - Dan Geer
More information about the openssh-unix-dev
mailing list