mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* /dev/random: really secure?
@ 2000-12-17 21:50 Karel Kulhavy
  2000-12-18  0:18 ` David Schwartz
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Karel Kulhavy @ 2000-12-17 21:50 UTC (permalink / raw)
  To: linux-kernel

I noticed peculiarities in the behaviour of the delta-delta-3 system for
entropy estimation in the random.c code./ When I hold right alt or control, I
get about 8 bits of entropy per repeat fro the /dev/random which is
overestimated. I think the real entropy is 0 bits because it is absolutely
deterministic when the interrupt comes. Am I right or is there any hidden
magic source of entropy in this case?

Right shift, left alt, ctrl and shift make 4 bits per repeat. Is greater
randomness being expected from the keys that return 8 bits?

When I have a server where n blobk read, keyboard and mouse events occur
(everything is cached within huge amount of semiconductor RAM), the /dev/random
depends solely on the network packets. These can be manipulated and their
leading edge precisely sniffed. I think here exists a severe risk of
compromise. Am I right?

Clock
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: /dev/random: really secure?
@ 2000-12-20  3:41 Bernd Eckenfels
  2000-12-20 17:58 ` Jamie Lokier
  0 siblings, 1 reply; 18+ messages in thread
From: Bernd Eckenfels @ 2000-12-20  3:41 UTC (permalink / raw)
  To: linux-kernel

In article <20001218213801.A19903@pcep-jamie.cern.ch> you wrote:
> A potential weakness.  The entropy estimator can be manipulated by
> feeding data which looks random to the estimator, but which is in fact
> not random at all.

That's why feeding randomness is a priveledgedoperation.

Greetings
Bernd
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: /dev/random: really secure?
@ 2000-12-20  3:49 Bernd Eckenfels
  0 siblings, 0 replies; 18+ messages in thread
From: Bernd Eckenfels @ 2000-12-20  3:49 UTC (permalink / raw)
  To: linux-kernel

In article <20001218102218.A428@albireo.ucw.cz> you wrote:
> Even if you were able to predict all entropy sources, to predict the generated
> random numbers you would need to invert the cryptographic hash used there.

If you can predict ALL input in the pool, including the initial boot state
you can just rerun the PNRG algorithm and get the random numbers (as long as
you even can predict read access to the device).

But thats not the real-world Attack. The Real world attack is more to reduce
the randomness in terms of stochastic tests can detect some patterns like
unequal distribution or cycles. Those will lower the strengt of some
algorithms...

Greetings
Bernd
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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

end of thread, other threads:[~2000-12-20 18:29 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-17 21:50 /dev/random: really secure? Karel Kulhavy
2000-12-18  0:18 ` David Schwartz
2000-12-18  8:21   ` Karel Kulhavy
2000-12-18 20:38   ` Jamie Lokier
2000-12-18 21:33     ` Theodore Y. Ts'o
2000-12-18 22:15       ` Andreas Dilger
2000-12-19  9:27         ` Daniel Stone
2000-12-19 11:49       ` Kurt Garloff
2000-12-19 12:48         ` Peter Samuelson
2000-12-19 16:51         ` Theodore Y. Ts'o
2000-12-19 17:39         ` Pavel Machek
2000-12-18 21:58     ` David Schwartz
2000-12-18  8:49 ` David Feuer
2000-12-18  9:22 ` Martin Mares
2000-12-19  6:49 ` Philipp Rumpf
2000-12-20  3:41 Bernd Eckenfels
2000-12-20 17:58 ` Jamie Lokier
2000-12-20  3:49 Bernd Eckenfels

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

all inboxes | Powered by JetHome®