pgcrypto update:

Neil Conway <neilc@samurai.com>

Commit: 19b676869a1d9c1bf25a2332bdbe04bb9027c340
Author: Neil Conway <neilc@samurai.com>
Date: 2005-03-21T05:22:14Z
Releases: 8.1.0
pgcrypto update:

Reserve px_get_random_bytes() for strong randomness,
add new function px_get_pseudo_random_bytes() for
weak randomness and use it in gen_salt().

On openssl case, use RAND_pseudo_bytes() for
px_get_pseudo_random_bytes().

Final result is that is user has not configured random
souce but kept the 'silly' one, gen_salt() keeps
working, but pgp_encrypt() will throw error.

Marko Kreen

Files

PathChange+/−
contrib/pgcrypto/px.c modified +2 −1
contrib/pgcrypto/px-crypt.c modified +2 −2
contrib/pgcrypto/px.h modified +3 −1
contrib/pgcrypto/random.c modified +41 −12