Skip to content
Snippets Groups Projects
  1. Sep 20, 2010
  2. Jun 08, 2006
  3. Oct 15, 2005
  4. Jul 18, 2005
  5. Jul 11, 2005
  6. Jul 10, 2005
    • Bruce Momjian's avatar
      - Add Fortuna PRNG to pgcrypto. · 4fcf8b11
      Bruce Momjian authored
      - Move openssl random provider to openssl.c and builtin provider
        to internal.c
      - Make px_random_bytes use Fortuna, instead of giving error.
      - Retarget random.c to aquiring system randomness, for initial seeding
        of Fortuna.  There is ATM 2 functions for Windows,
        reader from /dev/urandom and the regular time()/getpid() silliness.
      
      Marko Kreen
      4fcf8b11
  7. Mar 21, 2005
    • Neil Conway's avatar
      pgcrypto update: · 19b67686
      Neil Conway authored
      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
      19b67686
    • Neil Conway's avatar
      pgcrypto update: · b160d6b9
      Neil Conway authored
      * Use error codes instead of -1
      * px_strerror for new error codes
      * calling convention change for px_gen_salt - return error code
      * use px_strerror in pgcrypto.c
      
      Marko Kreen
      b160d6b9
  8. Nov 24, 2004
  9. Nov 29, 2003
    • PostgreSQL Daemon's avatar
      · 55b11325
      PostgreSQL Daemon authored
      make sure the $Id tags are converted to $PostgreSQL as well ...
      55b11325
  10. Mar 10, 2003
  11. Nov 05, 2001
  12. Oct 28, 2001
  13. Oct 25, 2001
  14. Sep 29, 2001
  15. Sep 23, 2001
    • Bruce Momjian's avatar
      Big thanks to Solar Designer who pointed out a bug in bcrypt · ab560228
      Bruce Momjian authored
      salt generation code.  He also urged using better random source
      and making possible to choose using bcrypt and xdes rounds more
      easily.  So, here's patch:
      
      * For all salt generation, use Solar Designer's own code.  This
        is mostly due fact that his code is more fit for get_random_bytes()
        style interface.
      * New function: gen_salt(type, rounds).  This lets specify iteration
        count for algorithm.
      * random.c: px_get_random_bytes() function.
        Supported randomness soure: /dev/urandom, OpenSSL PRNG, libc random()
        Default: /dev/urandom.
      * Draft description of C API for pgcrypto functions.
      
      New files: API, crypt-gensalt.c, random.c
      
      Marko Kreen
      ab560228
Loading