summaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/rijndael.c
Commit message (Collapse)AuthorAgeFilesLines
* More pgcrypto fixes: avoid bogus alignment assumptions in sha2,Tom Lane2005-07-111-2/+12
| | | | | | 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
* Add parentheses to macros when args are used in computations. WithoutBruce Momjian2005-05-251-48/+48
| | | | them, the executation behavior could be unexpected.
* Fix unsafe macro definitions (which were producing incorrect code,Tom Lane2002-09-051-5/+15
| | | | leading to compile warnings).
* * When postgres.h does not define BYTE_ENDIAN pgcryptoBruce Momjian2001-11-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | produces garbage. I learned the hard way that #if UNDEFINED_1 == UNDEFINED_2 #error "gcc is idiot" #endif prints "gcc is idiot" ... Affected are MD5/SHA1 in internal library, and also HMAC-MD5/HMAC-SHA1/ crypt-md5 which use them. Blowfish is ok, also Rijndael on at least x86. Big thanks to Daniel Holtzman who send me a build log which contained warning: md5.c:246: warning: `X' defined but not used Yes, gcc is that helpful... Please apply this. -- marko
* pgcrypto uses non-standard type uint, which causes compileBruce Momjian2001-11-201-1/+1
| | | | | | | | | failures on FreeBSD. This patch replaces uint -> unsigned. This was reported by Daniel Holtzman against 0.4pre3 standalone package, but it needs fixing in contrib/pgcrypto too. Marko Kreen
* New pgindent run with fixes suggested by Tom. Patch manually reviewed,Bruce Momjian2001-11-051-2/+2
| | | | initdb/regression tests pass.
* Another pgindent run. Fixes enum indenting, and improves #endifBruce Momjian2001-10-281-0/+1
| | | | spacing. Also adds space for one-line comments.
* pgindent run on all C files. Java run to follow. initdb/regressionBruce Momjian2001-10-251-321/+408
| | | | tests pass.
* Add more missing 'do { ... } while (0)' in missing macros. Without it,Bruce Momjian2001-10-251-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | these macros fail in if/else cases: #define X \ { \ ... \ } { if (...) X; else ... } with proper setup: #define X \ do { \ ... \ } while (0) it works fine.
* Persuade new pgcrypto stuff to compile.Tom Lane2001-08-221-1/+1
|
* Add missing pgcrypto file.Bruce Momjian2001-08-211-0/+580