summaryrefslogtreecommitdiff
path: root/sys/dev/rnd.c
AgeCommit message (Expand)Author
2013-07-09Fix a pair of aesthetic nits in dev/rnd.c:Bret Lambert
2013-03-25reseed the random pool with 'dmesg' when more devices are attachedMarkus Friedl
2012-06-24Change arc4random_uniform() to calculate ``2**32 % upper_bound'' asMatthew Dempsky
2011-07-06Add a new kqfilter for random which returns ARC4_MAIN_MAX_BYTES for readNicholas Marriott
2011-01-11bring back carrying over state from the previous RC4 instance whenDamien Miller
2011-01-11all the bzeros in rnd are important, use explicit_bzeroTed Unangst
2011-01-10update the documentation regarding the *4 vs *6 decision for early RC4Theo de Raadt
2011-01-10move comment block regarding ARC4_MAIN_MAX_BYTESTheo de Raadt
2011-01-10randomread does its own rekeying now, so we don't need the large buf function.Ted Unangst
2011-01-10OK, this is getting silly, but we might as well zero the entropy bufferTheo de Raadt
2011-01-10zero another intermediate key storage areaTheo de Raadt
2011-01-09be more careful with nanotime() calls in early entropy storage, sinceTheo de Raadt
2011-01-08split randomattach into random_init() and random_start(), so that weTheo de Raadt
2011-01-08spacesTheo de Raadt
2011-01-08switch back from PAGE_SIZE for the sake of sparcTheo de Raadt
2011-01-08destatic. ok deraadtTed Unangst
2011-01-07some minor improvements to rnd.Ted Unangst
2011-01-07substantial rewrite. put a very thin mutex at the entropy-collectionTheo de Raadt
2011-01-07since randomwrite() also has no blocking operations at all, we need toTheo de Raadt
2011-01-06For very large operations in randomread(), use a local rc4 instanceTheo de Raadt
2011-01-06make all /dev/*random nodes respond; in fact, don't even worry aboutTheo de Raadt
2011-01-04in arc4_stir() only grab 64 bytes from the MD5 output. Grabbing moreTheo de Raadt
2011-01-01Do not fold the MD5 in half. This might have made sense to someone whenTheo de Raadt
2011-01-01comment cleanupTheo de Raadt
2010-12-31make randomattach do the parts of it's job in the right order, then moveTheo de Raadt
2010-12-31cleanup the ioctl functionTheo de Raadt
2010-12-31delete includes we do not needTheo de Raadt
2010-12-31further improvements describing what we are doingTheo de Raadt
2010-12-31all random nodes have been arc4-based for a while, so none of them everTheo de Raadt
2010-12-30be more cynical about boot-time entropy, and fold time and entropy data in.Theo de Raadt
2010-12-29knfTheo de Raadt
2010-12-29Since there is only one random_state, we can access it directly withoutTheo de Raadt
2010-12-29arc4random_count is not used; other things inside rndstats do the accountingTheo de Raadt
2010-12-29the rnd_debug stuff was not usefulTheo de Raadt
2010-12-29kill RND_ARND_OLD, and decrease RND_NODEV to account for it; ok djmTheo de Raadt
2010-12-29Remove the get_random_bytes() API.Theo de Raadt
2010-12-29the random ioctl stuff is not very useful. I want to see all theTheo de Raadt
2010-12-24try to update the monster comment at the top of this file to explainTheo de Raadt
2010-12-22rewrite randomwrite() for clarity after discussion with mikebTheo de Raadt
2010-11-21adding timer randomness in ioctl doesn't really help and looks suspicious.Ted Unangst
2010-10-02remove support for srandom and urandom. direct everyone to arandom instead.Ted Unangst
2010-04-20remove proc.h include from uvm_map.h. This has far reaching effects, asTed Unangst
2009-11-09Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tNicholas Marriott
2009-06-05Sanity check: we overrun the rnd_ed[] array if nbits is 32, but thatPhilip Guenthe
2008-12-15remove i386-only inline assembler roll() function; gcc optimises theDamien Miller
2008-11-24extra decl not needed; spotted by djmTheo de Raadt
2008-11-24allow entropy to be queued before randomattach() is calledTheo de Raadt
2008-11-24Seed the random pool with the dmesg buffer at randomattach().Marco Pfatschbacher
2008-10-15kernel/5592: yield() between copying out large chunks of random data toDamien Miller
2008-10-10minor 3 was /dev/prandom, which used random(). make that use theTheo de Raadt