From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-x236.google.com (mail-we0-x236.google.com [IPv6:2a00:1450:400c:c03::236]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by huchra.bufferbloat.net (Postfix) with ESMTPS id 9114621F1D9 for ; Thu, 17 Oct 2013 18:20:45 -0700 (PDT) Received: by mail-we0-f182.google.com with SMTP id t61so3114134wes.27 for ; Thu, 17 Oct 2013 18:20:43 -0700 (PDT) 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 :cc:content-type:content-transfer-encoding; bh=1DqqsP+VWw5qesv7HE67i/wXCp2MhlnqVFg3lnv6wdk=; b=Cs3oBi4/LxnYWohM8RuPDmNmiSwTZ8ovHhXtjANuT3LQ/66x0CSJo7jP0B3nkEp3Qq 5Lr2h+jJeXgTHK0Mp2inmN4/OTVFziQN3BXfp+NE2t5p9JPlCBVwo3sKPibG4dJe9LRr NShPYO4DIG4dACqEAUzPusg8W6lvNeIc350Z8C0GdHAnQfQQwtUKfgmDGcvkhfv/yblg ip0sGQUm7AEjpS36OVGr55K1EGL4lGyrLOsxBwvQDQQPvUAzR0f4Q8cwpydSb6FSpkDN qERTQO0nEV3l/mlKnN416FtRGgHAHpRHn6/hL+g0iCfgoco44eO0MorLOtUKaJi2s2pH wSOw== MIME-Version: 1.0 X-Received: by 10.194.193.4 with SMTP id hk4mr186504wjc.29.1382059243460; Thu, 17 Oct 2013 18:20:43 -0700 (PDT) Received: by 10.217.67.202 with HTTP; Thu, 17 Oct 2013 18:20:43 -0700 (PDT) In-Reply-To: <20131017175705.3722c1f3@nehalam.linuxnetplumber.net> References: <20131017175705.3722c1f3@nehalam.linuxnetplumber.net> Date: Thu, 17 Oct 2013 18:20:43 -0700 Message-ID: From: Dave Taht To: Stephen Hemminger Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Stephan Mueller , Stephen Walker , "cerowrt-devel@lists.bufferbloat.net" , Felix Fietkau Subject: Re: [Cerowrt-devel] New random number generator for linux... X-BeenThere: cerowrt-devel@lists.bufferbloat.net X-Mailman-Version: 2.1.13 Precedence: list List-Id: Development issues regarding the cerowrt test router project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Oct 2013 01:20:46 -0000 On Thu, Oct 17, 2013 at 5:57 PM, Stephen Hemminger wrote: > On Thu, 17 Oct 2013 17:40:37 -0700 > Dave Taht wrote: > >> This new design for a rng actually appears to be pretty reasonable. >> >> http://thread.gmane.org/gmane.linux.kernel.cryptoapi/9878 >> >> Full details, paper, and code patches here: >> >> http://www.chronox.de/ >> >> I am (as usual) low on time to package it up for openwrt, or patch it >> into the kernel, and try it. I will probably be able to get around to >> it next weekend if nobody beats me to it, slamming it into my pie >> build for x86 first. >> >> I'd be very interested if some folk could compare the standalone >> daemon to rngd on their favorite platform? And if anyone here has the >> chops to think hard about the algo, that would be nice, too... >> >> In other news , theodore ts'o's got a whole bunch more new patches for >> the random driver on kernel.org that I HAVE patched in and am trying >> to get into the next cero release. Fixes for get_cycles(), arrived >> already in mainline, and the mips patch is around somewhere. >> >> While that stuff improves the quality of the entropy in the system, >> the above rng would bring *more* entropy into the system, maybe get >> rid of the existing daemon (or integrate with it) and/or hostapd >> patches, etc, which I find exciting. That said, validating rng stuff >> is *hard*. >> > > I would not trust it until accepted upstream. Hah. I wouldn't trust it even then! For half a decade, at least! > It is better to mix multiple sources in rather than just relying on > any single source. That way it makes it harder for organizations to > poison the well. That I agree with also. However it seemed like this could be used as an additional source better than the existing rngd (from userspace) and perhaps the kernelspace one makes sense. Please note that the current situation in cerowrt (where we are basically mixing back urandom into random via rngd, and get_cycles() returns 0) is untenable. Additional ideas for entropy welcomed.... Another patch in openwrt I'm kind of dubious about is this one... https://github.com/dtaht/cerowrt-next/blob/master/package/network/services/= hostapd/patches/500-random_pool_add_kernel.patch --=20 Dave T=E4ht Fixing bufferbloat with cerowrt: http://www.teklibre.com/cerowrt/subscribe.= html