summaryrefslogtreecommitdiff
path: root/sys/dev/rnd.c
AgeCommit message (Expand)Author
2017-03-15spelling and whitespaceTheo de Raadt
2016-12-08fix spelling errors and typos, from Michael W. BombardieriTheo de Raadt
2016-10-18when openbsd.randomdata was made readonly, the proto seed copy got doneTheo de Raadt
2016-10-07another unused variable bites the dust. spotted by deraadtTed Unangst
2016-10-07the old time delta code is no longer used. nothing reads these values.Ted Unangst
2016-09-23kern.arandom no longer existsTheo de Raadt
2016-09-22Stop pushing version & cfdata into as entropy, since the contents areTheo de Raadt
2016-09-04Rototil the _rs_clearseed() function once more such that we don't map pagesMark Kettenis
2016-09-03Since the initial entropy pool is 8192 bytes, we need three pages to createMark Kettenis
2016-09-01openbsd.randomdata became RO in userland due to the RELRO work. We shouldTheo de Raadt
2016-07-15Remove unused re_nbits from dev/rnd.cTom Cosgrove
2016-05-23remove the sysctl kern.random counters, since none of the remainingTheo de Raadt
2016-05-17Change the random event buffer from a queue to an endless ring. This wayTed Unangst
2016-02-19Right shift by an amount larger than width of type is undefined behavior.Stefan Kempf
2016-01-08Use uiomove() instead of uiomovei().Stefan Kempf
2015-12-28use ulmin when looking at uio_resid to prevent wrapping around.Ted Unangst
2015-10-27Sync chacha_ivsetup to the version in ssh so that we couldMike Belopuhov
2015-05-25missing word in comment; Kyle MilzTheo de Raadt
2015-05-04use the size of the buffer not the pointer in resume_randomness()Jonathan Gray
2015-03-14Remove some includes include-what-you-use claims don'tJonathan Gray
2015-02-17the rnd event ringbuf calculations aren't correct, which may result inTed Unangst
2015-02-10First step towards making uiomove() take a size_t size argument:Miod Vallat
2015-02-07New framework that allows hibernate to pass in entropy from it's freshTheo de Raadt
2015-01-27remove the second void * argument on tasks.David Gwynne
2014-12-23not necessary to zero hash context; the hash final functions all do that.Ted Unangst
2014-12-23tmp is a bad name for a shactxTed Unangst
2014-12-19rename buffer to digest, more clear. ok deraadtTed Unangst
2014-12-19sha512 produces enough output, we can simplify extraction by not looping.Ted Unangst
2014-12-18Create a suspend/resume infrastructure for the RNG. At suspend time,Theo de Raadt
2014-10-24obvious sizes for freeTed Unangst
2014-10-20typo; deraadtTed Unangst
2014-10-20use SHA512 to hash entropy instead of MD5Ted Unangst
2014-09-15update comments to reflect chacha20. from Max FillingerTed Unangst
2014-07-17zero entropy bufTed Unangst
2014-07-12add a size argument to free. will be used soon, but for now default to 0.Ted Unangst
2014-06-14Change return value of getentropy() to int 0 for success. MaximumTheo de Raadt
2014-06-13Add new getentropy() system call. Code and pressure from matthew.Theo de Raadt
2014-02-05tiny style adjustmentsTed Unangst
2014-01-22Emit a warning if no entropy was supplied by the boot loader.Joel Sing
2014-01-19Refactor rnd startup so arc4random/arc4random_buf can create a chacha stateTheo de Raadt
2014-01-19With the earlier initialization of the random subsystem, random_hostseed()Theo de Raadt
2014-01-19In random_start() we can assume the msg buffer is mapped, all systems doTheo de Raadt
2013-12-28Put the entropy_pool[] into the ELF .openbsd.randomdata segment.Theo de Raadt
2013-12-22spacing; Loganaden VelvindronTheo de Raadt
2013-12-11Revert change to sha256: ramdisks don't build with this and the obviousPhilip Guenther
2013-12-11update a few RC4 references to ChaCha. thanks sthenTed Unangst
2013-12-11md5 smells bad. switch to sha256. ok deraadt matthew mikebTed Unangst
2013-11-02replace rc4 with ChaCha20 here, too; ok djm, tedu, deraadtMarkus Friedl
2013-10-30replace workq_add_task with the task api.David Gwynne
2013-07-09Fix a pair of aesthetic nits in dev/rnd.c:Bret Lambert