From owner-freebsd-drivers@FreeBSD.ORG Thu Dec 12 19:59:12 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CCC4C4D8 for ; Thu, 12 Dec 2013 19:59:12 +0000 (UTC) Received: from h2.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8D25C1250 for ; Thu, 12 Dec 2013 19:59:12 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id rBCJxB1b004816 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Dec 2013 11:59:11 -0800 (PST) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id rBCJxBxL004815; Thu, 12 Dec 2013 11:59:11 -0800 (PST) (envelope-from jmg) Date: Thu, 12 Dec 2013 11:59:11 -0800 From: John-Mark Gurney To: Johnny Cho Subject: Re: writing a module to feed entropy /dev/random Message-ID: <20131212195911.GJ55638@funkthat.com> Mail-Followup-To: Johnny Cho , freebsd-drivers@freebsd.org References: <20131212051735.GI55638@funkthat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Thu, 12 Dec 2013 11:59:11 -0800 (PST) Cc: freebsd-drivers@freebsd.org X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Dec 2013 19:59:12 -0000 Johnny Cho wrote this message on Thu, Dec 12, 2013 at 14:37 +0900: > On Thu, Dec 12, 2013 at 2:17 PM, John-Mark Gurney wrote: > > Johnny Cho wrote this message on Thu, Dec 12, 2013 at 14:13 +0900: > >> I'm Johnny Cho, a FreeBSD user in Korea. > >> > >> A friend of mine in Washington DC asked me to spread his word to > >> FreeBSD community. > >> > >> He is looking for someone to write a module to feed entropy > >> /dev/random with an Alea-1 USB entropy device. > >> > >> any help/comment/blame would be most welcome. > > > > Does all the data read from /dev/random need to come from the Alea-1 > > device? or does it just need to contribute to the entropy pool? If > > the later, than a simple daemon that every few seconds reads a few > > hundred bytes from the USB device (via libusb) and writes it to > > /dev/random should be enough... > > > > If the former then it'll be a bit more work... > > > > Is he looking for a voluteer? or is he willing to pay someone for the > > work? > > As far as I'm understanding based on his word, the former is more > likely what he wants. > He's found some trials by someone in the community, but the trials > seems to be given up. > > He is willing to pay for this. Does he want this all in kernel? or is most of it in userland fine? Is this the device? http://www.araneus.fi/products-alea-eng.html If he's fine w/ a userland implementation, using CUSE4BSD, then it's pretty easy as I've started writing a python front end to CUSE4BSD and integrating libusb shouldn't be to hard... If he needs it integrated into the kernel, then it'll be a bit more difficult as I'm not familar w/ the kernel USB side of things... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."