search for: u1byt

Displaying 4 results from an estimated 4 matches for "u1byt".

Did you mean: u1byte
2000 Oct 14
1
Compile error rijndael on Solaris 2.6 (and fix)
When compiling openssh-SNAP-20001014 on Solaris 2.6 with gcc 2.95.2 I get: In file included from rijndael.c:42: rijndael.h:6: parse error before `u1byte' and a lot more warnings and errors... Solved by adding #include "config.h" in rijndael.c Lasse Holmqvist
2001 Sep 12
0
AES update..
...(n))) | ((x) >> (32 - (int)(n)))) - -/* Invert byte order in a 32 bit variable */ - -#define bswap(x) ((rotl(x, 8) & 0x00ff00ff) | (rotr(x, 8) & 0xff00ff00)) - -/* Extract byte from a 32 bit quantity (little endian notation) */ - -#define byte(x,n) ((u1byte)((x) >> (8 * n))) - -#ifdef WORDS_BIGENDIAN -#define BYTE_SWAP -#endif - -#ifdef BYTE_SWAP -#define io_swap(x) bswap(x) -#else -#define io_swap(x) (x) -#endif - -#define LARGE_TABLES - -u1byte pow_tab[256]; -u1byte log_tab[256]; -u1byte sbx_tab[256]; -u1byte isb_tab[256]; -u4byte rco...
2001 Jul 02
0
rijndael byteswapping
...dael.c to get the macros building properly in such a situation. It seems to be a little more reliable than the existing system. Rob --- openssh_cvs/rijndael.c Tue Feb 27 13:14:22 2001 +++ /Users/rbraun/OpenSSH/openssh/rijndael.c Mon Jun 25 18:00:24 2001 @@ -58,7 +58,8 @@ #define byte(x,n) ((u1byte)((x) >> (8 * n))) -#ifdef WORDS_BIGENDIAN +/* We can't trust WORDS_BIGENDIAN when building for multiple architectures at the same time */ +#if (defined(BYTE_ORDER) && defined(BIG_ENDIAN) && (BYTE_ORDER == BIG_ENDIAN)) || defined(WORDS_BIGENDIAN) #define BYTE_SWAP #end...
2001 Feb 27
4
Bad packet length in 2.5.1 with rijndael
it seems that this check does not work on solaris #if BYTE_ORDER != LITTLE_ENDIAN #define BYTE_SWAP #endif could you please check that BYTE_SWAP is defined in rijndael.c -m