summaryrefslogtreecommitdiff
path: root/contrib/pgcrypto/sha2.c
Commit message (Collapse)AuthorAgeFilesLines
* Refactor SHA2 functions and move them to src/common/.Heikki Linnakangas2017-03-071-992/+0
| | | | | | | | | | | | | This way both frontend and backends can use them. The functions are taken from pgcrypto, which now fetches the source files it needs from src/common/. A new interface is designed for the SHA2 functions, which allow linking to either OpenSSL or the in-core stuff taken from KAME as needed. Michael Paquier, reviewed by Robert Haas. Discussion: https://www.postgresql.org/message-id/CAB7nPqTGKuTM5jiZriHrNaQeVqp5e_iT3X4BFLWY_HyHxLvySQ%40mail.gmail.com
* pgindent run for 9.4Bruce Momjian2014-05-061-1/+1
| | | | | This includes removing tabs after periods in C comments, which was applied to back branches, so this change should not effect backpatching.
* pgcrypto: fix memset() calls that might be optimized awayBruce Momjian2014-04-171-4/+5
| | | | | | | | | | | | | | Specifically, on-stack memset() might be removed, so: * Replace memset() with px_memset() * Add px_memset to copy_crlf() * Add px_memset to pgp-s2k.c Patch by Marko Kreen Report by PVS-Studio Backpatch through 8.4.
* Remove cvs keywords from all files.Magnus Hagander2010-09-201-1/+1
|
* pgindent run for 9.0, second runBruce Momjian2010-07-061-2/+2
|
* Update a number of broken links in comments.Magnus Hagander2010-04-021-3/+3
| | | | Josh Kupershmidt
* 8.4 pgindent run, with new combined Linux/FreeBSD/MinGW typedef listBruce Momjian2009-06-111-19/+19
| | | | provided by Andrew.
* pgindent run for 8.3.Bruce Momjian2007-11-151-2/+2
|
* Now that core functionality is depending on autoconf's AC_C_BIGENDIAN to beTom Lane2007-04-061-43/+9
| | | | | | right, there seems precious little reason to have a pile of hand-maintained endianness definitions in src/include/port/*.h. Get rid of those, and make the couple of places that used them depend on WORDS_BIGENDIAN instead.
* pgindent run for 8.2.Bruce Momjian2006-10-041-3/+2
|
* "Annual" pgcrypto update from Marko Kreen:Neil Conway2006-07-131-39/+100
| | | | | | | | | | | | | | | | Few cleanups and couple of new things: - add SHA2 algorithm to older OpenSSL - add BIGNUM math to have public-key cryptography work on non-OpenSSL build. - gen_random_bytes() function The status of SHA2 algoritms and public-key encryption can now be changed to 'always available.' That makes pgcrypto functionally complete and unless there will be new editions of AES, SHA2 or OpenPGP standards, there is no major changes planned.
* Re-defines SHA2 symbols so that they would not conflict with certainBruce Momjian2006-05-301-9/+9
| | | | | | | | | | versions of OpenSSL. If your OpenSSL does not contain SHA2, then there should be no conflict. But ofcourse, if someone upgrades OpenSSL, server starts crashing. Backpatched to 8.1.X. Marko Kreen
* Standard pgindent run for 8.1.Bruce Momjian2005-10-151-199/+282
|
* More pgcrypto fixes: handle long messages correctly, suppressTom Lane2005-07-121-6/+6
| | | | compiler warnings. Marko Kreen and Kris Jurka.
* Avoid bzero/bxopy in favor of more standard library routines.Tom Lane2005-07-111-32/+27
| | | | Marko Kreen
* More pgcrypto fixes: avoid bogus alignment assumptions in sha2,Tom Lane2005-07-111-16/+8
| | | | | | 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 missing pgcrypto files from previous commit.Bruce Momjian2005-07-101-0/+895