summaryrefslogtreecommitdiff
path: root/sys/dev/rnd.c
AgeCommit message (Expand)Author
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
2022-11-03Style: always use *retval and never retval[0] in syscalls,Philip Guenther
2022-10-13Make comment match the code.Theo Buehler
2022-02-06s/poll/poolRob Pierce
2021-03-06ansiJonathan Gray
2020-06-15slight copyright update regarding recent workTheo de Raadt
2020-05-31introduce "cpu_rnd_messybits" for use instead of nanotime in dev/rnd.c.David Gwynne
2020-05-29dev/rndvar.h no longer has statistical interfaces (removed during variousTheo de Raadt
2020-05-293 includes not neededTheo de Raadt
2020-05-27Update comment block at the top to describe (a) the ring damage logic,Theo de Raadt
2020-05-26Rewrite the entropy enqueue ring to collect damage asyncronously, and adapt theTheo de Raadt
2020-05-25For large reads from /dev/random, use the arc4random_ctx_*() functionsChristian Weisgerber
2020-05-25Pass bootblock indicator RB_GOODRANDOM to random_start(). Future workTheo de Raadt
2020-05-18During the rekey operation, we feedback 1 word to the lowest level.Theo de Raadt
2020-05-16entropy_add_ptr and entropy_input_rotate are only used insideTheo de Raadt
2020-05-16be more consistant about with using sizeof(object) rather than the constantTheo de Raadt
2020-05-15Describe the purpose of add_entropy_words() in simpler terms.Theo de Raadt
2020-05-15The description of the enqueue_randomness() input parameter was crazy untrue.Theo de Raadt
2020-05-15Explain enqueue_randomness() better. It is the supply-entropy function,Theo de Raadt
2020-05-15The long explanation for CRC stirring isn't helping. If anythingTheo de Raadt
2020-05-15The main comment block from 1996 has become highly inaccurate andTheo de Raadt
2020-05-15remove unneccessary include filesTheo de Raadt
2020-03-06Make sure 'ts' is initialized.tobhe
2020-03-02previous commit accidentally aliased two unique timeoutsTheo de Raadt
2020-03-01rename functions and types unrelated to the higher-level arc4 APITheo de Raadt
2020-02-20Replace field f_isfd with field f_flags in struct filterops to allowVisa Hankala
2019-12-31Use C99 designated initializers with struct filterops. In addition,Visa Hankala
2018-04-28replace add_*_randomness with enqueue_randomness()Jasper Lievisse Adriaanse
2018-02-09Situation occur where bootloader cannot supply kernel with earlyTheo de Raadt
2018-02-08Do not hardcode key length. Pointed out by jsing@mortimer
2018-02-08Use a temporary chacha instance to fill large randomdata sections. Avoidsmortimer
2017-11-26Don't mention XOR as a mix-in function since addition is done since 1.180Mike Belopuhov
2017-11-19Remove interlocks between producers and consumers of randomness dataMike Belopuhov
2017-07-30clang (and newer gcc at high -O) are unaware that objects placed in strangeTheo de Raadt
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