LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 08-23-2018, 09:10 AM   #1
jksd
LQ Newbie
 
Registered: Aug 2018
Posts: 2

Rep: Reputation: Disabled
How many CSPRNGs and entropy pools does the kernel create?


"Don't play dice with random numbers" from 2012 describes the 3.6 kernel as using three pools and three CSPRNGs. An input pool feeds a CSPRNG, which in turn feeds two output pools, which feed two CSPRNGs, which are read by /dev/urandom and /dev/random (figure)

However "The Linux Random Number Generator" from 2014 describes three pools but only one CSPRNG, between the input and output pools (figure).

"Myths about /dev/urandom", last updated this year, also describes three pools and one CSPRNG for the pre 4.8 kernel, but two pools for 4.8+ with /dev/urandom reading directly from the CSPRNG instead of from a pool (not sure what difference that would make).

Finally, man(4) random and the kernel source for random.c talk vaguely of "the entropy pool".

Are there any definitive schematics for how this all works? Appreciate that it's likely changed over time. Is there anyone familiar with the source code who could describe how the current kernel works?

One reason I ask is to understand what happens when you do
Code:
cat /path/to/random-seed > /dev/urandom
. Into what pool does that data go, and is it used to initialize a/the CSPRNG or is it read directly from the pool by /dev/urandom?

Thanks

Last edited by jksd; 08-23-2018 at 05:44 PM.
 
  


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
[SOLVED] How to increase entropy? ddenial Linux - Newbie 4 01-29-2018 07:26 AM
[SOLVED] Entropy available to the installer bonixavier Slackware 3 06-14-2011 05:47 AM
Password Entropy amishtechie Linux - Security 9 06-11-2011 08:40 PM
Gathering entropy robel Linux - Security 23 10-19-2008 03:52 AM
entropy in /?? name_in_use450 *BSD 3 06-08-2004 08:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:48 PM.

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