LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-16-2007, 12:25 AM   #1
Asymmetry
LQ Newbie
 
Registered: Jan 2007
Location: Oklahoma, US
Distribution: Debian
Posts: 13

Rep: Reputation: 0
Entropy generator in Debian 4.0r1


Hoping that this is the right forum for this question.

Trying to figure out some method of generating large amounts of entropy in Debian etch. I've heard of people using the mic-in to generate entropy via electronic noise on the line, or from ambient sound. Is there a way to actually do this? Package or source, either is fine, though a package is preferred. Or just point me in the right direction.

Any help at all would be awesome. Thanks!
 
Old 11-16-2007, 01:01 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
You probably don't need any actual software to create a large file of random data. You could just cat the microphone into a file for awhile and combine that with some other quasi-random data.

But there are daemons that do it all for you, such as aed. I don't know if it is available in the Debian repositories though.
 
Old 11-16-2007, 01:12 AM   #3
Asymmetry
LQ Newbie
 
Registered: Jan 2007
Location: Oklahoma, US
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: 0
Oh, no, I'm not trying to feed this out to a file. I just want a constant, high-quality entropy source for the kernel - The server in question does a ridiculous amount of cryptographic operations, and we've started having problems with /dev/random blocking lately.

And the Powers That Be have deemed /dev/urandom to be insecure for the tasks that this machine performs. I've tried to convince them otherwise, but no dice. So I've got to figure out a way to generate lots of entropy, all the time.
 
Old 11-16-2007, 01:16 AM   #4
Asymmetry
LQ Newbie
 
Registered: Jan 2007
Location: Oklahoma, US
Distribution: Debian
Posts: 13

Original Poster
Rep: Reputation: 0
Did a quick search for "audio entropy daemon for Debian" on Google, and got the "randomsound" package in lenny/sid. Exactly what I was looking for. Thanks much.

Lesson: Googling works REALLY well when you know what to search for. Kinda like "42." The answer eludes you until you know the right question.
 
Old 11-16-2007, 06:14 AM   #5
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
You'd probably be better off with the video entropy daemon linked to from that site - it should provide a lot more entropy that just audio - stick in a TV card and connect it to a very poor aerial on an untuned station.
 
Old 11-16-2007, 08:12 AM   #6
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
It depends on the audio source. If you are loading it up with trance music with a constant beat for 20 minutes, then you are not getting ideal entropy, no. On the other hand, if you have it hooked up to a un-tuned FM radio, I don't see that there would be much difference between it and the video variant; static is static after all.

The way both applications work is by periodically comparing two samples (on the sound card, it is the two channels; on the video device it is two screen grabs that are a random time apart) and then hashing the difference between those two samples. It is an identical principle, so assuming you are using the ideal input (in the case of either video or audio) you should get similar results.

However, I would theorize that you might get better results with the audio version if you had the left and right channels connected to different sources. You have to keep in mind that you want the two samples to be as different as possible; so for example, video feed of fish swimming in a tank would not work well since the background won't move. On the other hand, if you had the left channel of your soundcard connected to a radio tuned to talk, and the right channel connected to a microphone outside, the differences between the samples would be vast.

It is really a matter of having two sources versus one. With video, you can only have one video feed that has to be compared to itself while with the sound card version, you have two sources which can be completely isolated from each other.

Last edited by MS3FGX; 11-16-2007 at 08:14 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ieee80211 in Debian 4.0r1 columbiasts1 Linux - Software 8 09-07-2007 05:18 AM
How to upgrade gcc in Debian 3.0r1 to v3.3.1 mkipper Linux - Software 1 10-24-2003 05:23 PM
Debian from Knoppix of Woody 3.0r1 Bruce Hill Linux - Newbie 5 10-09-2003 10:06 PM
Debian 3.0r1 installation problem Demonbane Linux - Newbie 2 09-06-2003 04:52 AM
wine on debian 3.0r1 viniosity Linux - Software 1 04-05-2003 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 11:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration