<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/randomdev/yarrow.h, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2000-10-14T10:59:56Z</updated>
<entry>
<title>After some complaints about the dir names, the random device is</title>
<updated>2000-10-14T10:59:56Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2000-10-14T10:59:56Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a6278a2a42fc77094f356a290336a0fc395feb05'/>
<id>urn:sha1:a6278a2a42fc77094f356a290336a0fc395feb05</id>
<content type='text'>
now in dirs called sys/*/random/ instead of sys/*/randomdev/*.

Introduce blocking, but only at startup; the random device will
block until the first reseed happens to prevent clients from
using untrustworthy output.

Provide a read_random() call for the rest of the kernel so that
the entropy device does not need to be present. This means that
things like IPX no longer need to have "device random" hardcoded
into thir kernel config. The downside is that read_random() will
provide very poor output until the entropy device is loaded and
reseeded. It is recommended that developers do NOT use the
read_random() call; instead, they should use arc4random() which
internally uses read_random().

Clean up the mutex and locking code a bit; this makes it possible
to unload the module again.
</content>
</entry>
<entry>
<title>Move the prototypes for random_set_wakeup* from yarrow.c to yarrow.h so that</title>
<updated>2000-09-11T19:31:28Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2000-09-11T19:31:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ecbcd538a4a545a38e211cd1a1a48d70c7aa3c7a'/>
<id>urn:sha1:ecbcd538a4a545a38e211cd1a1a48d70c7aa3c7a</id>
<content type='text'>
both yarrow.c and harvest.c can use them.

Approved by:	markm
</content>
</entry>
<entry>
<title>Large upgrade to the entropy device; mainly inspired by feedback</title>
<updated>2000-09-10T13:52:19Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2000-09-10T13:52:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4d87a031c0106945da094f3ea770ea9b4b5fcd6b'/>
<id>urn:sha1:4d87a031c0106945da094f3ea770ea9b4b5fcd6b</id>
<content type='text'>
from many folk.

o The reseed process is now a kthread. With SMPng, kthreads are
  pre-emptive, so the annoying jerkiness of the mouse is gone.

o The data structures are protected by mutexes now, not splfoo()/splx().

o The cryptographic routines are broken out into their own subroutines.
  this facilitates review, and possible replacement if that is ever
  found necessary.

Thanks to:		kris, green, peter, jasone, grog, jhb
Forgotten to thank:	You know who you are; no offense intended.
</content>
</entry>
<entry>
<title>o Fix a horrible bug where small reads (&lt; 8 bytes) would return the</title>
<updated>2000-07-25T21:18:47Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2000-07-25T21:18:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7aa4389a6c7429f679ba5d0348c4251242ed4702'/>
<id>urn:sha1:7aa4389a6c7429f679ba5d0348c4251242ed4702</id>
<content type='text'>
  wrong bytes.

o Improve the public interface; use void* instead of char* or u_int64_t
  to pass arbitrary data around.
Submitted by:	kris ("horrible bug")
</content>
</entry>
<entry>
<title>Clean this up with some BDE-inspired fixes.</title>
<updated>2000-07-23T11:08:16Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2000-07-23T11:08:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c90a8fc9a54a4321c70fbea7fdef43721f0a6429'/>
<id>urn:sha1:c90a8fc9a54a4321c70fbea7fdef43721f0a6429</id>
<content type='text'>
o Make the comments KNF-compliant.
o Use nanotime instead of getnanotime; the manpage lies about the
  kern.timecounter.method - it has been removed.
o Fix the ENTROPYSOURCE const permanently.
o Make variable names more consistent.
o Make function prototypes more consistent.

Some more needs to be done; to follow.
</content>
</entry>
<entry>
<title>Yarrow tweaks; separate the fast and slow reseed tasks so that they don't</title>
<updated>2000-07-09T11:52:12Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2000-07-09T11:52:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=585ebe2b4194d4f1de2f35128cd698465d7bfb16'/>
<id>urn:sha1:585ebe2b4194d4f1de2f35128cd698465d7bfb16</id>
<content type='text'>
stomp on each other; provide constant names (as enums) for the harvester
to use (makes it more self-documenting).
</content>
</entry>
<entry>
<title>Add entropy gathering code. This will work whether the module is</title>
<updated>2000-07-07T09:03:59Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2000-07-07T09:03:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=c9ec235ca1e53105c29450d483686482a26751e0'/>
<id>urn:sha1:c9ec235ca1e53105c29450d483686482a26751e0</id>
<content type='text'>
compiled in or loaded.
</content>
</entry>
<entry>
<title>New machine-independant /dev/random driver.</title>
<updated>2000-06-25T08:38:58Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2000-06-25T08:38:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4db9ae91ff0ef9de89fcba8928c9d81739a654f0'/>
<id>urn:sha1:4db9ae91ff0ef9de89fcba8928c9d81739a654f0</id>
<content type='text'>
This is work-in-progress, and the entropy-gathering routines are not
yet present. As such, this should be viewed as a pretty reasonable
PRNG with _ABSOLUTELY_NO_ security!!

Entropy gathering will be the subject of ongoing work.

This is written as a module, and as such is unloadable, but there is
no refcounting done. I would like to use something like device_busy(9)
to achieve this (eventually).

Lots of useful ideas from:	bde, phk, Jeroen van Gelderen

Reviewed by:	dfr
</content>
</entry>
</feed>
