ts-7000
[Top] [All Lists]

[ts-7000] Re: /dev/random blocks forever

To:
Subject: [ts-7000] Re: /dev/random blocks forever
From: "charliem_1216" <>
Date: Wed, 06 May 2009 18:36:02 -0000
Hi Emerick --

--- In  "Emerick Rogul" <> wrote:
>
> Hello,
> 
> I'm implementing a cryptographic algorithm on a TS-7200 board and I need to 
> produce a rather large random value to seed my random number generator (a 
> minimum of 1024 bits of random data).  I was planning to read from 
> /dev/random, but it blocks forever - I'm guessing because 
> /proc/sys/kernel/random/entropy_avail contains no data.

Yep, /dev/random will block if it runs out of entropy.
> 
> Should I expect /dev/random to work (if so, how do I get the board 

Yes, it should work.  You don't mention what kernel you are using, but there 
was at least one 2.4 bug where the entropy was not being 'refilled' properly.

to produce more entropy)?  Or should I just use /dev/urandom instead (which 
seems to work, but is supposedly not as cryptographically random)?

There have been discussions over the years about how to refill the entropy 
pool;  Typically it's done by hooking interrupts from the keyboard and mouse 
driver(s), neither of which see much or any traffic in embedded systems.  At 
one time most network drivers contributed to the entropy pool, but that was 
changed by the paranoids in case the attackers gain control of your network(!). 
 I'm not sure of the current situation.

/dev/urandom should be fine, unless you work for the NSA.  If you're still 
worried about it, look into having the network or serial driver contribute to 
the entropy pool.

regards, ..... Charlie

> 
> Thanks in advance for any help with this,
> 
> -Emerick Rogul
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU