OSDN Git Service

pgcrypto update:
authorNeil Conway <neilc@samurai.com>
Mon, 21 Mar 2005 05:22:14 +0000 (05:22 +0000)
committerNeil Conway <neilc@samurai.com>
Mon, 21 Mar 2005 05:22:14 +0000 (05:22 +0000)
commit19b676869a1d9c1bf25a2332bdbe04bb9027c340
treebf12fc5bff3da3f6d6ac93a9d8ed7aa220f4bd52
parent1ea9169b420bea40228f2a8e5df28b886a099134
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
contrib/pgcrypto/px-crypt.c
contrib/pgcrypto/px.c
contrib/pgcrypto/px.h
contrib/pgcrypto/random.c