Development issues regarding the cerowrt test router project
 help / color / mirror / Atom feed
* [Cerowrt-devel] New random number generator for linux...
@ 2013-10-18  0:40 Dave Taht
  2013-10-18  0:57 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: Dave Taht @ 2013-10-18  0:40 UTC (permalink / raw)
  To: Stephen Walker, Felix Fietkau, cerowrt-devel, Stephan Mueller

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*.

-- 
Dave Täht

Fixing bufferbloat with cerowrt: http://www.teklibre.com/cerowrt/subscribe.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Cerowrt-devel] New random number generator for linux...
  2013-10-18  0:40 [Cerowrt-devel] New random number generator for linux Dave Taht
@ 2013-10-18  0:57 ` Stephen Hemminger
  2013-10-18  1:20   ` Dave Taht
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2013-10-18  0:57 UTC (permalink / raw)
  To: Dave Taht; +Cc: Stephan Mueller, Stephen Walker, cerowrt-devel, Felix Fietkau

On Thu, 17 Oct 2013 17:40:37 -0700
Dave Taht <dave.taht@gmail.com> 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.
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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Cerowrt-devel] New random number generator for linux...
  2013-10-18  0:57 ` Stephen Hemminger
@ 2013-10-18  1:20   ` Dave Taht
  0 siblings, 0 replies; 3+ messages in thread
From: Dave Taht @ 2013-10-18  1:20 UTC (permalink / raw)
  To: Stephen Hemminger
  Cc: Stephan Mueller, Stephen Walker, cerowrt-devel, Felix Fietkau

On Thu, Oct 17, 2013 at 5:57 PM, Stephen Hemminger
<stephen@networkplumber.org> wrote:
> On Thu, 17 Oct 2013 17:40:37 -0700
> Dave Taht <dave.taht@gmail.com> 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

-- 
Dave Täht

Fixing bufferbloat with cerowrt: http://www.teklibre.com/cerowrt/subscribe.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-10-18  1:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-18  0:40 [Cerowrt-devel] New random number generator for linux Dave Taht
2013-10-18  0:57 ` Stephen Hemminger
2013-10-18  1:20   ` Dave Taht

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox