Thread (19 messages) 19 messages, 3 authors, 2017-03-28

[PATCH v3 1/3] crypto: hw_random - Add new Exynos RNG driver

From: krzk@kernel.org (Krzysztof Kozlowski)
Date: 2017-03-28 17:43:22
Also in: linux-crypto, linux-samsung-soc, lkml

On Tue, Mar 28, 2017 at 07:41:47PM +0200, Stephan M?ller wrote:
Am Dienstag, 28. M?rz 2017, 18:48:24 CEST schrieb Krzysztof Kozlowski:

Hi Krzysztof,
quoted
I tested a little bit and:
1. Seeding with some value
2. generating random,
3. kcapi_rng_destroy+kcrng_init, (I cannot do a hardware reset except
   reboot of entire system)
4. seeding with the same value as in (1) - different random numbers.

Doing a system reboot and repeating above - different random numbers
(all are different: step (2) and in (4)).

Your test case also produces different random values every time.
Then I would assume that simply adding an outer loop to your for() loop to 
inject seed larger than the minimum required seed size should be fine.
Yes, makes sense. I'll send an updated version of patch.

Best regards,
Krzysztof
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help