diff options
Diffstat (limited to 'contrib/pgcrypto/rijndael.c')
| -rw-r--r-- | contrib/pgcrypto/rijndael.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/contrib/pgcrypto/rijndael.c b/contrib/pgcrypto/rijndael.c index 8a68e3f166..fbf74cabe9 100644 --- a/contrib/pgcrypto/rijndael.c +++ b/contrib/pgcrypto/rijndael.c @@ -1,5 +1,7 @@ /* $OpenBSD: rijndael.c,v 1.6 2000/12/09 18:51:34 markus Exp $ */ +/* $PostgreSQL: pgsql/contrib/pgcrypto/rijndael.c,v 1.11 2005/07/11 15:07:59 tgl Exp $ */ + /* This is an independent implementation of the encryption algorithm: */ /* */ /* RIJNDAEL by Joan Daemen and Vincent Rijmen */ @@ -38,11 +40,19 @@ Mean: 500 cycles = 51.2 mbits/sec */ -#include <postgres.h> -#include "px.h" +#include "postgres.h" +#include <sys/param.h> + +#include "px.h" #include "rijndael.h" +/* sanity check */ +#if !defined(BYTE_ORDER) || (BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN) +#error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN +#endif + + #define PRE_CALC_TABLES #define LARGE_TABLES |
