From owner-cvs-all Sat Mar 10 4:52: 4 2001 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 B6ADB37B719; Sat, 10 Mar 2001 04:51:57 -0800 (PST) (envelope-from markm@FreeBSD.org) Received: (from markm@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2ACpv610133; Sat, 10 Mar 2001 04:51:57 -0800 (PST) (envelope-from markm) Message-Id: <200103101251.f2ACpv610133@freefall.freebsd.org> From: Mark Murray Date: Sat, 10 Mar 2001 04:51:57 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/random randomdev.h harvest.c hash.c hash.h randomdev.c yarrow.c yarrow.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG markm 2001/03/10 04:51:57 PST Modified files: sys/dev/random harvest.c hash.c hash.h randomdev.c yarrow.c yarrow.h Added files: sys/dev/random randomdev.h Log: Very large makeover of the /dev/random driver. o Separate the kernel stuff from the Yarrow algorithm. Yarrow is now well contained in one source file and one header. o Replace the Blowfish-based crypto routines with Rijndael-based ones. (Rijndael is the new AES algorithm). The huge improvement in Rijndael's key-agility over Blowfish means that this is an extremely dramatic improvement in speed, and makes a heck of a difference in its (lack of) CPU load. o Clean up the sysctl's. At BDE's prompting, I have gone back to static sysctls. o Bug fixes. The streamlining of the crypto stuff enabled me to find and fix some bugs. DES also found a bug in the reseed routine which is fixed. o Change the way reseeds clear "used" entropy. Previously, only the source(s) that caused a reseed were cleared. Now all sources in the relevant pool(s) are cleared. o Code tidy-up. Mostly to make it (nearly) 80-column compliant. Revision Changes Path 1.13 +2 -5 src/sys/dev/random/harvest.c 1.6 +54 -56 src/sys/dev/random/hash.c 1.2 +11 -9 src/sys/dev/random/hash.h 1.24 +245 -92 src/sys/dev/random/randomdev.c 1.33 +110 -277 src/sys/dev/random/yarrow.c 1.16 +9 -29 src/sys/dev/random/yarrow.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message