[cryptography] [liberationtech] libfortuna fun

Eugen Leitl eugen at leitl.org
Thu Jul 18 08:24:26 EDT 2013


----- Forwarded message from Waitman Gobble <uzimac at da3m0n8t3r.com> -----

Date: Wed, 17 Jul 2013 22:19:06 -0700 (PDT)
From: Waitman Gobble <uzimac at da3m0n8t3r.com>
To: liberationtech <liberationtech at lists.stanford.edu>
Subject: [liberationtech] libfortuna fun
Reply-To: liberationtech <liberationtech at lists.stanford.edu>


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


--
Too many emails? Unsubscribe, change to digest, or change password by emailing moderator at companys at stanford.edu or changing your settings at https://mailman.stanford.edu/mailman/listinfo/liberationtech

----- End forwarded message -----
-- 
Eugen* Leitl <a href="http://leitl.org">leitl</a> http://leitl.org
______________________________________________________________
ICBM: 48.07100, 11.36820 http://ativel.com http://postbiota.org
AC894EC5: 38A5 5F46 A4FF 59B8 336B  47EE F46E 3489 AC89 4EC5


More information about the cryptography mailing list