From owner-freebsd-drivers@FreeBSD.ORG Thu Dec 12 05:13:21 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 B150F9A0 for ; Thu, 12 Dec 2013 05:13:21 +0000 (UTC) Received: from mail-pd0-x22d.google.com (mail-pd0-x22d.google.com [IPv6:2607:f8b0:400e:c02::22d]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8D7751AD5 for ; Thu, 12 Dec 2013 05:13:21 +0000 (UTC) Received: by mail-pd0-f173.google.com with SMTP id p10so10823933pdj.4 for ; Wed, 11 Dec 2013 21:13:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=EpC3oXiycs0x9QhfL1pXriIMgPMAaIgvDWug2u4Bz00=; b=wNd1rgCOfZP4cq9udlf2U/yZ1me2pcBnOMUXPCJXYjtXAetAtZJmCHxOk9AHFvOifc dMwa1Qfvqj9mj2ycQAvp13+qdW/59tXsE2PQBfjUOOuq9dIAkgtaSRDnOPcYFpxBPgqG mj/gBkDT3ef2TYmJJQ3PXqYYAbtbRMrMPVMEmE6NENMT8DomtvUeGb2x1sPALjRKWYqb NoItwa56RTimkWRcRDJFTT7klm1E4Tve3lz4JqFlh6XYkKGpvV7/AfiaRP7YtLns+suo fgDicUPBd9K4eVHwk42kKd682vsKdSBc0eZL7KYP7Tqz80bLZqj4MBylR+CFnkjr5FUH sVdQ== MIME-Version: 1.0 X-Received: by 10.68.190.169 with SMTP id gr9mr8431086pbc.30.1386825201174; Wed, 11 Dec 2013 21:13:21 -0800 (PST) Received: by 10.70.38.10 with HTTP; Wed, 11 Dec 2013 21:13:21 -0800 (PST) Date: Thu, 12 Dec 2013 14:13:21 +0900 Message-ID: Subject: writing a module to feed entropy /dev/random From: Johnny Cho To: freebsd-drivers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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 05:13:21 -0000 Hi list, 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. Best Regards, Johnny From owner-freebsd-drivers@FreeBSD.ORG Thu Dec 12 05:17:36 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 E13CEC3D for ; Thu, 12 Dec 2013 05:17:36 +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 BB36F1AF5 for ; Thu, 12 Dec 2013 05:17:36 +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 rBC5HZiL093420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 11 Dec 2013 21:17:35 -0800 (PST) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id rBC5HZZ7093419; Wed, 11 Dec 2013 21:17:35 -0800 (PST) (envelope-from jmg) Date: Wed, 11 Dec 2013 21:17:35 -0800 From: John-Mark Gurney To: Johnny Cho Subject: Re: writing a module to feed entropy /dev/random Message-ID: <20131212051735.GI55638@funkthat.com> Mail-Followup-To: Johnny Cho , freebsd-drivers@freebsd.org References: 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]); Wed, 11 Dec 2013 21:17:35 -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 05:17:36 -0000 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? -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-drivers@FreeBSD.ORG Thu Dec 12 05:37:17 2013 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E582827B for ; Thu, 12 Dec 2013 05:37:17 +0000 (UTC) Received: from mail-pb0-x233.google.com (mail-pb0-x233.google.com [IPv6:2607:f8b0:400e:c01::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BEA3D1D5F for ; Thu, 12 Dec 2013 05:37:17 +0000 (UTC) Received: by mail-pb0-f51.google.com with SMTP id up15so11376369pbc.24 for ; Wed, 11 Dec 2013 21:37:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=FIobtRsDWcalRDOSCCP0VxddqrgxWZQA/sFYgigQ9ok=; b=SZbtyvVCUqA2i9kWCxrD0FEKyP8uguTdKbecD2oXI+0T8MCuUt5oQq8aUxTm61AFGl TvOCbz2QRPxDiiASS0m8ZnG+KaooK9XFahgatBqpVMgRNEgZZ6r7lJdH+1IdvWozCjfM Npt70SxdAR/oybK+RzIAUPIJoUryvX2Zkv0374oVDQES/5MjasuOP5O7NpRHoFW6r/nB ilFnfjZZQyaC81NHRIRlSkv8GMIhLUPhb4mT+Z+vtlOI7xv0CMxCOVGgjMdXfJ6f0Yzq hz3coWbtYDdGOmVKdFYHqe8NG51rpCuTStQ2kRhPGBbAwHwi42f4g32JQGUQM7bVf+FR jteA== MIME-Version: 1.0 X-Received: by 10.68.16.202 with SMTP id i10mr8500055pbd.149.1386826637346; Wed, 11 Dec 2013 21:37:17 -0800 (PST) Received: by 10.70.38.10 with HTTP; Wed, 11 Dec 2013 21:37:17 -0800 (PST) In-Reply-To: <20131212051735.GI55638@funkthat.com> References: <20131212051735.GI55638@funkthat.com> Date: Thu, 12 Dec 2013 14:37:17 +0900 Message-ID: Subject: Re: writing a module to feed entropy /dev/random From: Johnny Cho To: freebsd-drivers@freebsd.org, jmg@funkthat.com Content-Type: text/plain; charset=ISO-8859-1 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 05:37:18 -0000 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. Regards, Johnny 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."