1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

More pgcrypto fixes: avoid bogus alignment assumptions in sha2,

be more wary about having a value for BYTE_ORDER, clean up randomly-
chosen ways of including Postgres core headers.
Marko Kreen and Tom Lane
This commit is contained in:
Tom Lane
2005-07-11 15:07:59 +00:00
parent 3c52d17fa6
commit e997758cb6
29 changed files with 99 additions and 90 deletions

View File

@ -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