From owner-freebsd-security@FreeBSD.ORG Mon Mar 7 20:05:13 2005 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A86516A4D3; Mon, 7 Mar 2005 20:05:13 +0000 (GMT) Received: from storm.uk.FreeBSD.org (storm.uk.FreeBSD.org [194.242.157.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CC5D43D48; Mon, 7 Mar 2005 20:05:13 +0000 (GMT) (envelope-from mark@grondar.org) Received: from storm.uk.FreeBSD.org (uucp@localhost [127.0.0.1]) by storm.uk.FreeBSD.org (8.13.1/8.13.1) with ESMTP id j27K5BeF059396; Mon, 7 Mar 2005 20:05:11 GMT (envelope-from mark@grondar.org) Received: (from uucp@localhost)j27K5AHx059395; Mon, 7 Mar 2005 20:05:10 GMT (envelope-from mark@grondar.org) Received: from grondar.org (localhost [127.0.0.1]) by grovel.grondar.org (8.13.3/8.13.1) with ESMTP id j27K0Phv035052; Mon, 7 Mar 2005 20:00:25 GMT (envelope-from mark@grondar.org) Message-Id: <200503072000.j27K0Phv035052@grovel.grondar.org> X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: Garrett Wollman From: Mark Murray In-Reply-To: Your message of "Mon, 07 Mar 2005 14:44:49 EST." <200503071944.j27JiniV006061@khavrinen.lcs.mit.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 07 Mar 2005 20:00:25 +0000 Sender: mark@grondar.org cc: freebsd-security@FreeBSD.ORG cc: Mark Murray Subject: Re: New entropy source proposal. X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 20:05:13 -0000 Garrett Wollman writes: > The usual noise source is thermal noise in the machine itself. The > process that I've heard described involves: > > 0) Disconnecting any input sources. > 1) Turning the input gain all the way up. > 2) Taking only the least-significant bit of each sample. The random_harvest(9) call would do this by reading (say) 16 bits out of the DSP, and handing it over as harvested entropy while claiming it had 1 bit of useful randomness. Any other gratuitous randomness in the sample would provide "free" perturbation of the entropy pool. > In order to use this in FreeBSD, we would probably want a compile > option in the sound drivers to disable their use for other purposes > (e.g., generating sound). I can think of a way to do this with sysctls. M -- Mark Murray iumop ap!sdn w,I idlaH