From owner-cvs-all Sat Oct 14 4: 0: 1 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CB3D837B503; Sat, 14 Oct 2000 03:59:56 -0700 (PDT) Received: (from markm@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA73069; Sat, 14 Oct 2000 03:59:56 -0700 (PDT) (envelope-from markm@FreeBSD.org) Message-Id: <200010141059.DAA73069@freefall.freebsd.org> From: Mark Murray Date: Sat, 14 Oct 2000 03:59:56 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/conf files src/sys/dev/random harvest.c hash.c randomdev.c yarrow.c yarrow.h src/sys/dev/randomdev harvest.c hash.c hash.h randomdev.c yarrow.c yarrow.h src/sys/modules Makefile src/sys/modules/random Makefile src/sys/modules/randomdev ... X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG markm 2000/10/14 03:59:56 PDT Modified files: sys/conf files sys/dev/random harvest.c hash.c randomdev.c yarrow.c yarrow.h sys/modules Makefile sys/modules/random Makefile Removed files: sys/dev/randomdev harvest.c hash.c hash.h randomdev.c yarrow.c yarrow.h sys/modules/randomdev Makefile Log: After some complaints about the dir names, the random device is 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. Revision Changes Path 1.428 +5 -5 src/sys/conf/files 1.7 +61 -18 src/sys/dev/random/harvest.c 1.3 +2 -2 src/sys/dev/random/hash.c 1.15 +38 -10 src/sys/dev/random/randomdev.c 1.21 +35 -32 src/sys/dev/random/yarrow.c 1.8 +8 -4 src/sys/dev/random/yarrow.h 1.143 +3 -3 src/sys/modules/Makefile 1.6 +3 -2 src/sys/modules/random/Makefile To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message