<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test/sys/dev/randomdev/harvest.c, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/'/>
<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-test/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>Remove unneeded includes.</title>
<updated>2000-09-21T06:23:16Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2000-09-21T06:23:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=4a8612fd41ecde5ed5d1be985c14bf813536c484'/>
<id>urn:sha1:4a8612fd41ecde5ed5d1be985c14bf813536c484</id>
<content type='text'>
Submitted by:	phk
</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-test/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-test/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-test/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>Storing to a pointer is (effectively) atomic; no need to protect this</title>
<updated>2000-07-11T19:37:25Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2000-07-11T19:37:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test/commit/?id=4d0e6f79d62c5a8b2edf7fe8bc807c6651c13dcd'/>
<id>urn:sha1:4d0e6f79d62c5a8b2edf7fe8bc807c6651c13dcd</id>
<content type='text'>
with splhigh(). However, the entropy-harvesting routine needs pretty
serious irq-protection, as it is called out of irq handlers etc.

Clues given by:	bde
</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-test/commit/?id=c9ec235ca1e53105c29450d483686482a26751e0'/>
<id>urn:sha1:c9ec235ca1e53105c29450d483686482a26751e0</id>
<content type='text'>
compiled in or loaded.
</content>
</entry>
</feed>
