All of lore.kernel.org
 help / color / mirror / Atom feed
* Question - seeding the hw pseudo random number generator
@ 2017-03-18  9:25 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 24+ messages in thread
From: Krzysztof Kozlowski @ 2017-03-18  9:25 UTC (permalink / raw)
  To: Matt Mackall, Herbert Xu, linux-crypto; +Cc: linux-arm-kernel

Hi,

I looked at Exynos Pseudo Random Nubmer Generator driver
(drivers/char/hw_random/exynos-rng.c) and noticed that it always seeds
the device with jiffies.  Then I looked at few other drivers and found
that they do not seed themself (or at least I couldn't find this).

I think the hw_random API does not provide generic infrastructure for
seeding.

What is the preferred approach for seeding a PRNG device? Use jiffies or
a fixed value?

Or maybe the interface should be abandoned in favor of crypto API?

Best regards,
Krzysztof

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

end of thread, other threads:[~2017-03-26  4:10 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-18  9:25 Question - seeding the hw pseudo random number generator Krzysztof Kozlowski
2017-03-18  9:25 ` Krzysztof Kozlowski
2017-03-20  6:49 ` PrasannaKumar Muralidharan
2017-03-20  6:49   ` PrasannaKumar Muralidharan
2017-03-20 13:28   ` Herbert Xu
2017-03-20 13:28     ` Herbert Xu
2017-03-20 13:39     ` Stephan Müller
2017-03-20 13:39       ` Stephan Müller
2017-03-23  8:03       ` Harald Freudenberger
2017-03-23  8:03         ` Harald Freudenberger
2017-03-23 11:35         ` Stephan Müller
2017-03-23 11:35           ` Stephan Müller
2017-03-20 18:24     ` Krzysztof Kozlowski
2017-03-20 18:24       ` Krzysztof Kozlowski
2017-03-23  8:23     ` Corentin Labbe
2017-03-23  8:23       ` Corentin Labbe
2017-03-23  9:44       ` Herbert Xu
2017-03-23  9:44         ` Herbert Xu
2017-03-23 11:44         ` Stephan Müller
2017-03-23 11:44           ` Stephan Müller
2017-03-23 13:06         ` Stephan Müller
2017-03-23 13:06           ` Stephan Müller
2017-03-26  4:10         ` Stephan Müller
2017-03-26  4:10           ` Stephan Müller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.