Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[liberationtech] libfortuna fun

Waitman Gobble uzimac at da3m0n8t3r.com
Wed Jul 17 22:19:06 PDT 2013


Hi,

I've been researching the Fortuna PRNG and found a good implementation within
PostgreSQL. I ripped out a big chunk of the code in pgsql/contrib/pgcrypto and
turned it into libfortuna. My first tests are positive, seems to work. I'm
building on FreeBSD, but should work on other BSD/Unix systems. Maybe
GNU/Linux, not sure, I tend to only build other people's projects on Linux.

At the moment my test program dumps out 1024 fortuna-generated random numbers.
But there's a whole swiss army knife of encryption related routines in
pgcrypto, so it looks to be great fun to tinker with and expand the library,
import the rest of the pgcrypto code base. I'm just getting started
experimenting. Perhaps irrelevant, yet it seems like there's a good interest
in encryption in this group, so I thought I'd share.

The library code is at: https://github.com/waitman/libfortuna
testing 123 programs at: https://github.com/waitman/fortuna-tests

It's mostly unmodified PG code, replacing the PG memory management routines
with 'native' jemalloc/malloc_np.h. When it seems sane I'll submit a FreeBSD
port.

Have fun,

--
Waitman Gobble
San Jose California USA
+1.5108307875





More information about the liberationtech mailing list