postgresql/contrib/pgcrypto
Heikki Linnakangas 9e083fd468 Replace PostmasterRandom() with a stronger way of generating randomness.
This adds a new routine, pg_strong_random() for generating random bytes,
for use in both frontend and backend. At the moment, it's only used in
the backend, but the upcoming SCRAM authentication patches need strong
random numbers in libpq as well.

pg_strong_random() is based on, and replaces, the existing implementation
in pgcrypto. It can acquire strong random numbers from a number of sources,
depending on what's available:
- OpenSSL RAND_bytes(), if built with OpenSSL
- On Windows, the native cryptographic functions are used
- /dev/urandom
- /dev/random

Original patch by Magnus Hagander, with further work by Michael Paquier
and me.

Discussion: <CAB7nPqRy3krN8quR9XujMVVHYtXJ0_60nqgVc6oUk8ygyVkZsA@mail.gmail.com>
2016-10-17 11:52:50 +03:00
..
expected pgcrypto: support changing S2K iteration count 2016-03-09 14:31:07 -03:00
sql pgcrypto: support changing S2K iteration count 2016-03-09 14:31:07 -03:00
.gitignore
blf.c
blf.h
crypt-blowfish.c Add forgotten CHECK_FOR_INTERRUPT calls in pgcrypto's crypt() 2015-12-27 13:03:19 -03:00
crypt-des.c Add forgotten CHECK_FOR_INTERRUPT calls in pgcrypto's crypt() 2015-12-27 13:03:19 -03:00
crypt-gensalt.c
crypt-md5.c
fortuna.c Fix typos in comments 2016-02-01 11:43:48 +01:00
fortuna.h
imath.c
imath.h
internal-sha2.c
internal.c Replace PostmasterRandom() with a stronger way of generating randomness. 2016-10-17 11:52:50 +03:00
Makefile Replace PostmasterRandom() with a stronger way of generating randomness. 2016-10-17 11:52:50 +03:00
mbuf.c
mbuf.h
md5.c
md5.h
openssl.c Fix building with LibreSSL. 2016-09-15 22:52:51 +03:00
pgcrypto--1.0--1.1.sql
pgcrypto--1.1--1.2.sql
pgcrypto--1.2--1.3.sql Update pgcrypto extension for parallel query. 2016-06-09 17:18:14 -04:00
pgcrypto--1.3.sql Minor fixes in contrib installation scripts. 2016-06-14 10:47:06 -04:00
pgcrypto--unpackaged--1.0.sql
pgcrypto.c Support OpenSSL 1.1.0. 2016-09-15 14:42:29 +03:00
pgcrypto.control Update pgcrypto extension for parallel query. 2016-06-09 17:18:14 -04:00
pgcrypto.h Remove unnecessary prototypes 2016-09-30 14:04:16 -04:00
pgp-armor.c
pgp-cfb.c
pgp-compress.c
pgp-decrypt.c pgcrypto: support changing S2K iteration count 2016-03-09 14:31:07 -03:00
pgp-encrypt.c pgcrypto: support changing S2K iteration count 2016-03-09 14:31:07 -03:00
pgp-info.c
pgp-mpi-internal.c
pgp-mpi-openssl.c
pgp-mpi.c
pgp-pgsql.c pgcrypto: support changing S2K iteration count 2016-03-09 14:31:07 -03:00
pgp-pubdec.c
pgp-pubenc.c
pgp-pubkey.c
pgp-s2k.c Support OpenSSL 1.1.0. 2016-09-15 14:42:29 +03:00
pgp.c pgcrypto: support changing S2K iteration count 2016-03-09 14:31:07 -03:00
pgp.h pgindent run for 9.6 2016-06-09 18:02:36 -04:00
px-crypt.c Support OpenSSL 1.1.0. 2016-09-15 14:42:29 +03:00
px-crypt.h
px-hmac.c
px.c Fix typo 2016-08-09 19:08:00 -04:00
px.h Support OpenSSL 1.1.0. 2016-09-15 14:42:29 +03:00
rijndael.c
rijndael.h
rijndael.tbl
sha1.c
sha1.h Fix typos. 2016-03-15 18:06:11 -04:00
sha2.c
sha2.h