Add mutex protection for the fortuna PRNG
commit887993e8b30624c9d268ae5028ff4c328012458d
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 16 Apr 2010 11:04:15 +0000 (16 12:04 +0100)
committerLove Hornquist Astrand <lha@h5l.org>
Mon, 19 Apr 2010 12:26:53 +0000 (19 14:26 +0200)
tree0380ed7f29a57e2c8e4f1749d20059f9241acea8
parentdd34c023297a90f75da9f1fabed8a1603438a962
Add mutex protection for the fortuna PRNG

The fortuna PRNG has an statically held internal state. Prevent
concurrent access to this internal state by adding mutexes around
all of the access classes.

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
lib/hcrypto/rand-fortuna.c