public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Christopher Friesen" <cfriesen@nortel.com>
To: Pavel Machek <pavel@suse.cz>
Cc: Kyle Moffett <mrmacman_g4@mac.com>,
	Muli Ben-Yehuda <muli@il.ibm.com>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Jonathan Day <imipak@yahoo.com>,
	linux-kernel@vger.kernel.org, Zvika Gutterman <zvi@safend.com>
Subject: Re: /dev/random on Linux
Date: Tue, 16 May 2006 09:04:13 -0600	[thread overview]
Message-ID: <4469E9ED.4010700@nortel.com> (raw)
In-Reply-To: <20060516124637.GB6654@elf.ucw.cz>

Pavel Machek wrote:

>>I was unsure about the purported forward-security-breakage claims  
>>because I don't know how to validate those, but I seem to recall  
>>(from personal knowledge and the paper) that the kernel does an SHA1  
>>hash of the contents of the pool and the current cycle-counter when  
>>reading, uses that as input for the next pool state and returns it  
>>as /dev/random output.  Since the exact cycle-counter value is never  
>>exposed outside the kernel and only a small window of the previous  
> 
> 
> Are you sure? For vsyscalls to work, rdtsc has to be available from
> userspace, no?

I suspect he means "the exact cycle counter value at the time of reading 
the contents of the pool" is never exposed outside the kernel.

"rdtsc" is of course available in userspace on x86.

Chris

  reply	other threads:[~2006-05-16 15:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-15 21:39 /dev/random on Linux Jonathan Day
2006-05-15 22:41 ` Alan Cox
2006-05-16  2:50   ` Muli Ben-Yehuda
2006-05-16  8:15     ` Kyle Moffett
2006-05-16  8:28       ` Muli Ben-Yehuda
2006-05-16  8:52         ` Kyle Moffett
2006-05-16 13:54         ` Zvi Gutterman
2006-05-16 20:17           ` Theodore Tso
2006-05-16 20:37             ` Chase Venters
2006-05-17 21:32             ` Theodore Tso
2006-05-16 10:24       ` Alan Cox
2006-05-16 12:46       ` Pavel Machek
2006-05-16 15:04         ` Christopher Friesen [this message]
2006-05-16 14:58       ` Michael Buesch
2006-05-16 15:08         ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4469E9ED.4010700@nortel.com \
    --to=cfriesen@nortel.com \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=imipak@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mrmacman_g4@mac.com \
    --cc=muli@il.ibm.com \
    --cc=pavel@suse.cz \
    --cc=zvi@safend.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox